]> git.mxchange.org Git - mailer.git/blobdiff - inc/monthly/monthly_surfbar.php
'what','action','module' and 'output_mode' wrapped into functions (WARNUNG: Code...
[mailer.git] / inc / monthly / monthly_surfbar.php
index e7f52fdb313f8f8aa55af2ee3f4c0b9522912809..842c23bd9540c61c026e953dc20eb5d98ce11eb2 100644 (file)
 
 // 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('surfbar')) {
        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__)."<br />\n";
 
 // Reset surfbar counter
-UPDATE_CONFIG("surfbar_monthly_counter", "0");
+updateConfiguration('surfbar_monthly_counter', '0');
 
 //
 ?>