From: Roland Häder Date: Thu, 17 Jan 2013 02:07:16 +0000 (+0000) Subject: Added fake modules X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8321958359bf72d972c46ec1d2311fb09cb60550;p=mailer.git Added fake modules --- diff --git a/inc/extensions/ext-beg.php b/inc/extensions/ext-beg.php index b15780c27a..90af8aa143 100644 --- a/inc/extensions/ext-beg.php +++ b/inc/extensions/ext-beg.php @@ -99,7 +99,6 @@ INDEX (`userid`)", addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_guest_menu` SET `visible`='Y',`locked`='N' WHERE `what`='beg' LIMIT 1"); addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `visible`='Y',`locked`='N' WHERE `what` IN ('beg','beg2')"); addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N',`hidden`='N',`admin_only`='N',`mem_only`='N' WHERE `module`='beg' LIMIT 1"); - addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N',`hidden`='N',`admin_only`='N',`mem_only`='N' WHERE `module`='beg' LIMIT 1"); break; case 'deactivate': // Do stuff when admin deactivates this extension @@ -107,7 +106,6 @@ INDEX (`userid`)", addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_guest_menu` SET `visible`='N',`locked`='Y' WHERE `what`='beg' LIMIT 1"); addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `visible`='N',`locked`='Y' WHERE `what` IN('beg','beg2')"); addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='Y' WHERE `module`='beg' LIMIT 1"); - addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='Y' WHERE `module`='beg' LIMIT 1"); break; case 'update': // Update an extension diff --git a/inc/extensions/ext-network.php b/inc/extensions/ext-network.php index 2ea79e2d45..2c7e143bc0 100644 --- a/inc/extensions/ext-network.php +++ b/inc/extensions/ext-network.php @@ -72,14 +72,20 @@ switch (getExtensionMode()) { // Admin menu addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_admin_menu` WHERE `action`='network'"); + + // Unregister module + addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_mod_reg` WHERE `module`='network-delurl' LIMIT 1"); + addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_mod_reg` WHERE `module`='network-vcheck' LIMIT 1"); break; case 'activate': // Do stuff when admin activates this extension - // SQL commands to run + addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N',`hidden`='N',`admin_only`='N',`mem_only`='N' WHERE `module`='network-delurl' LIMIT 1"); + addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='N',`hidden`='N',`admin_only`='N',`mem_only`='N' WHERE `module`='network-vcheck' LIMIT 1"); break; case 'deactivate': // Do stuff when admin deactivates this extension - // SQL commands to run + addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='Y',`hidden`='Y',`admin_only`='N',`mem_only`='N' WHERE `module`='network-delurl' LIMIT 1"); + addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `locked`='Y',`hidden`='Y',`admin_only`='N',`mem_only`='N' WHERE `module`='network-vcheck' LIMIT 1"); break; case 'update': // Update an extension diff --git a/inc/extensions/network/mode-setup.php b/inc/extensions/network/mode-setup.php index 644e14007c..aff820c908 100644 --- a/inc/extensions/network/mode-setup.php +++ b/inc/extensions/network/mode-setup.php @@ -12138,5 +12138,9 @@ addConfigAddSql('network_cache_refresh', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT ' addConfigAddSql('network_logging_debug', "ENUM ('Y','N') NOT NULL DEFAULT 'N'"); addConfigAddSql('network_logging_purge', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT ' . (getOneDay() * 3)); +// Register modules +addModuleSql('network-delurl', '{OPEN_TEMPLATE}MODULE_NETWORK_DELURL_TITLE{CLOSE_TEMPLATE}', 'Y', 'Y', 'N', 'N'); +addModuleSql('network-vcheck', '{OPEN_TEMPLATE}MODULE_NETWORK_VCHECK_TITLE{CLOSE_TEMPLATE}', 'Y', 'Y', 'N', 'N'); + // [EOF] ?> diff --git a/inc/language/network_de.php b/inc/language/network_de.php index 7ddacf14ae..6b4b33ee15 100644 --- a/inc/language/network_de.php +++ b/inc/language/network_de.php @@ -390,6 +390,9 @@ addMessages(array( 'ADMIN_CONFIG_NETWORK_LOGGING_DEBUG_ENABLED' => "Alle Header loggen (auch 200 OK)", 'ADMIN_CONFIG_NETWORK_LOGGING_DEBUG_DISABLED' => "Nur fehlgeschlagene loggen", 'ADMIN_CONFIG_NETWORK_NOTICE' => "Hinweise: Der tatstägliche Zeitabstand zwischen automatischen API-Abfragen (per Cron) errechnet sich wie folgt: 24 Stunden in Sekunden geteilt durch Anzahl freie Abfragen pro Tag. Ist dabei der errechnete Wert grösser als wie der konfigurierte Zeitabstand (hier einstellbar), so wird dieser genommen und nicht der errechnete. Dabei kommt es dann vor, dass die freien Abfragen, die das Werbenetzwerk gibt, schneller abgelaufen sind, als der Tag um ist.", + // Module titles + 'MODULE_NETWORK_DELURL_TITLE' => "Delete-URL API", + 'MODULE_NETWORK_DELURL_TITLE' => "V-Check API", )); /*