X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fextensions%2Fext-rewrite.php;h=42f7f5857e240d9205e47b9d61f2230685e42a5c;hb=7f746f060a7b69433149b462e64c5121ce853151;hp=0a72c21c0541144b03f2571e2f96581f5e180b70;hpb=e6785b4a4845d7a885b0e9c6dac517c6867940e1;p=mailer.git
diff --git a/inc/extensions/ext-rewrite.php b/inc/extensions/ext-rewrite.php
index 0a72c21c05..42f7f5857e 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__, getMessage('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!)
- EXT_SET_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!)
- EXT_SET_UPDATE_NOTES("HTML-Code ausgelagert in Templates und SQL-Anweisungen abgesichert.");
+ case 'test': // For testing purposes. For details see file inc/modules/admin/what-extensions.php, arround line 305.
break;
- 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 'init': // Do stuff when extension is initialized
// Check if mod_rewrite is loadeded
- if (!IF_APACHE_MODULE_LOADED('mod_rewrite')){
- EXT_SET_REPORTS_FAILURE(true);
- //addFatalMessage(__FILE__, __LINE__, getMessage('MOD_REWRITE_ERROR'));
+ 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__, getMessage('MOD_REWRITE_ERROR'));
} // END - if
- EXT_SET_UPDATE_NOTES("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 '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
- // Check if mod_rewrite is loadeded
- if (!IF_APACHE_MODULE_LOADED('mod_rewrite')){
- EXT_SET_REPORTS_FAILURE(true);
- SQL_QUERY("UPDATE `{!_MYSQL_PREFIX!}_extensions` SET ext_active='N' WHERE ext_name='rewrite' LIMIT 1", __FILE__, __LINE__);
- if (!IS_ADMIN()) addFatalMessage(__FILE__, __LINE__, getMessage('MOD_REWRITE_ERROR'));
- } // END - if
- break;
+ default: // Unknown extension mode
+ logDebugMessage(__FILE__, __LINE__, sprintf("Unknown extension mode %s in extension %s detected.", getExtensionMode(), getCurrentExtensionName()));
+ break;
}
-//
+// [EOF]
?>