]> git.mxchange.org Git - mailer.git/blobdiff - inc/reset/reset_surfbar.php
Global variables rewritten
[mailer.git] / inc / reset / reset_surfbar.php
index 98d5c5600a2cf2578e343221ed1a541f1ea2cc08..fc73f486c36762a17be662088c5470930269f60a 100644 (file)
@@ -40,13 +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) || (!defined('__DAILY_RESET'))) return;
 //* DEBUG: */ echo basename(__FILE__)."<br />\n";
 
 // Reset surfbar counter
 UPDATE_CONFIG(array("surfbar_daily_counter", "surfbar_yester_counter"), array(0, getConfig('surfbar_daily_counter')));
-$_CONFIG['surfbar_yester_counter'] = getConfig('surfbar_daily_counter');
-$_CONFIG['surfbar_daily_counter'] = 0;
+setConfigEntry('surfbar_yester_counter', getConfig('surfbar_daily_counter'));
+setConfigEntry('surfbar_daily_counter' , 0);
 
 //
 ?>