X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Freset%2Freset_surfbar.php;h=fd5b6527abe4f7c78e794e9a4bb5fc49c54c4c49;hp=9c9f0a1e216f81e259d2cf721c7e8feb7bc6d8c8;hb=03f62d0b89aa9276ac37f4d616d940fae184d850;hpb=7f104f6fe558bb56b4205241435a2357c2feece1 diff --git a/inc/reset/reset_surfbar.php b/inc/reset/reset_surfbar.php index 9c9f0a1e21..fd5b6527ab 100644 --- a/inc/reset/reset_surfbar.php +++ b/inc/reset/reset_surfbar.php @@ -10,7 +10,12 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : Dinge, die beim taeglichen Reset erledigt werden * * -------------------------------------------------------------------- * - * * + * $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 * @@ -33,20 +38,20 @@ // 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("")) && (!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 ((getOutputMode() == 1) || (!isResetModeEnabled())) return; +//* DEBUG: */ echo basename(__FILE__)."
\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; +updateConfiguration(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); // ?>