Security Warning
\nGLOBALS overwrite attempt detected! Script execution has been terminated.
\n"; die($die); } // Variables that shouldn't be unset $skip = array('GLOBALS', '_GET', '_POST', '_COOKIE', '_REQUEST', '_SERVER', '_ENV', '_FILES'); $input = array_merge($_GET, $_POST, $_COOKIE, $_SERVER, $_ENV, $_FILES, isset($_SESSION) && is_array($_SESSION) ? $_SESSION : array()); foreach ($input as $key => $value) { if (!in_array($key, $skip) && isset($GLOBALS[$key])) { unset($GLOBALS[$key]); } } } } // Run the function unsetGlobals(); class clean_all { function clean_all(&$data) { if (is_array($data)) { foreach ($data as $key => $val) { // The keys should usually not contain // any meta characters in their names. // If so this is possibly an attack attempt. if (preg_match('#([^a-z0-9\-\_\:\@\|])#i', urldecode($key))) { $die = "\nParsed array keys can not contain illegal characters! Script execution has been halted.
It may be possible to fix this error by deleting your browsers cookies and refresh this page.
\n"; die($die); } // keys to skip $skipKeys = array("FCKeditor","offLineContent"); // Multi dimentional arrays.. dig deeper. if (is_array($val)) { $this->clean_all($data[$key]); } elseif(!empty($val) && !in_array($key, $skipKeys)) { $data[$key] = $this->saftey($val); } } } else { $data = $this->saftey($val); } return $data; } function saftey($val) { // strip null bytes $val = str_replace("\0", '', $val); // add slashes if magic quotes is off $val = (!get_magic_quotes_gpc ()) ? addslashes ($val) : $val; return $val; } } $clean = new clean_all($data); $_GET = $clean->clean_all($_GET); $_POST = $clean->clean_all($_POST); $_COOKIE = $clean->clean_all($_COOKIE); $_REQUEST = $clean->clean_all($_REQUEST); /* END INITIAL SECURITY CHECKS */ // version info $ini['ver'] = '3.0.17'; $ini['CCver'] = '30022'; // Brute Force Protection $ini['bftime'] = 600; // seconds $ini['bfattempts'] = 5; // login attempts // Pages that should be server under SSL (if enabled) $sslPages = array("unsubscribe" => 1,"login" => 1,"logout" => 1,"forgotPass" => 1,"account" => 1,"profile" => 1,"changePass" => 1,"newsletter" => 1,"cart" => 1,"step1" => 1,"step2" => 1,"step3" => 1,"step4" => 1,"step5" => 1,"reg" => 1,"viewOrders" => 1,"viewOrder" => 1,"confirmed" => 1); ?>