X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fautopurge%2Fpurge-;h=4cf502e0cacc04e3cc367bf3283d32ee3fcd6e11;hb=b73179774f08d52b76fe1836ab80f085f05f8e46;hp=7c830194c2c13255225e3c74ff3013016f6f9089;hpb=3e64a94e122e30dd66db07fd8c8cfae05871c460;p=mailer.git diff --git a/inc/autopurge/purge- b/inc/autopurge/purge- index 7c830194c2..4cf502e0ca 100644 --- a/inc/autopurge/purge- +++ b/inc/autopurge/purge- @@ -10,9 +10,14 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : * * -------------------------------------------------------------------- * - * * + * $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 * + * Copyright (c) 2003 - 2009 by Roland Haeder * * For more information visit: http://www.mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -32,13 +37,12 @@ ************************************************************************/ // Some security stuff... -if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; - require($INC); +if (!defined('__SECURITY')) { + die(); } // END - if // Abort if autopurge is not active or disabled by admin -if ((!EXT_IS_ACTIVE("autopurge")) || ($_CONFIG['auto_purge_active'] == "N")) { +if ((!isExtensionActive('autopurge')) || (getConfig('auto_purge_active') != 'Y')) { // Abort here return false; } // END - if