X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fextensions%2Fext-rewrite.php;h=262dcc4bb9c9da2095cfa61e308eb75b6abb3e81;hb=3767eef30a9e514e95625e6da22418ab297b204d;hp=4fb2de06267d7cba189070a6f4a19d4060338380;hpb=d0ab0382dd73638f0bc13a1a3d6f117ec11a203e;p=mailer.git
diff --git a/inc/extensions/ext-rewrite.php b/inc/extensions/ext-rewrite.php
index 4fb2de0626..262dcc4bb9 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')) {
+ setExtensionReportsFailure(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;
- // Update notes (these will be set as task text!)
- $UPDATE_NOTES = "Zu überspringende Module können per Admin-Bereich eingestellt werden.";
+ case 'modify': // When the extension got modified
break;
- case "0.1.0": // SQL queries for v0.1.0
- // Update notes (these will be set as task text!)
- $UPDATE_NOTES = "Wörter Mailtausch, Mailtausches und Mailtauscher sind austauschbar.";
+ case 'test': // For testing purposes. For details see file inc/modules/admin/what-extensions.php, arround line 305.
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 'init': // Do stuff when extension is initialized
+ // Check if mod_rewrite is loadeded
+ if (!isApacheModuleLoaded('mod_rewrite')) {
+ setExtensionReportsFailure(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
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.";
+ default: // Unknown extension mode
+ logDebugMessage(__FILE__, __LINE__, sprintf("Unknown extension mode %s in extension %s detected.", getExtensionMode(), getCurrentExtensionName()));
break;
- }
- break;
-
-default: // Do stuff when extension is loaded
- $DUMMY = LOAD_CONFIG("0");
- $CONFIG['rewrite_skipped_mods'] = $DUMMY['rewrite_skip'];
- unset($DUMMY);
- break;
}
-// Language file prefix
-$EXT_LANG_PREFIX = "rewrite";
-
-// Extension is always active?
-$EXT_ALWAYS_ACTIVE = "N";
-//
+// [EOF]
?>