./inc/config-functions.php:143: // @TODO Make this all better... :-/
./inc/config-functions.php:318: // @TODO Find a way for updating configuration here
./inc/extensions/ext-html_mail.php:140: // @TODO Move these arrays into config
-./inc/extensions/ext-network.php:68: // @TODO network_type_name is an internal name and needs documentation
+./inc/extensions/ext-network.php:71: // @TODO network_type_name is an internal name and needs documentation
./inc/extensions/ext-newsletter.php:215: // @TODO Move these into configuration
./inc/extensions/ext-rallye.php:329: // @TODO Move this code into rallye_functions.php
./inc/extensions/ext-sql_patches.php:741: // @TODO Rewrite this to a filter
./inc/extensions/ext-sql_patches.php:94: /* @TODO SQL_ALTER_TABLE() should work now properly
./inc/extensions/ext-yoomedia.php:122: // @TODO Can this be moved into a database table?
./inc/extensions/ext-yoomedia.php:55:// @TODO Only deprecated when 'network' is ready! setExtensionDeprecated('Y');
-./inc/extensions-functions.php:370:// @TODO Change from ext_id to ext_name (not just even the variable! ;-) )
-./inc/extensions-functions.php:481: // @TODO Extension is loaded, what next?
+./inc/extensions-functions.php:373:// @TODO Change from ext_id to ext_name (not just even the variable! ;-) )
+./inc/extensions-functions.php:484: // @TODO Extension is loaded, what next?
./inc/functions.php:1350: // @TODO Remove this if() block if all is working fine
./inc/functions.php:222: // @TODO Remove this sanity-check if all is fine
./inc/functions.php:225: // @TODO Try to rewrite all $DATA to $content
./inc/functions.php:580: // @TODO Extension 'msg' does not exist
./inc/functions.php:657:// @TODO Rewrite this to an extension 'smtp'
./inc/install-functions.php:62: // @TODO DEACTIVATED: changeDataInFile(getConfig('CACHE_PATH') . 'config-local.php', 'OUTPUT-MODE', "setConfigEntry('OUTPUT_MODE', '", "');", postRequestElement('omode'), 0);
-./inc/language/de.php:1139:// @TODO Rewrite these two constants
-./inc/language/de.php:1155:// @TODO Rewrite these five constants
+./inc/language/de.php:1140:// @TODO Rewrite these two constants
+./inc/language/de.php:1156:// @TODO Rewrite these five constants
./inc/language/de.php:735:// @TODO The template 'admin_extensions_installed' is using this. But the template is no longer used.
./inc/language/de.php:843:// @TODO Are these constants longer used?
./inc/language-functions.php:45:// @TODO Rewrite all language constants to this function.
./inc/modules/admin/admin-inc.php:527: // @TODO Try to rewrite this to $content = SQL_FETCHARRAY(). Please look some lines above for the dynamic query
./inc/modules/admin/overview-inc.php:160: // @TODO Rewrite this to a filter
./inc/modules/admin/overview-inc.php:170: // @TODO Can this SQL be encapsulated in a function, so all similar queries can be rewritten?
-./inc/modules/admin/overview-inc.php:275: // @TODO Rewrite this to something with include files
-./inc/modules/admin/overview-inc.php:313: // @TODO This may also be rewritten to include files
-./inc/modules/admin/overview-inc.php:315: default: // @TODO Unknown support mode
-./inc/modules/admin/overview-inc.php:434: // @TODO Try to move this in includes
+./inc/modules/admin/overview-inc.php:281: // @TODO Rewrite this to something with include files
+./inc/modules/admin/overview-inc.php:319: // @TODO This may also be rewritten to include files
+./inc/modules/admin/overview-inc.php:321: default: // @TODO Unknown support mode
+./inc/modules/admin/overview-inc.php:440: // @TODO Try to move this in includes
./inc/modules/admin/overview-inc.php:44:// @TODO This function does also check for uncompleted tasks
./inc/modules/admin.php:94: // @TODO Why is this set to 'done'?
./inc/modules/admin/what-add_guestnl_cat.php:48: // @TODO Check if category does already exist
// Enable dry-run
enableExtensionDryRun($dry_run);
+ // By default all extensions are in productive phase
+ enableExtensionProductive();
+
//* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, "currName=".getCurrentExtensionName()." - ENTERED!");
// This shall never do a non-admin user or if the extension is active (already installed)
if ((!isAdmin()) || (isExtensionInstalled($ext_name))) {
}
}
+// Enables/disables productive mode for current extension (used only while
+// registration).
+function enableExtensionProductive ($isProductive = true) {
+ $GLOBALS['ext_productive'][getCurrentExtensionName()] = (bool) $isProductive;
+}
+
+// Checks wether the extension is in productive phase. If not set, development
+// phase (=false) is assumed.
+function isExtensionProductive () {
+ return ((isset($GLOBALS['ext_productive'][getCurrentExtensionName()])) && ($GLOBALS['ext_productive'][getCurrentExtensionName()] === true));
+}
+
// [EOF]
?>
// Version history array (add more with , '0.1.0' and so on)
setExtensionVersionHistory(array('0.0'));
+// This extension is in development (non-productive)
+enableExtensionProductive(false);
+
switch (getExtensionMode()) {
case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
// SQL commands to run
// Version history array (add more with , '0.1.0' and so on)
setExtensionVersionHistory(array('0.0'));
+// This extension is in development (non-productive)
+enableExtensionProductive(false);
+
switch (getExtensionMode()) {
case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
// SQL commands to run
// Some security stuff...
if (!defined('__SECURITY')) {
die();
-}
+} // END - if
// Version number
setThisExtensionVersion('0.0');
// Version history array (add more with , '0.1.0' and so on)
setExtensionVersionHistory(array('0.0'));
+// This extension is in development (non-productive)
+enableExtensionProductive(false);
+
switch (getExtensionMode()) {
case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
// Configuration entries
// Version history array (add more with , '0.1.0' and so on)
setExtensionVersionHistory(array('0.0'));
+// This extension is in development (non-productive)
+enableExtensionProductive(false);
+
switch (getExtensionMode()) {
case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
// SQL commands to run
// Version history array (add more with , '0.1.0' and so on)
setExtensionVersionHistory(array('0.0'));
+// This extension is in development (non-productive)
+enableExtensionProductive(false);
+
switch (getExtensionMode()) {
case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
// SQL commands to run
// Version history array (add more with , '0.1.0' and so on)
setExtensionVersionHistory(array('0.0'));
+// This extension is in development (non-productive)
+enableExtensionProductive(false);
+
switch (getExtensionMode()) {
case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
// Main table which hold
) TYPE={?_TABLE_TYPE?} COMMENT='Error types, generic data, DO NOT ALTER!'");
// Data from the webmaster (you!)
- addExtensionSql("DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_network_config_data`");
- addExtensionSql("CREATE TABLE `{?_MYSQL_PREFIX?}_network_config_data` (
+ addExtensionSql("DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_network_config`");
+ addExtensionSql("CREATE TABLE `{?_MYSQL_PREFIX?}_network_config` (
`network_id` BIGINT(20) NOT NULL DEFAULT 0,
`network_affiliate_id` BIGINT(20) NOT NULL DEFAULT 0,
`network_api_password` VARCHAR(255) NOT NULL DEFAULT '',
) TYPE={?_TABLE_TYPE?} COMMENT='Configuration data from the webmaster (you!)'");
// Configuration data for e.g. reload-time
- addExtensionSql("DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_network_types_data`");
- addExtensionSql("CREATE TABLE `{?_MYSQL_PREFIX?}_network_types_data` (
+ addExtensionSql("DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_network_types_config`");
+ addExtensionSql("CREATE TABLE `{?_MYSQL_PREFIX?}_network_types_config` (
`network_data_id` BIGINT(20) NOT NULL AUTO_INCREMENT,
`network_id` BIGINT(20) NOT NULL DEFAULT 0,
`network_type_id` BIGINT(20) NOT NULL DEFAULT 0,
addExtensionSql("DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_network_types`");
addExtensionSql("DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_network_request_params`");
addExtensionSql("DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_network_type_errors`");
- addExtensionSql("DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_network_config_data`");
- addExtensionSql("DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_network_types_data`");
+ addExtensionSql("DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_network_config`");
+ addExtensionSql("DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_network_types_config`");
// Admin menu
addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_admin_menu` WHERE `action`='network'");
// Some security stuff...
if (!defined('__SECURITY')) {
die();
-}
+} // END - if
// Version of this extension
setThisExtensionVersion('0.0');
// Version history array (add more with , '0.1.0' and so on)
setExtensionVersionHistory(array('0.0'));
+// This extension is in development (non-productive)
+enableExtensionProductive(false);
+
switch (getExtensionMode()) {
case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
// SQL commands to run
// Version history array (add more with , '0.1.0' and so on)
setExtensionVersionHistory(array('0.0'));
+// This extension is in development (non-productive)
+enableExtensionProductive(false);
+
switch (getExtensionMode()) {
case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
// SQL commands to run
// Some security stuff...
if (!defined('__SECURITY')) {
die();
-}
+} // END - if
// Version number
setThisExtensionVersion('0.0');
// Version history array (add more with , '0.1.0' and so on)
setExtensionVersionHistory(array('0.0'));
+// This extension is in development (non-productive)
+enableExtensionProductive(false);
+
switch (getExtensionMode()) {
case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
// SQL commands to run
// Some security stuff...
if (!defined('__SECURITY')) {
die();
-}
+} // END - if
// Version number
setThisExtensionVersion('0.0');
// Version history array (add more with , '0.1.0' and so on)
setExtensionVersionHistory(array('0.0'));
+// This extension is in development (non-productive)
+enableExtensionProductive(false);
+
switch (getExtensionMode()) {
case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
// SQL commands to run
// Some security stuff...
if (!defined('__SECURITY')) {
die();
-}
+} // END - if
// Version number
setThisExtensionVersion('0.0');
// Version history array (add more with , '0.1.0' and so on)
setExtensionVersionHistory(array('0.0'));
+// This extension is in development (non-productive)
+enableExtensionProductive(false);
+
switch (getExtensionMode()) {
case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
//
// Version history array (add more with , '0.1.0' and so on)
setExtensionVersionHistory(array('0.0'));
+// This extension is in development (non-productive)
+enableExtensionProductive(false);
+
switch (getExtensionMode()) {
case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
// SQL commands to run (surfbar URLs)
// Version history array (add more with , '0.1.0' and so on)
setExtensionVersionHistory(array('0.0'));
+// This extension is in development (non-productive)
+enableExtensionProductive(false);
+
switch (getExtensionMode()) {
case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
// SQL commands to run
'GUEST_STATS_NO_CLICKS' => "Keine Klicks in Ihrem {?mt_word?} verzeichnet.",
'ADMIN_EXTENSIONS_REMOVED' => "Es wurden <span class=\"data\">%s</span> Erweiterungen aus Ihrem {?mt_word?} entfernt.",
'ADMIN_WARNING_SQL_PATCHES_MISSING' => "Eine essentielle Erweiterung <span=\"data\">sql_patches</span> ist noch nicht installiert. Bitte erledigen Sie dies bald, da Ihr {?mt_word?} sonst nicht funktioniert.",
+ 'ADMIN_EXTENSION_IS_NON_PRODUCTIVE' => "Die von Ihnen ausgewählte Erweiterung <span=\"data\">%s</span> ist noch nicht für den produktiven Betrieb freigegeben und befindet sich somit noch in der Entwicklung. Bitte nur verwenden, wenn Sie wissen, was Sie tun.",
'MEMBER_MAIL_BONUS_CONFIRMED_ON' => "Sie haben diese Bonusmail <span class=\"data\">%s</span> bestätigt.",
'MEMBER_MAIL_NORMAL_CONFIRMED_ON' => "Sie haben diese Klickmail <span class=\"data\">%s</span> bestätigt.",
// Update task or extension task?
if (($type == 'EXTENSION') && (!isExtensionInstalled($ext_name))) {
- // Load SQL commands for registering
+ // Load SQL commands for registering in dry-run
registerExtension($ext_name, $id, true);
+ // Is this non-productive?
+ if (isExtensionProductive() === false) {
+ // Issue warning
+ $text .= loadTemplate('admin_settings_saved', true, sprintf(getMessage('ADMIN_EXTENSION_IS_NON_PRODUCTIVE'), $ext_name));
+ } // END - if
+
// Set current extension name
setCurrentExtensionName($ext_name);