X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fextensions%2Fext-country.php;h=447916f77b48344b1adfa57ad813aad4cbeb8120;hp=2fc6bc23dd531686cb03d782086eb65cb16a2f1a;hb=a090e351c49fe021fb3064325694da03402332e0;hpb=f212df3d9d1d3c7f8632040130be9e7160980de6 diff --git a/inc/extensions/ext-country.php b/inc/extensions/ext-country.php index 2fc6bc23dd..447916f77b 100644 --- a/inc/extensions/ext-country.php +++ b/inc/extensions/ext-country.php @@ -43,14 +43,14 @@ if (!defined('__SECURITY')) { } // Version number -EXT_SET_VERSION("0.0.4"); +EXT_SET_VERSION('0.0.4'); -// 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")); +// 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')); 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) // SQL commands to run ADD_EXT_SQL("DROP TABLE IF EXISTS `{!_MYSQL_PREFIX!}_countries`"); ADD_EXT_SQL("CREATE TABLE `{!_MYSQL_PREFIX!}_countries` ( @@ -71,51 +71,51 @@ PRIMARY KEY(id) ADD_EXT_SQL("ALTER TABLE `{!_MYSQL_PREFIX!}_user_data` ADD country_code BIGINT(20) UNSIGNED NOT NULL DEFAULT 1"); break; -case "remove": // Do stuff when removing extension +case 'remove': // Do stuff when removing extension // SQL commands to run ADD_EXT_SQL("DROP TABLE IF EXISTS `{!_MYSQL_PREFIX!}_countries`"); ADD_EXT_SQL("DELETE LOW_PRIORITY FROM `{!_MYSQL_PREFIX!}_admin_menu` WHERE `action`='country'"); break; -case "activate": // Do stuff when admin activates this extension +case 'activate': // Do stuff when admin activates this extension // SQL commands to run 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("SQL-Dateien hinzugefügt, die Sie mit z.B. phpMyAdmin einspielen können. (DOCS/country/README.de lesen!)"); 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("Sicherheitsupdate: SQL-Anweisungen geschützt."); break; - 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("Abspeichern von Einstellungen repariert."); 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("Sicherheitsupdate für die Include-Befehle."); break; } 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