X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fextensions%2Fext-html_mail.php;h=88481d29682d95f2182454ecae2861c873f8a78b;hb=378729b7c01f1cf81a83de69deaa0510b3302af4;hp=fc9de447c409bae3b1c2fcc645c0c22cf2f78391;hpb=fb7120ffa230b62b54895bcf95952e1cf30f8594;p=mailer.git
diff --git a/inc/extensions/ext-html_mail.php b/inc/extensions/ext-html_mail.php
index fc9de447c4..88481d2968 100644
--- a/inc/extensions/ext-html_mail.php
+++ b/inc/extensions/ext-html_mail.php
@@ -1,24 +1,23 @@
Patch 340 überflüssige HTML-Tags entfernt.");
+ case 'deactivate': // Do stuff when admin deactivates this extension
+ // SQL commands to run
+ addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `visible`='N',`locked`='Y' WHERE `what`='html_mail' LIMIT 1");
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 'update': // Update an extension
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 'modify': // When the extension got modified
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 'test': // For testing purposes
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.");
+ 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(
+ ' ',
+ PHP_EOL,
+ chr(13),
+ ')',
+ );
+
+ // 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.6":
- // Dependency is needed for ext-registration!! (want to alter a non existent Table)
- EXT_SET_UPDATE_DEPENDS("bonus");
- EXT_SET_UPDATE_NOTES("Abhänigkeit von der Erweiterung bonus hinzugefügt.");
+ default: // Unknown extension mode
+ reportBug(__FILE__, __LINE__, sprintf('Unknown extension mode %s in extension %s detected.', getExtensionMode(), getCurrentExtensionName()));
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;
-}
-
-//
+} // END - switch
+
+// [EOF]
?>