<?php
/************************************************************************
* Mailer v0.2.1-FINAL Start: 09/08/2008 *
- * =================== Last change: 09/08/2008 *
+ * =================== Last change: 06/20/2010 *
* *
* -------------------------------------------------------------------- *
* File : weekly_surfbar.php *
// Some security stuff...
if (!defined('__SECURITY')) {
die();
+} elseif ((getOutputMode() == 1) || (!isResetModeEnabled())) {
+ // Do not execute when script is in CSS mode or no daily reset
+ return;
} elseif (!isExtensionActive('surfbar')) {
+ logDebugMessage(__FILE__, __LINE__, 'Not resetting, needed extension disabled.');
return;
}
-// Do not execute when script is in CSS mode or no daily reset
-if ((getOutputMode() == 1) || (!isResetModeEnabled())) return;
-//* DEBUG: */ outputHtml(basename(__FILE__)."<br />");
-
// Reset the surfbar counter
updateConfiguration('surfbar_weekly_counter', 0);
-//
+// [EOF]
?>