X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Freset%2Freset_beg.php;h=3fdf322e81a1793c8cacfec3f3bf021b510d7fdc;hb=89c00e43d2ce1dd1afe11c2c8485307342805f97;hp=d4bf446968993cab5b4370f18a9f220fa6a1aaa3;hpb=963e55ca1ea79e255f235e359cde9f7862191dc5;p=mailer.git diff --git a/inc/reset/reset_beg.php b/inc/reset/reset_beg.php index d4bf446968..3fdf322e81 100644 --- a/inc/reset/reset_beg.php +++ b/inc/reset/reset_beg.php @@ -35,16 +35,16 @@ if (!defined('__SECURITY')) { $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); -} elseif ((!EXT_IS_ACTIVE("beg")) && (!IS_ADMIN())) { - ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "beg"); +} elseif (!EXT_IS_ACTIVE("beg")) { return; } // Do not execute when script is in CSS mode or no daily reset -if (($CSS == 1) || (!isBooleanConstantAndTrue('__DAILY_RESET')) || ($_CONFIG['beg_rallye'] == "Y")) return; +if (($CSS == 1) || (!defined('__DAILY_RESET')) || (getConfig('beg_rallye') == "Y")) return; +//* DEBUG: */ echo basename(__FILE__)."
\n"; // Reset accounts -$result = SQL_QUERY("UPDATE "._MYSQL_PREFIX."_user_data SET beg_points=0.00000 WHERE beg_points > 0", +$result = SQL_QUERY("UPDATE `"._MYSQL_PREFIX."_user_data` SET beg_points=0.00000 WHERE beg_points > 0", __FILE__, __LINE__); //