************************************************************************/
// Some security stuff...
-if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!is_admin())) {
+if ((!defined('__SECURITY')) || (!is_admin())) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php";
require($INC);
}
ADMIN_SAVE_SETTINGS($_POST);
} else {
// Remember config data in constants for the template
- define('__SPONSOR_MIN_POINTS', $CONFIG['sponsor_min_points']);
- define('__SPONSOR_REF_POINTS', $CONFIG['sponsor_ref_points']);
+ define('__SPONSOR_MIN_POINTS', $_CONFIG['sponsor_min_points']);
+ define('__SPONSOR_REF_POINTS', $_CONFIG['sponsor_ref_points']);
// Load template
LOAD_TEMPLATE("admin_config_sponsor");