X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fextensions%2Fext-rewrite.php;h=d24d4daf295dc800239c8d1e088e0f7c89e21d4c;hp=3af6cb2f37d41e546e7619e6d3900a593fa073f2;hb=a090e351c49fe021fb3064325694da03402332e0;hpb=f212df3d9d1d3c7f8632040130be9e7160980de6
diff --git a/inc/extensions/ext-rewrite.php b/inc/extensions/ext-rewrite.php
index 3af6cb2f37..d24d4daf29 100644
--- a/inc/extensions/ext-rewrite.php
+++ b/inc/extensions/ext-rewrite.php
@@ -43,14 +43,14 @@ if (!defined('__SECURITY')) {
}
// Version number
-EXT_SET_VERSION("0.1.3");
+EXT_SET_VERSION('0.1.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"));
+// 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'));
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)
// Check if mod_rewrite is loadeded
if (!IF_APACHE_MODULE_LOADED('mod_rewrite')){
EXT_SET_REPORTS_FAILURE(true);
@@ -61,12 +61,12 @@ case "register": // Do stuff when installation is running (modules.php?module=ad
ADD_EXT_SQL("");
break;
-case "remove": // Do stuff when removing extension
+case 'remove': // Do stuff when removing extension
// SQL commands to run
ADD_EXT_SQL("DELETE LOW_PRIORITY FROM `{!_MYSQL_PREFIX!}_admin_menu` WHERE `what`='config_rewrite'");
break;
-case "activate": // Do stuff when admin activates this extension
+case 'activate': // Do stuff when admin activates this extension
// Check if mod_rewrite is loadeded
if (!IF_APACHE_MODULE_LOADED('mod_rewrite')) {
SQL_QUERY("UPDATE `{!_MYSQL_PREFIX!}_extensions` SET ext_active='N' WHERE ext_name='rewrite' LIMIT 1", __FILE__, __LINE__);
@@ -78,53 +78,53 @@ case "activate": // Do stuff when admin activates this extension
ADD_EXT_SQL("");
break;
-case "deactivate": // Do stuff when admin deactivates this extension
+case 'deactivate': // Do stuff when admin deactivates this extension
// SQL commands to run
ADD_EXT_SQL("");
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("Folgende Linkvariablen werden nun auch ausgetauscht: bid, mid, url, page, offset");
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("Folgende Linkvariablen werden nun auch ausgetauscht: type, do=search");
- case "0.0.3": // SQL queries for v0.0.3
+ case '0.0.3': // SQL queries for v0.0.3
// Update notes (these will be set as task text!)
- EXT_SET_UPDATE_NOTES("URLs zu MXChange.org (".SERVER_URL.") sind nun auch wieder gültig.");
+ EXT_SET_UPDATE_NOTES("URLs zu MXChange.org ({!SERVER_URL!}) sind nun auch wieder gültig.");
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("Folgende Linkvariablen werden nun auch ausgetausch: sub, home");
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("Links im Admin- und Mitgliedsbereich werden nicht mehr umgeschrieben. Entsprechend fällt die neue .htaccess-Datei kleiner aus. Bitte anpassen!");
- 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("Links im Frametester-Modul werden nicht mehr umgeschrieben.");
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
ADD_EXT_SQL("ALTER TABLE `{!_MYSQL_PREFIX!}_config` ADD rewrite_skip VARCHAR(255) NOT NULL DEFAULT 'login:admin:frametester:mailid'");
ADD_EXT_SQL("INSERT INTO `{!_MYSQL_PREFIX!}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('setup','config_rewrite','Rewrite-Engine','Stellen Sie hier ein, welche Module übersprungen werden sollen, in denen also kein Umschreiben des HTML-Codes stattfinden soll.', 8)");
@@ -132,21 +132,21 @@ case "update": // Update an extension
EXT_SET_UPDATE_NOTES("Zu überspringende Module können per Admin-Bereich eingestellt werden.");
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("Wörter Mailtausch, Mailtausches und Mailtauscher sind austauschbar.");
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("HTML-Code ausgelagert in Templates und SQL-Anweisungen abgesichert.");
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("Abspeichern von Einstellungen repariert.");
break;
- case "0.1.3":
+ case '0.1.3':
// Check if mod_rewrite is loadeded
if (!IF_APACHE_MODULE_LOADED('mod_rewrite')){
EXT_SET_REPORTS_FAILURE(true);
@@ -157,10 +157,10 @@ case "update": // Update an extension
}
break;
-case "modify": // When the extension got modified
+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. For details see file inc/modules/admin/what-extensions.php, arround line 305.
break;
default: // Do stuff when extension is loaded