* @package AgileBill * @version 1.4.93 */ class CORE_vars { var $f; function CORE_vars() { if(isset($_GET) && count($_GET) > 0) { reset ( $_GET ); while ( list ($key, $val) = each ( $_GET ) ) { $this->f["$key"] = $val; } reset ( $_GET ); } if(isset($_POST) && count($_POST) > 0) { reset ( $_POST ); while ( list ($key, $val) = each ( $_POST ) ) $this->f["$key"] = $val; reset ( $_POST ); } // set the shortcuts: if(!isset($this->f["_page"])) { global $_PAGE_SHORTCUTS; for($i=0; $if[$shortcut])) $this->f["_page"] = $_PAGE_SHORTCUTS[$i]["p"]; } } // mods for hardcoded vars in config/multi-site global $hardcode; if(is_array($hardcode)) { foreach($hardcode as $hc => $value) { $this->f[$hc] = $value; } } } function strip_slashes($arr) { global $VAR; if(get_magic_quotes_gpc()) { for($i=0; $i$val) { if(!is_array($val)) $VAR["$key"] = htmlspecialchars(stripslashes($val)); else foreach($VAR["$key"] as $keya=>$vara) $VAR[$key][$keya] = htmlspecialchars(stripslashes($vara)); } } } } ?>