]> git.mxchange.org Git - mailer.git/blobdiff - inc/extensions/ext-bonus.php
Missing cache loader added from stelzi's branch
[mailer.git] / inc / extensions / ext-bonus.php
index 5cd454cb4eefec8607092f097726d34f4cbc4ae6..0e04449040c567df260d37fa00327cd7e60430a7 100644 (file)
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : Bonus-Seiten                                     *
  * -------------------------------------------------------------------- *
- *                                                                      *
+ * $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                  *
@@ -66,7 +71,7 @@ clicks BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
 mails_sent BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
 KEY(cat_id),
 PRIMARY KEY  (id)
-)TYPE=MyISAM");
+)TYPE={!_TABLE_TYPE!}");
        ADD_SQL("ALTER TABLE `{!_MYSQL_PREFIX!}_user_links` MODIFY link_type ENUM('NORMAL','BONUS') NOT NULL DEFAULT 'NORMAL'");
        ADD_SQL("ALTER TABLE `{!_MYSQL_PREFIX!}_user_links` ADD bonus_id BIGINT(20) UNSIGNED NOT NULL DEFAULT 0");
        ADD_SQL("ALTER TABLE `{!_MYSQL_PREFIX!}_user_links` ADD INDEX (bonus_id)");
@@ -148,7 +153,7 @@ PRIMARY KEY(id),
 KEY mail_id (mail_id),
 KEY bonus_id (bonus_id),
 KEY userid (userid)
-) TYPE=MyISAM");
+) TYPE={!_TABLE_TYPE!}");
 
                // Update notes (these will be set as task text!)
                EXT_SET_UPDATE_NOTES("Turbo-Bonus wird in Tabelle gezählt für Anzeige, wer alles bereits geklickt hat und welchen Platz er gemacht hat.");
@@ -539,11 +544,14 @@ WHERE last_online < ".$mark." ORDER BY userid");
        }
        break;
 
+case "modify": // When the extension got modified
+       break;
+
 case "test": // For testing purposes. For details see file inc/modules/admin/what-extensions.php, arround line 305.
        break;
 
 default: // Do stuff when extension is loaded
-       if (isBooleanConstantAndTrue('__DAILY_RESET') && (!isBooleanConstantAndTrue('DEBUG_MODE')) && ($GLOBALS['output_mode'] != 1)) {
+       if (isResetModeEnabled() && (!isDebugModeEnabled()) && ($GLOBALS['output_mode'] != 1)) {
                // Daily reset was run so let's check if active rallye is activated
                if (getConfig('bonus_active') == "Y") {
                        // Run active rallye