X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Freset%2Freset_;h=b1b4384da106ab9d16c08426b196be767b3287a9;hb=30986f637cd3c03951bdbfc880b9a420f7724ce0;hp=98eaa943fe939f69aad83625d364150c7f6a4dbd;hpb=c45b1827a16928c65ecc1aea6a9d7a504c4874d4;p=mailer.git diff --git a/inc/reset/reset_ b/inc/reset/reset_ index 98eaa943fe..b1b4384da1 100644 --- a/inc/reset/reset_ +++ b/inc/reset/reset_ @@ -10,7 +10,12 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : Dinge, die beim taeglichen Reset erledigt werden * * -------------------------------------------------------------------- * - * * + * $Revision:: 856 $ * + * $Date:: 2009-03-06 20:24:32 +0100 (Fr, 06. March 2009) $ * + * $Tag:: 0.2.1-FINAL $ * + * $Author:: stelzi $ * + * 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,16 +37,15 @@ ************************************************************************/ // 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("")) && (!IS_ADMIN())) { - ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE); +} elseif (!EXT_IS_ACTIVE('')) { return; } // Do not execute when script is in CSS mode or no daily reset -if (($CSS == 1) || (defined('__DAILY_RESET'))) return; +if (($CSS == 1) || (!isResetModeEnabled())) return; // ?>