X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fextensions%2Fext-rewrite.php;h=341cc122cc622638c9f1477cd464bf3148394372;hb=f6014bce7255a915872f2f463247440c0d58f9a9;hp=fc04a655f121b1d32378b5546b37bc25820289b0;hpb=a5d425e62fc53d0470cfbebfe67929e27483035b;p=mailer.git
diff --git a/inc/extensions/ext-rewrite.php b/inc/extensions/ext-rewrite.php
index fc04a655f1..341cc122cc 100644
--- a/inc/extensions/ext-rewrite.php
+++ b/inc/extensions/ext-rewrite.php
@@ -1,7 +1,7 @@
{?mt_word?}, {?mt_word2?} und {?mt_word3?} sind austauschbar.");
+ break;
+
+ case '0.1.1': // SQL queries for v0.1.1
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("HTML-Code ausgelagert in Templates und SQL-Anweisungen abgesichert.");
+ break;
+
+ case '0.1.2': // SQL queries for v0.1.2
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Abspeichern von Einstellungen repariert.");
+ break;
+ case '0.1.3':
+ // Check if mod_rewrite is loadeded
+ if (!isApacheModuleLoaded('mod_rewrite')) {
+ enableExtensionReportingFailure(true);
+ //addFatalMessage(__FILE__, __LINE__, '{--MOD_REWRITE_ERROR--}');
+ } // END - if
+ setExtensionUpdateNotes("Es wird beim Registrieren und aktivieren geprüft, ob im Apache das Modul mod_rewrite geladen wurde. Wenn mod_rewrite nicht gefunden werden konnte, wird abgebrochen.");
+ break;
+ }
break;
- case "0.1.0": // SQL queries for v0.2.1
- // Update notes (these will be set as task text!)
- $UPDATE_NOTES = "Wörter Mailtausch, Mailtausches und Mailtauscher sind austauschbar.";
+ case 'modify': // When the extension got modified
break;
- case "0.1.1": // SQL queries for v0.1.1
- // Update notes (these will be set as task text!)
- $UPDATE_NOTES = "HTML-Code ausgelagert in Templates und SQL-Anweisungen abgesichert.";
+ case 'test': // For testing purposes
break;
- case "0.1.2": // SQL queries for v0.1.2
- // Update notes (these will be set as task text!)
- $UPDATE_NOTES = "Abspeichern von Einstellungen repariert.";
+ case 'init': // Do stuff when extension is initialized
+ // Check if mod_rewrite is loadeded
+ if (!isApacheModuleLoaded('mod_rewrite')) {
+ enableExtensionReportingFailure(true);
+ SQL_QUERY("UPDATE `{?_MYSQL_PREFIX?}_extensions` SET `ext_active`='N' WHERE `ext_name`='rewrite' LIMIT 1", __FILE__, __LINE__);
+ if (!isAdmin()) {
+ addFatalMessage(__FILE__, __LINE__, '{--MOD_REWRITE_ERROR--}');
+ } // END - if
+ } // END - if
break;
- }
- break;
-default: // Do stuff when extension is loaded
- break;
+ default: // Unknown extension mode
+ logDebugMessage(__FILE__, __LINE__, sprintf("Unknown extension mode %s in extension %s detected.", getExtensionMode(), getCurrentExtensionName()));
+ break;
}
-// Language file prefix
-$EXT_LANG_PREFIX = "rewrite";
-
-// Extension is always active?
-$EXT_ALWAYS_ACTIVE = "N";
-
-//
+// [EOF]
?>