]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/what-beg.php
Security line in all includes changed
[mailer.git] / inc / modules / guest / what-beg.php
index 887c393f1e5c51d272f1518da28d84ad3924d613..81828860660ae6d65bd0dbaccdce80f2fb0d976b 100644 (file)
@@ -32,7 +32,7 @@
  ************************************************************************/
 
 // 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("beg")) && (!IS_ADMIN())) {
@@ -44,22 +44,22 @@ if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) {
 ADD_DESCR("guest", basename(__FILE__));
 
 // Prepare constants
-define('__BEG_POINTS'    , TRANSLATE_COMMA($CONFIG['beg_points']));
-define('__BEG_POINTS_MAX', TRANSLATE_COMMA($CONFIG['beg_points_max']));
+define('__BEG_POINTS'    , TRANSLATE_COMMA($_CONFIG['beg_points']));
+define('__BEG_POINTS_MAX', TRANSLATE_COMMA($_CONFIG['beg_points_max']));
 if ($GLOBALS['refid'] > 0) {
        // Take referral ID from URL/Cookie
        define('__BEG_UID'       , $ref);
 } else {
        // Take default referral ID
-       define('__BEG_UID'       , $CONFIG['def_refid']);
+       define('__BEG_UID'       , $_CONFIG['def_refid']);
 }
 
 if (function_exists('CREATE_FANCY_TIME')) {
-       define('__BEG_TIMEOUT'    , CREATE_FANCY_TIME($CONFIG['beg_timeout']));
-       define('__BEG_UID_TIMEOUT', CREATE_FANCY_TIME($CONFIG['beg_uid_timeout']));
+       define('__BEG_TIMEOUT'    , CREATE_FANCY_TIME($_CONFIG['beg_timeout']));
+       define('__BEG_UID_TIMEOUT', CREATE_FANCY_TIME($_CONFIG['beg_uid_timeout']));
 } else {
-       define('__BEG_TIMEOUT '   , round($CONFIG['beg_timeout']     / 60)." ".MINUTES);
-       define('__BEG_UID_TIMEOUT', round($CONFIG['beg_uid_timeout'] / 60)." ".MINUTES);
+       define('__BEG_TIMEOUT '   , round($_CONFIG['beg_timeout']     / 60)." ".MINUTES);
+       define('__BEG_UID_TIMEOUT', round($_CONFIG['beg_uid_timeout'] / 60)." ".MINUTES);
 }
 
 // Load final template