X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fextensions%2Fext-mailid.php;h=6b631223f1d5c2a0b74076c29e6b18c941b726b8;hp=69b9829583afc3ebe08563e5cea5ccc9c46dadcc;hb=61621983cc6d7195fcc7eab29b5f6080ff283b34;hpb=e2148142f8b1a8f40fd6e7ca32185569c5a9083e diff --git a/inc/extensions/ext-mailid.php b/inc/extensions/ext-mailid.php index 69b9829583..6b631223f1 100644 --- a/inc/extensions/ext-mailid.php +++ b/inc/extensions/ext-mailid.php @@ -8,17 +8,16 @@ * -------------------------------------------------------------------- * * Short description : Mail confirmation link * * -------------------------------------------------------------------- * - * Kurzbeschreibung : Mailbestätigungslink * + * 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 - 2009 by Roland Haeder * - * For more information visit: http://www.mxchange.org * + * Copyright (c) 2009 - 2016 by Mailer Developer Team * + * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -39,28 +38,31 @@ // Some security stuff... if (!defined('__SECURITY')) { die(); -} +} // END - if // Version number -setThisExtensionVersion('0.3.3'); +setThisExtensionVersion('0.3.4'); -// Version history array (add more with , '0.1.0' and so on) -setExtensionVersionHistory(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.0.1' and so on) +setExtensionVersionHistory(array('0.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', '0.3.4')); switch (getExtensionMode()) { - case 'register': // Do stuff when installation is running (modules.php?module=admin is called) + case 'setup': // Do stuff when installation is running + // This extension requires ext-other + addExtensionDependency('other'); + // SQL commands to run addExtensionSql(''); break; case 'remove': // Do stuff when removing extension - // SQL commands to run - addExtensionSql(''); + // Unregister points data + unregisterExtensionPointsData('mailid_payback'); break; case 'activate': // Do stuff when admin activates this extension // SQL commands to run - addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N', `hidden`='N', `admin_only`='N', `mem_only`='N' WHERE `module`='mailid' LIMIT 1"); + addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N',`admin_only`='N',`mem_only`='N' WHERE `module`='mailid' LIMIT 1"); break; case 'deactivate': // Do stuff when admin deactivates this extension @@ -82,12 +84,12 @@ switch (getExtensionMode()) { case '0.0.4': // SQL queries for v0.0.4 // Update notes (these will be set as task text!) - setExtensionUpdateNotes("Absicherung der Variablen userid, mailid und bonusid durch die eigene Funktion bigintval() in den beiden Dateien mailid.php und mailid_top.php."); + setExtensionUpdateNotes("Absicherung der Variablen userid, mailid und bonusid durch die eigene Funktion bigintval() in der Datei mailid.php."); break; case '0.0.5': // SQL queries for v0.0.5 // Update notes (these will be set as task text!) - setExtensionUpdateNotes("Weisse Seite im Mozilla bzw. Seite nicht gefunden unter dem IE behoben."); + setExtensionUpdateNotes("Weisse Seite im Mozilla bzw. Seite nicht gefunden unter dem IE behoben."); break; case '0.0.6': // SQL queries for v0.0.6 @@ -132,7 +134,7 @@ switch (getExtensionMode()) { case '0.1.4': // SQL queries for v0.1.4 // Update notes (these will be set as task text!) - setExtensionUpdateNotes("Sicherheitsupdate an den Scripten mailid.php und mailid_top.php durchgeführt."); + setExtensionUpdateNotes("Sicherheitsupdate an den Scripten mailid.php und mailid.php durchgeführt."); break; case '0.1.5': // SQL queries for v0.1.5 @@ -177,7 +179,7 @@ switch (getExtensionMode()) { case '0.2.3': // SQL queries for v0.2.3 // Update notes (these will be set as task text!) - setExtensionUpdateNotes("Modul mailid war nicht gesetzt. Dadurch wurden die URLs (loader z.B.) umgeschrieben und führten somit zu Fehlern."); + setExtensionUpdateNotes("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 @@ -187,7 +189,7 @@ switch (getExtensionMode()) { case '0.2.5': // SQL queries for v0.2.5 // Update notes (these will be set as task text!) - setExtensionUpdateNotes("Den Punkte in der Gesamt-{?POINTS?}-Anzahl in ein Komma umgewandelt."); + setExtensionUpdateNotes("Den Punkt in der Gesamt-{?POINTS?}-Anzahl in ein Komma umgewandelt."); break; case '0.2.6': // SQL queries for v0.2.6 @@ -197,17 +199,17 @@ switch (getExtensionMode()) { case '0.2.7': // SQL queries for v0.2.7 // Update notes (these will be set as task text!) - setExtensionUpdateNotes("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!)"); + setExtensionUpdateNotes("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 // Update notes (these will be set as task text!) - setExtensionUpdateNotes("Bonus- und Standart-Referal-Id ausblendbar aus Aktiv-Rallye und bekommt kein Aktiv-Guthaben."); + setExtensionUpdateNotes("Bonus- und Standard-Referral-Id ausblendbar aus Aktiv-Rallye und bekommt kein Aktiv-Guthaben."); break; case '0.2.9': // SQL queries for v0.2.9 // Update notes (these will be set as task text!) - setExtensionUpdateNotes("Code wiederholen nach Code eingeben hin geändert."); + setExtensionUpdateNotes("Code wiederholen nach Code eingeben hin geändert."); break; case '0.3.0': // SQL queries for v0.3.0 @@ -217,34 +219,39 @@ switch (getExtensionMode()) { case '0.3.1': // SQL queries for v0.3.1 // Update notes (these will be set as task text!) - setExtensionUpdateNotes("mailid.php und mailid_top.php können erst bei aktivierter Erweiterung mailid benutzt werden. Solange gibt es fatale Fehlermeldungen."); + setExtensionUpdateNotes("mailid.php kann erst bei aktivierter Erweiterung mailid benutzt werden. Solange gibt es fatale Fehlermeldungen."); break; case '0.3.2': // SQL queries for v0.3.2 // Update notes (these will be set as task text!) - setExtensionUpdateNotes("Bitte das Template {?PATH?}/templates/de/html/mailid/mailid_points_lcoked2.tpl löschen. Noices fixed."); + setExtensionUpdateNotes("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 // Update notes (these will be set as task text!) setExtensionUpdateNotes("Variablen-Handling scripteweitgeändert."); break; - } + + case '0.3.4': // SQL queries for v0.3.4 + // Register points data + registerExtensionPointsData('mailid_payback', 'points', 'LOCKED', 'DIRECT'); + break; + } // END - switch 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. + case 'test': // For testing purposes break; case 'init': // Do stuff when extension is initialized break; default: // Unknown extension mode - DEBUG_LOG(__FILE__, __LINE__, sprintf("Unknown extension mode %s detected.", getExtensionMode())); + reportBug(__FILE__, __LINE__, sprintf('Unknown extension mode %s in extension %s detected.', getExtensionMode(), getCurrentExtensionName())); break; -} +} // END - switch // [EOF] ?>