<?php
/************************************************************************
* Mailer v0.2.1-FINAL Start: 10/27/2009 *
- * =================== Last change: 10/27/2009 *
+ * =================== Last change: 06/20/2010 *
* *
* -------------------------------------------------------------------- *
* File : reset_autopurge.php *
* svn:keywords Date Revision" (autoprobset!) at least!!!!!! *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
+ * Copyright (c) 2009, 2010 by Mailer Developer Team *
* For more information visit: http://www.mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
// Some security stuff...
if (!defined('__SECURITY')) {
die();
+} elseif ((getOutputMode() != 0) || (!isResetModeEnabled())) {
+ // Do not execute when script is in CSS mode or no daily reset
+ return;
} elseif (!isExtensionActive('autopurge')) {
+ logDebugMessage(__FILE__, __LINE__, 'Not resetting, needed extension disabled.');
return;
}
-// Do not execute when script is in CSS mode or no daily reset
-if ((getOutputMode() != 0) || (!isResetModeEnabled())) return;
-
// Init & set the include pool
initIncludePool('autopurge');
setIncludePool('autopurge', getArrayFromDirectory('inc/autopurge/', 'purge-'));