]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_sponsor.php
- Surfbar further extended, currently broken!
[mailer.git] / inc / modules / admin / what-config_sponsor.php
index dc81d948a91d5c1daafd365d73bd19b072128c4c..59dd718f32ccd7cf20ce1583859cb40be84d2d53 100644 (file)
@@ -31,7 +31,7 @@
  ************************************************************************/
 
 // 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);
 }
@@ -48,8 +48,8 @@ if (isset($_POST['ok'])) {
        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");