X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fweekly%2Fweekly_surfbar.php;h=78770742b250bbcb23c3d8ae12c1e56ba13f9a09;hb=5071030af40e69ca4284642f44758964e18f5be8;hp=74ce5f6aa6fcca3f57b67815d377b8d0ead1a829;hpb=c45b1827a16928c65ecc1aea6a9d7a504c4874d4;p=mailer.git diff --git a/inc/weekly/weekly_surfbar.php b/inc/weekly/weekly_surfbar.php index 74ce5f6aa6..78770742b2 100644 --- a/inc/weekly/weekly_surfbar.php +++ b/inc/weekly/weekly_surfbar.php @@ -10,7 +10,12 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : * * -------------------------------------------------------------------- * - * * + * $Revision:: $ * + * $Date:: $ * + * $Tag:: 0.2.1-FINAL $ * + * $Author:: $ * + * Needs to be in all Files and every File needs "svn propset * + * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2008 by Roland Haeder * * For more information visit: http://www.mxchange.org * @@ -32,20 +37,19 @@ ************************************************************************/ // Some security stuff... -if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; +if (!defined('__SECURITY')) { + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php'; require($INC); -} elseif ((!EXT_IS_ACTIVE("surfbar")) && (!IS_ADMIN())) { - ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE); +} elseif (!EXT_IS_ACTIVE('surfbar')) { return; } // 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__)."
\n"; // Reset the surfbar counter -UPDATE_CONFIG("surfbar_weekly_counter", "0"); -$_CONFIG['surfbar_weekly_counter'] = 0; +updateConfiguration('surfbar_weekly_counter', '0'); // ?>