X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Freset%2Freset_bonus.php;h=03fabd84c89e52eca0433c6d216b7c079fb85308;hp=307d9d31e5805ddfffc0fb44413548d06955ec98;hb=03f62d0b89aa9276ac37f4d616d940fae184d850;hpb=fb7120ffa230b62b54895bcf95952e1cf30f8594 diff --git a/inc/reset/reset_bonus.php b/inc/reset/reset_bonus.php index 307d9d31e5..03fabd84c8 100644 --- a/inc/reset/reset_bonus.php +++ b/inc/reset/reset_bonus.php @@ -38,14 +38,14 @@ // 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("bonus")) { +} elseif (!EXT_IS_ACTIVE('bonus')) { return; } // Do not execute when script is in CSS mode or no daily reset -if (($GLOBALS['output_mode'] == 1) || (!isResetModeEnabled())) return; +if ((getOutputMode() == 1) || (!isResetModeEnabled())) return; //* DEBUG: */ echo basename(__FILE__)."
\n"; // Purge expired entries in _bonus_turbo @@ -53,7 +53,7 @@ BONUS_PURGE_EXPIRED_TURBO_BONUS(); // Reset accounts $result = SQL_QUERY("UPDATE `{!_MYSQL_PREFIX!}_user_data` SET turbo_bonus=0, login_bonus=0, bonus_order=0, bonus_stats=0, bonus_ref=0", - __FILE__, __LINE__); +__FILE__, __LINE__); // ?>