X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fextensions%2Fext-mailid.php;h=f6454f1425d0f5ccceff39bd84a39562806ad5ef;hb=81bfbcd72e424060ea1223b49ad92fcfa150f361;hp=0c5ea26c78af8fd55cd0fc3ec19581462ca3871c;hpb=e72031bcfdcd8e91f62bec6cc88f36b7a11d9221;p=mailer.git diff --git a/inc/extensions/ext-mailid.php b/inc/extensions/ext-mailid.php index 0c5ea26c78..f6454f1425 100644 --- a/inc/extensions/ext-mailid.php +++ b/inc/extensions/ext-mailid.php @@ -10,7 +10,12 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : Mailbestaetigungslink * * -------------------------------------------------------------------- * - * * + * $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 * @@ -33,204 +38,207 @@ // Some security stuff... if (!defined('__SECURITY')) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php'; require($INC); } // Version number -EXT_SET_VERSION("0.3.3"); +EXT_SET_VERSION('0.3.3'); -// Version history array (add more with , "0.1" and so on) -EXT_SET_VER_HISTORY(array("0.0", "0.0.1", "0.0.2", "0.0.3", "0.0.4", "0.0.5", "0.0.6", "0.0.7", "0.0.8", "0.0.9", "0.1.0", "0.1.1", "0.1.2", "0.1.3", "0.1.4", "0.1.5", "0.1.6", "0.1.7", "0.1.8", "0.1.9", "0.2.0", "0.2.1", "0.2.2", "0.2.3", "0.2.4", "0.2.5", "0.2.6", "0.2.7", "0.2.8", "0.2.9", "0.3.0", "0.3.1", "0.3.2", "0.3.3")); +// Version history array (add more with , '0.1.0' and so on) +EXT_SET_VER_HISTORY(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9', '0.1.0', '0.1.1', '0.1.2', '0.1.3', '0.1.4', '0.1.5', '0.1.6', '0.1.7', '0.1.8', '0.1.9', '0.2.0', '0.2.1', '0.2.2', '0.2.3', '0.2.4', '0.2.5', '0.2.6', '0.2.7', '0.2.8', '0.2.9', '0.3.0', '0.3.1', '0.3.2', '0.3.3')); switch ($EXT_LOAD_MODE) { -case "register": // Do stuff when installation is running (modules.php?module=admin&action=login is called) +case 'register': // Do stuff when installation is running (modules.php?module=admin&action=login is called) // SQL commands to run - ADD_SQL(""); + ADD_EXT_SQL(""); break; -case "remove": // Do stuff when removing extension +case 'remove': // Do stuff when removing extension // SQL commands to run - ADD_SQL(""); + ADD_EXT_SQL(""); break; -case "activate": // Do stuff when admin activates this extension +case 'activate': // Do stuff when admin activates this extension // SQL commands to run - ADD_SQL("UPDATE `{!_MYSQL_PREFIX!}_mod_reg` SET `locked`='N', hidden='N', admin_only='N', mem_only='N' WHERE module='mailid' LIMIT 1"); + ADD_EXT_SQL("UPDATE `{!_MYSQL_PREFIX!}_mod_reg` SET `locked`='N', `hidden`='N', `admin_only`='N', `mem_only`='N' WHERE `module`='mailid' LIMIT 1"); break; -case "deactivate": // Do stuff when admin deactivates this extension +case 'deactivate': // Do stuff when admin deactivates this extension // SQL commands to run - ADD_SQL("UPDATE `{!_MYSQL_PREFIX!}_mod_reg` SET `locked`='Y' WHERE module='mailid' LIMIT 1"); + ADD_EXT_SQL("UPDATE `{!_MYSQL_PREFIX!}_mod_reg` SET `locked`='Y' WHERE `module`='mailid' LIMIT 1"); break; -case "update": // Update an extension +case 'update': // Update an extension switch ($EXT_VER) { - case "0.0.1": // SQL queries for v0.0.1 + case '0.0.1': // SQL queries for v0.0.1 // Update notes (these will be set as task text!) EXT_SET_UPDATE_NOTES("Veraltetes Update."); break; - case "0.0.2": // SQL queries for v0.0.2 + case '0.0.2': // SQL queries for v0.0.2 // Update notes (these will be set as task text!) EXT_SET_UPDATE_NOTES("Turbo-Bonus interegiert, nur wenn bonus-Erweiterung v0.2.2 oder höher ist."); break; - case "0.0.4": // SQL queries for v0.0.4 + case '0.0.4': // SQL queries for v0.0.4 // Update notes (these will be set as task text!) EXT_SET_UPDATE_NOTES("Absicherung der Variablen uid, mailid und bonusid durch die eigene Funktion bigintval() in den beiden Dateien mailid.php und mailid_top.php."); break; - case "0.0.5": // SQL queries for v0.0.5 + case '0.0.5': // SQL queries for v0.0.5 // Update notes (these will be set as task text!) EXT_SET_UPDATE_NOTES("Weisse Seite im Mozilla bzw. Seite nicht gefunden unter dem IE behoben."); break; - case "0.0.6": // SQL queries for v0.0.6 + case '0.0.6': // SQL queries for v0.0.6 // Update notes (these will be set as task text!) EXT_SET_UPDATE_NOTES("register_globals-Problem behoben"); break; - case "0.0.7": // SQL queries for v0.0.7 + case '0.0.7': // SQL queries for v0.0.7 // Update notes (these will be set as task text!) EXT_SET_UPDATE_NOTES("Fehler beseitigt, wenn error_reporting=E_ALL gesetzt ist."); break; - case "0.0.8": // SQL queries for v0.0.8 + case '0.0.8': // SQL queries for v0.0.8 // Update notes (these will be set as task text!) EXT_SET_UPDATE_NOTES("Fehler beseitigt, wenn error_reporting=E_ALL gesetzt ist."); break; - case "0.0.9": // SQL queries for v0.0.9 + case '0.0.9': // SQL queries for v0.0.9 // Update notes (these will be set as task text!) EXT_SET_UPDATE_NOTES("Mailbestätigung klappt wieder."); break; - case "0.1.0": // SQL queries for v0.2.1 + case '0.1.0': // SQL queries for v0.2.1 // Update notes (these will be set as task text!) EXT_SET_UPDATE_NOTES("5 Nachkommastellen implementiert"); break; - case "0.1.1": // SQL queries for v0.1.1 + case '0.1.1': // SQL queries for v0.1.1 // Update notes (these will be set as task text!) EXT_SET_UPDATE_NOTES("Fehler beseitigt, wenn error_reporting=E_ALL gesetzt ist."); break; - case "0.1.2": // SQL queries for v0.1.2 + case '0.1.2': // SQL queries for v0.1.2 // Update notes (these will be set as task text!) EXT_SET_UPDATE_NOTES("Probe-Fix wegen falschen Bestätigungcodes bei Druck auf Return-Taste. Bitte aktualisieren Sie auch das Template mailid_confirm_buttom.tpl, damit die Bestätigung ohne Code auch klappt!"); break; - case "0.1.3": // SQL queries for v0.1.3 + case '0.1.3': // SQL queries for v0.1.3 // Update notes (these will be set as task text!) EXT_SET_UPDATE_NOTES("Menüpunkte im Gast-/Mitgliedsbereich können nicht mehr aufgerufen werden, wenn die Erweiterung deaktiviert ist."); break; - case "0.1.4": // SQL queries for v0.1.4 + case '0.1.4': // SQL queries for v0.1.4 // Update notes (these will be set as task text!) EXT_SET_UPDATE_NOTES("Sicherheitsupdate an den Scripten mailid.php und mailid_top.php durchgeführt."); break; - case "0.1.5": // SQL queries for v0.1.5 + case '0.1.5': // SQL queries for v0.1.5 // Update notes (these will be set as task text!) EXT_SET_UPDATE_NOTES("Sende-Pool wird nicht mehr benötigt, um die Bestätigung durchzuführen."); break; - case "0.1.6": // SQL queries for v0.1.6 + case '0.1.6': // SQL queries for v0.1.6 // Update notes (these will be set as task text!) EXT_SET_UPDATE_NOTES("Template mailid_frameset.tpl nach mailid_frames.tpl umbenannt."); break; - case "0.1.7": // SQL queries for v0.1.7 + case '0.1.7': // SQL queries for v0.1.7 // Update notes (these will be set as task text!) EXT_SET_UPDATE_NOTES("Ausgabe des generierten HTML-Codes nach inc/footer.php verlagert."); break; - case "0.1.8": // SQL queries for v0.1.8 + case '0.1.8': // SQL queries for v0.1.8 // Update notes (these will be set as task text!) EXT_SET_UPDATE_NOTES("Fehlende Variablen gefixt."); break; - case "0.1.9": // SQL queries for v0.1.9 + case '0.1.9': // SQL queries for v0.1.9 // Update notes (these will be set as task text!) EXT_SET_UPDATE_NOTES("Gesamt-{!POINTS!} werden nun nach Bestätigung angezeigt. Bitte aktualisieren Sie die Templates mailid_points_done.tpl, mailid_points_done2.tpl und mailid_frames.tpl !"); break; - case "0.2.0": // SQL queries for v0.2.0 + case '0.2.0': // SQL queries for v0.2.0 // Update notes (these will be set as task text!) EXT_SET_UPDATE_NOTES("Variablen abgesichert (Diverse Warnhinweise des Webservers sind damit unterbunden)."); break; - case "0.2.1": // SQL queries for v0.2.1 + case '0.2.1': // SQL queries for v0.2.1 // Update notes (these will be set as task text!) EXT_SET_UPDATE_NOTES("Parser-Fehler beseitigt."); break; - case "0.2.2": // SQL queries for v0.2.2 + case '0.2.2': // SQL queries for v0.2.2 // Update notes (these will be set as task text!) EXT_SET_UPDATE_NOTES("Fehler wegen fehlende Datenfeldelementen behoben."); break; - case "0.2.3": // SQL queries for v0.2.3 + case '0.2.3': // SQL queries for v0.2.3 // Update notes (these will be set as task text!) EXT_SET_UPDATE_NOTES("Modul mailid war nicht gesetzt. Dadurch wurden die URLs (loader z.B.) umgeschrieben und führten somit zu Fehlern."); break; - case "0.2.4": // SQL queries for v0.2.4 + case '0.2.4': // SQL queries for v0.2.4 // Update notes (these will be set as task text!) EXT_SET_UPDATE_NOTES("Vorbereitung auf die neue Mediendaten v0.0.4."); break; - case "0.2.5": // SQL queries for v0.2.5 + case '0.2.5': // SQL queries for v0.2.5 // Update notes (these will be set as task text!) EXT_SET_UPDATE_NOTES("Den Punkte in der Gesamt-{!POINTS!}-Anzahl in ein Komma umgewandelt."); break; - case "0.2.6": // SQL queries for v0.2.6 + case '0.2.6': // SQL queries for v0.2.6 // Update notes (these will be set as task text!) EXT_SET_UPDATE_NOTES("De-/Aktivieren des mit dieser Erweiterung verknüpften Modules eingebunden."); break; - case "0.2.7": // SQL queries for v0.2.7 + case '0.2.7': // SQL queries for v0.2.7 // Update notes (these will be set as task text!) EXT_SET_UPDATE_NOTES("Wenn die {!POINTS!} dem noch auf Auszahlung wartendem Guthaben aufaddiert wird, wird eine entsprechende Nachricht ausgegeben (neue Templates mailid_points_locked und mailid_points_locked2 sind hinzugekommen!)"); break; - case "0.2.8": // SQL queries for v0.2.8 + case '0.2.8': // SQL queries for v0.2.8 // Update notes (these will be set as task text!) EXT_SET_UPDATE_NOTES("Bonus- und Standart-Referal-ID ausblendbar aus Aktiv-Rallye und bekommt kein Aktiv-Guthaben."); break; - case "0.2.9": // SQL queries for v0.2.9 + case '0.2.9': // SQL queries for v0.2.9 // Update notes (these will be set as task text!) EXT_SET_UPDATE_NOTES("Code wiederholen nach Code eingeben hin geändert."); break; - case "0.3.0": // SQL queries for v0.3.0 + case '0.3.0': // SQL queries for v0.3.0 // Update notes (these will be set as task text!) EXT_SET_UPDATE_NOTES("Fehlende Templates hinzugefügt."); break; - case "0.3.1": // SQL queries for v0.3.1 + case '0.3.1': // SQL queries for v0.3.1 // Update notes (these will be set as task text!) EXT_SET_UPDATE_NOTES("mailid.php und mailid_top.php können erst bei aktivierter Erweiterung mailid benutzt werden. Solange gibt es fatale Fehlermeldungen."); break; - case "0.3.2": // SQL queries for v0.3.2 + case '0.3.2': // SQL queries for v0.3.2 // Update notes (these will be set as task text!) EXT_SET_UPDATE_NOTES("Bitte das Template {!PATH!}/templates/de/html/mailid/mailid_points_lcoked2.tpl löschen. Noices fixed."); break; - case "0.3.3": // SQL queries for v0.3.3 + case '0.3.3': // SQL queries for v0.3.3 // Update notes (these will be set as task text!) EXT_SET_UPDATE_NOTES("Variablen-Handling skriptglobal geändert."); break; } break; -case "test": // For testing purposes. For details see file inc/modules/admin/what-extensions.php, arround line 305. +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