X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fextensions%2Fext-html_mail.php;h=8693adb9397d3b90e849427ba50b659bafb9b827;hp=b32605ae41ddf6468c2851df62643f396126c662;hb=4bf784ce2bd777045d4351b3fefbd34c66c838e1;hpb=7b0f17cd637e388049d2167811e4332cec1e979b diff --git a/inc/extensions/ext-html_mail.php b/inc/extensions/ext-html_mail.php index b32605ae41..8693adb939 100644 --- a/inc/extensions/ext-html_mail.php +++ b/inc/extensions/ext-html_mail.php @@ -1,7 +1,7 @@ Patch 340 überflüssige HTML-Tags entfernt."); + case 'update': // Update an extension + switch (getCurrentExtensionVersion()) { + case '0.0.6': // SQL queries for v0.0.6 + // Update notes (these will be set as task text!) + setExtensionUpdateNotes("Der erstellte HTML-Code wird noch kompiliert (eigene HTML-Codes umgewandelt)."); + break; + + case '0.0.8': // SQL queries for v0.0.8 + // Update notes (these will be set as task text!) + setExtensionUpdateNotes("Fehlende Abfrage im Mitlieder-Modul, on Erweiterung auch aktiviert ist."); + break; + + case '0.0.9': // SQL queries for v0.0.9 + // Update notes (these will be set as task text!) + setExtensionUpdateNotes("Fehler beseitigt, wenn error_reporting=E_ALL gesetzt ist."); + break; + + case '0.1.0': // SQL queries for v0.2.1 + // Update notes (these will be set as task text!) + setExtensionUpdateNotes("Menüpunkte im Gast-/Mitgliedsbereich können nicht mehr aufgerufen werden, wenn die Erweiterung deaktiviert ist."); + break; + + case '0.1.1': // SQL queries for v0.1.1 + // Update notes (these will be set as task text!) + setExtensionUpdateNotes("Seit Patch 340 überflüssige HTML-Tags entfernt."); + break; + + case '0.1.2': // SQL queries for v0.1.2 + // Update notes (these will be set as task text!) + setExtensionUpdateNotes("Wörter {?mt_word?}, {?mt_word2?} und {?mt_word3?} sind austauschbar."); + break; + + case '0.1.3': // SQL queries for v0.1.3 + // Update notes (these will be set as task text!) + setExtensionUpdateNotes("Sicherheitsupdate: SQL-Anweisungen geschützt."); + break; + + case '0.1.4': // SQL queries for v0.1.4 + // Update notes (these will be set as task text!) + setExtensionUpdateNotes("Abspeichern von Einstellungen repariert."); + break; + + case '0.1.5': // SQL queries for v0.1.5 + // Update notes (these will be set as task text!) + setExtensionUpdateNotes("Fehlerhinweis bei deaktivierter Erweiterung verbessert."); + break; + + case '0.1.6': + // Dependency is needed for ext-registration!! (want to alter a non existent Table) + addExtensionUpdateDependency('bonus'); + setExtensionUpdateNotes("Abhänigkeit von der Erweiterung bonus hinzugefügt."); + break; + } break; - case '0.1.2': // SQL queries for v0.1.2 - // Update notes (these will be set as task text!) - EXT_SET_UPDATE_NOTES("Wörter Mailtausch, Mailtausches und Mailtauscher sind austauschbar."); + case 'modify': // When the extension got modified break; - case '0.1.3': // SQL queries for v0.1.3 - // Update notes (these will be set as task text!) - EXT_SET_UPDATE_NOTES("Sicherheitsupdate: SQL-Anweisungen geschützt."); + case 'test': // For testing purposes. For details see file inc/modules/admin/what-extensions.php, arround line 305. break; - case '0.1.4': // SQL queries for v0.1.4 - // Update notes (these will be set as task text!) - EXT_SET_UPDATE_NOTES("Abspeichern von Einstellungen repariert."); + case 'init': // Do stuff when extension is initialized + // Valid HTML tags (only simple and no attributes!) + // @TODO Move these arrays into config + $GLOBALS['html_tags'] = array( + 'b', + 'i', + 'u', + 'ol', + 'ul', + 'li', + 'strong', + 'center', + 'left', + 'right', + 'br', + ); + + // URL ends which are used to indentify the end of an URL or email link + // Don't use these chars in links... ;-) + // + $GLOBALS['url_ends'] = array( + ' ', + "\n", + "\r", + ')', + ); + + // Valid email chars (without @, or do you want to have another @ inside your email email?) + $GLOBALS['valid_email_chars'] = array( + 'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s', + 't','u','v','w','x','y','z','a','B','C','D','E','F','G','H','I','J','K','L', + 'M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','-','.','_',0,1, + 2,3,4,5,6,7,8,9 + ); break; - case '0.1.5': // SQL queries for v0.1.5 - // Update notes (these will be set as task text!) - EXT_SET_UPDATE_NOTES("Fehlerhinweis bei deaktivierter Erweiterung verbessert."); + default: // Unknown extension mode + logDebugMessage(__FILE__, __LINE__, sprintf("Unknown extension mode %s in extension %s detected.", getExtensionMode(), getCurrentExtensionName())); break; +} // END - switc - case '0.1.6': - // Dependency is needed for ext-registration!! (want to alter a non existent Table) - EXT_ADD_UPDATE_DEPENDS('bonus'); - EXT_SET_UPDATE_NOTES("Abhänigkeit von der Erweiterung bonus hinzugefügt."); - break; - } - 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 - // Valid HTML tags (only simple and no attributes!) - $GLOBALS['html_tags'] = array( - 'b', - 'i', - 'u', - 'ol', - 'ul', - 'li', - 'strong', - 'center', - 'left', - 'right', - 'br', - ); - - // URL ends which are used to indentify the end of an URL or email link - // Don't use these chars in links... ;-) - // - $GLOBALS['url_ends'] = array( - ' ', - "\n", - "\r", - ')', - ); - - // Valid email chars (without @, or do you want to have another @ inside your email addy?) - $GLOBALS['valid_email_chars'] = array( - 'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s', - 't','u','v','w','x','y','z','a','B','C','D','E','F','G','H','I','J','K','L', - 'M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','-','.','_','0','1', - '2','3','4','5','6','7','8','9' - ); - break; -} - -// +// [EOF] ?>