]> git.mxchange.org Git - mailer.git/blobdiff - inc/reset/reset_surfbar.php
Rewrites of more constants
[mailer.git] / inc / reset / reset_surfbar.php
index 5398a779e80ebd855428efec32b04b5a55e076d1..ba109acdbba53a8fe98e1cb0f3f063074f3920a7 100644 (file)
@@ -40,12 +40,13 @@ if (!defined('__SECURITY')) {
 }
 
 // Do not execute when script is in CSS mode or no daily reset
-if (($CSS == 1) || (!defined('__DAILY_RESET'))) return;
+if (($GLOBALS['output_mode'] == 1) || (!isResetModeEnabled())) return;
+//* DEBUG: */ echo basename(__FILE__)."<br />\n";
 
 // Reset surfbar counter
-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;
+UPDATE_CONFIG(array("surfbar_daily_counter", "surfbar_yester_counter"), array(0, getConfig('surfbar_daily_counter')));
+setConfigEntry('surfbar_yester_counter', getConfig('surfbar_daily_counter'));
+setConfigEntry('surfbar_daily_counter' , 0);
 
 //
 ?>