************************************************************************/
// Some security stuff...
-if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) {
+if (!defined('__SECURITY')) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php";
require($INC);
} elseif ((!EXT_IS_ACTIVE("sponsor")) && (!IS_ADMIN())) {
}
// Unsecure data which we don't want here
- $UNSAFE = array('receive_warnings', 'warning_interval');
+ $UNSAFE = array('receive_warnings', 'warning_interval');
// Remove all (maybe spoofed) unsafe data from array
foreach ($UNSAFE as $remove) {