]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-add_sponsor.php
Refback will be payed now (user cannot setup currently)
[mailer.git] / inc / modules / admin / what-add_sponsor.php
index 2d056ebce741d85f908585cb97931c512681077f..45838247b0027d089e26ea7df1f4c77a6b2c6ce1 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);
 }
@@ -44,7 +44,7 @@ if (isset($_POST['ok'])) {
        SPONSOR_HANDLE_SPONSOR($_POST);
 } else {
        // Prepare constants for the template
-       define('__SPONSOR_MIN_VALUE', $CONFIG['sponsor_min_points']);
+       define('__SPONSOR_MIN_VALUE', $_CONFIG['sponsor_min_points']);
 
        // Output form
        LOAD_TEMPLATE("admin_add_sponsor");