]> git.mxchange.org Git - mailer.git/blobdiff - inc/reset/reset_beg.php
Several double->single convertions, fix for missing constant '_MYSQL_PREFIX' which...
[mailer.git] / inc / reset / reset_beg.php
index a2b709e94c16c423078c4cd40366326511d7e09b..bd04234ba5a79293ae197c4f38fbf33c03fba327 100644 (file)
 
 // Some security stuff...
 if (!defined('__SECURITY')) {
-       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
+       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
        require($INC);
 } elseif (!EXT_IS_ACTIVE('beg')) {
        return;
 }
 
 // Do not execute when script is in CSS mode or no daily reset
-if (($GLOBALS['output_mode'] == 1) || (!isResetModeEnabled()) || (getConfig('beg_rallye') == 'Y')) return;
+if ((getOutputMode() == 1) || (!isResetModeEnabled()) || (getConfig('beg_rallye') == 'Y')) return;
 //* DEBUG: */ echo basename(__FILE__)."<br />\n";
 
 // Reset accounts
 $result = SQL_QUERY("UPDATE `{!_MYSQL_PREFIX!}_user_data` SET beg_points=0.00000 WHERE beg_points > 0",
- __FILE__, __LINE__);
+__FILE__, __LINE__);
 
 //
 ?>