]> git.mxchange.org Git - mailer.git/blobdiff - inc/reset/reset_surfbar.php
Security line in all includes changed
[mailer.git] / inc / reset / reset_surfbar.php
index 4fc2f6b741c445f779273974a9aa828d0a8a6e22..9c9f0a1e216f81e259d2cf721c7e8feb7bc6d8c8 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("")) && (!IS_ADMIN())) {
@@ -44,7 +44,8 @@ if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) {
 if (($CSS == 1) || (defined('__DAILY_RESET'))) return;
 
 // Reset surfbar counter
-UPDATE_CONFIG("surfbar_daily_counter", "0");
+UPDATE_CONFIG(array("surfbar_daily_counter", "surfbar_yester_counter`"), array(0, $_CONFIG['surfbar_daily_counter']));
+$_CONFIG['surfbar_yester_counter'] = $_CONFIG['surfbar_daily_counter'];
 $_CONFIG['surfbar_daily_counter'] = 0;
 
 //