]> git.mxchange.org Git - mailer.git/commitdiff
AJAX installation is 'basicly finished' :) Plus I threw in a small christmas present...
authorRoland Häder <roland@mxchange.org>
Thu, 27 Dec 2012 01:40:28 +0000 (01:40 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 27 Dec 2012 01:40:28 +0000 (01:40 +0000)
87 files changed:
.gitattributes
DOCS/TODOs.txt
inc/ajax/ajax_admin.php
inc/ajax/ajax_installer.php
inc/extensions-functions.php
inc/extensions/ext-admins.php
inc/extensions/ext-autopurge.php
inc/extensions/ext-beg.php
inc/extensions/ext-bonus.php
inc/extensions/ext-cache.php
inc/extensions/ext-coupon.php
inc/extensions/ext-doubler.php
inc/extensions/ext-holiday.php
inc/extensions/ext-mailid.php
inc/extensions/ext-nickname.php
inc/extensions/ext-rallye.php
inc/extensions/ext-refback.php
inc/extensions/ext-register.php
inc/extensions/ext-removeip.php
inc/extensions/ext-surfbar.php
inc/extensions/ext-task.php
inc/extensions/ext-transfer.php
inc/extensions/ext-user.php
inc/extensions/ext-wernis.php
inc/filter/register_filter.php
inc/filters.php
inc/install-functions.php
inc/install-inc.php
inc/install/install_page_3.php
inc/install/install_page_5.php
inc/install/install_page_finalize.php
inc/language/install_de.php
inc/libs/admins_functions.php
inc/libs/register_functions.php
inc/libs/security_functions.php
inc/libs/sponsor_functions.php
inc/module-functions.php
inc/modules/admin.php
inc/modules/admin/admin-inc.php
inc/modules/admin/what-admins_add.php
inc/modules/admin/what-edit_sponsor.php
inc/modules/admin/what-edit_user.php
inc/modules/guest/what-extensions.php
inc/modules/guest/what-register.php
inc/modules/guest/what-sponsor_reg.php
inc/modules/member/what-mydata.php
inc/modules/sponsor/account.php
inc/template-functions.php
inc/wrapper-functions.php
js/ajax-common.js
js/install-common.js
js/install-data.js
templates/de/emails/admin/admin_sponsor_edit.tpl
templates/de/emails/member/member_mydata_notify.tpl
templates/de/html/admin/admin_add_admins.tpl
templates/de/html/admin/admin_add_sponsor.tpl
templates/de/html/admin/admin_add_tester_user.tpl
templates/de/html/admin/admin_edit_admins_row.tpl
templates/de/html/admin/admin_edit_sponsor_edit.tpl
templates/de/html/admin/admin_edit_user.tpl
templates/de/html/admin/admin_reg_form.tpl
templates/de/html/admin/admin_reset_password_form.tpl
templates/de/html/ext/ext_lead.tpl
templates/de/html/ext/ext_primera.tpl
templates/de/html/guest/guest_register.tpl
templates/de/html/guest/guest_sponsor_reg.tpl
templates/de/html/install/install_list_extensions.tpl [new file with mode: 0644]
templates/de/html/install/install_list_extensions_row.tpl [new file with mode: 0644]
templates/de/html/install/install_main_ajax.tpl
templates/de/html/install/install_menu.tpl
templates/de/html/install/install_page2.tpl
templates/de/html/install/install_page3.tpl
templates/de/html/install/install_page_extensions.tpl [new file with mode: 0644]
templates/de/html/install/install_selector.tpl
templates/de/html/js/js_install_ajax.tpl
templates/de/html/member/member_mydata_edit.tpl
templates/de/html/sponsor/sponsor_account_form.tpl
theme/business/css/ajax.css
theme/business/css/general.css
theme/default/css/ajax.css
theme/default/css/general.css
theme/desert/css/ajax.css
theme/desert/css/general.css
theme/org/css/ajax.css
theme/org/css/general.css
theme/schleuder/css/general.css
theme/ship-simu/css/general.css

index 7664ed1696543ef151021d5921e2650104f1ee3c..929a5ea61bab004385c8a0eb4a28c2ffd3efdfea 100644 (file)
@@ -1871,6 +1871,8 @@ templates/de/html/install/install_fatal_table.tpl svneol=native#text/plain
 templates/de/html/install/install_finished.tpl svneol=native#text/plain
 templates/de/html/install/install_footer.tpl svneol=native#text/plain
 templates/de/html/install/install_header.tpl svneol=native#text/plain
 templates/de/html/install/install_finished.tpl svneol=native#text/plain
 templates/de/html/install/install_footer.tpl svneol=native#text/plain
 templates/de/html/install/install_header.tpl svneol=native#text/plain
+templates/de/html/install/install_list_extensions.tpl svneol=native#text/plain
+templates/de/html/install/install_list_extensions_row.tpl svneol=native#text/plain
 templates/de/html/install/install_main_ajax.tpl svneol=native#text/plain
 templates/de/html/install/install_main_plain.tpl svneol=native#text/plain
 templates/de/html/install/install_menu.tpl svneol=native#text/plain
 templates/de/html/install/install_main_ajax.tpl svneol=native#text/plain
 templates/de/html/install/install_main_plain.tpl svneol=native#text/plain
 templates/de/html/install/install_menu.tpl svneol=native#text/plain
@@ -1882,6 +1884,7 @@ templates/de/html/install/install_page3.tpl svneol=native#text/plain
 templates/de/html/install/install_page5.tpl svneol=native#text/plain
 templates/de/html/install/install_page_base_data.tpl svneol=native#text/plain
 templates/de/html/install/install_page_database_config.tpl svneol=native#text/plain
 templates/de/html/install/install_page5.tpl svneol=native#text/plain
 templates/de/html/install/install_page_base_data.tpl svneol=native#text/plain
 templates/de/html/install/install_page_database_config.tpl svneol=native#text/plain
+templates/de/html/install/install_page_extensions.tpl svneol=native#text/plain
 templates/de/html/install/install_page_init.tpl svneol=native#text/plain
 templates/de/html/install/install_page_other_config.tpl svneol=native#text/plain
 templates/de/html/install/install_page_overview.tpl svneol=native#text/plain
 templates/de/html/install/install_page_init.tpl svneol=native#text/plain
 templates/de/html/install/install_page_other_config.tpl svneol=native#text/plain
 templates/de/html/install/install_page_overview.tpl svneol=native#text/plain
index cc3ed379189eec49c88abb06d52f13a389f02073..208cd59d8fd0dd80f9aeac0c2032e41a4425d93d 100644 (file)
@@ -45,7 +45,8 @@
 ./inc/extensions/ext-nickname.php:52:          // @TODO NOT NULL DEFAULT '' is bad practice, use NULL
 ./inc/extensions/ext-yoomedia.php:121:         // @TODO Can this be moved into a database table?
 ./inc/extensions/ext-yoomedia.php:54:// @TODO Only deprecated when 'ext-network' is ready! setExtensionDeprecated('Y');
 ./inc/extensions/ext-nickname.php:52:          // @TODO NOT NULL DEFAULT '' is bad practice, use NULL
 ./inc/extensions/ext-yoomedia.php:121:         // @TODO Can this be moved into a database table?
 ./inc/extensions/ext-yoomedia.php:54:// @TODO Only deprecated when 'ext-network' is ready! setExtensionDeprecated('Y');
-./inc/extensions-functions.php:2201:// @TODO This should be rewrittten to allow, more development states, e.g. 'planing','alpha','beta','beta2','stable'
+./inc/extensions-functions.php:2169:                   // @TODO Is this really neccessary?
+./inc/extensions-functions.php:2220:// @TODO This should be rewrittten to allow, more development states, e.g. 'planing','alpha','beta','beta2','stable'
 ./inc/extensions-functions.php:436:    // @TODO This redirect is still needed to register sql_patches! Please try to avoid it
 ./inc/extensions-functions.php:452:// @TODO Change from ext_id to ext_name (not just even the variable! ;-) )
 ./inc/extensions-functions.php:592:            // @TODO Extension is loaded, what next?
 ./inc/extensions-functions.php:436:    // @TODO This redirect is still needed to register sql_patches! Please try to avoid it
 ./inc/extensions-functions.php:452:// @TODO Change from ext_id to ext_name (not just even the variable! ;-) )
 ./inc/extensions-functions.php:592:            // @TODO Extension is loaded, what next?
@@ -62,7 +63,7 @@
 ./inc/functions.php:2478:// @TODO cacheFiles is not yet supported
 ./inc/gen_sql_patches.php:95:// @TODO Rewrite this to a filter
 ./inc/header.php:66:// @TODO Find a way to not use direct module comparison
 ./inc/functions.php:2478:// @TODO cacheFiles is not yet supported
 ./inc/gen_sql_patches.php:95:// @TODO Rewrite this to a filter
 ./inc/header.php:66:// @TODO Find a way to not use direct module comparison
-./inc/install-functions.php:402:       // @TODO Comparing with DEFAULT_MAIN_TITLE doesn't work
+./inc/install-functions.php:446:       // @TODO Comparing with DEFAULT_MAIN_TITLE doesn't work
 ./inc/install-functions.php:97:        // @TODO DEACTIVATED: changeDataInLocalConfigurationFile('OUTPUT-MODE', "setConfigEntry('OUTPUT_MODE', '", "');", postRequestElement('omode'), 0);
 ./inc/language/de.php:1147:    // @TODO Rewrite these two constants
 ./inc/language/de.php:1163:    // @TODO Rewrite these three constants
 ./inc/install-functions.php:97:        // @TODO DEACTIVATED: changeDataInLocalConfigurationFile('OUTPUT-MODE', "setConfigEntry('OUTPUT_MODE', '", "');", postRequestElement('omode'), 0);
 ./inc/language/de.php:1147:    // @TODO Rewrite these two constants
 ./inc/language/de.php:1163:    // @TODO Rewrite these three constants
@@ -70,7 +71,7 @@
 ./inc/language/de.php:741:// @TODO Are these constants longer used?
 ./inc/language-functions.php:255:      // @TODO These are all valid languages, again hard-coded
 ./inc/language-functions.php:44:// @TODO Rewrite all language constants to this function.
 ./inc/language/de.php:741:// @TODO Are these constants longer used?
 ./inc/language-functions.php:255:      // @TODO These are all valid languages, again hard-coded
 ./inc/language-functions.php:44:// @TODO Rewrite all language constants to this function.
-./inc/language/install_de.php:140:     // @TODO Move this to e.g. ext-smtp
+./inc/language/install_de.php:142:     // @TODO Move this to e.g. ext-smtp
 ./inc/language/newsletter_de.php:13: * @TODO This language file is completely out-dated, please do no       *
 ./inc/language/order_de.php:70:        // @TODO Find better text
 ./inc/language/rallye_de.php:13: * @TODO Naming convention not applied for language strings             *
 ./inc/language/newsletter_de.php:13: * @TODO This language file is completely out-dated, please do no       *
 ./inc/language/order_de.php:70:        // @TODO Find better text
 ./inc/language/rallye_de.php:13: * @TODO Naming convention not applied for language strings             *
 ./inc/mysql-manager.php:44:// @TODO Can we cache this?
 ./inc/purge/purge-inact.php:55:        // @TODO Rewrite these if() blocks to a filter
 ./inc/revision-functions.php:168:// @TODO This function does also set and get in 'cache_array'
 ./inc/mysql-manager.php:44:// @TODO Can we cache this?
 ./inc/purge/purge-inact.php:55:        // @TODO Rewrite these if() blocks to a filter
 ./inc/revision-functions.php:168:// @TODO This function does also set and get in 'cache_array'
-./inc/template-functions.php:1134:                     // @TODO Deprecate this thing
-./inc/template-functions.php:1145:                     // @TODO Deprecate this thing
-./inc/template-functions.php:1252:     // @TODO This can be easily moved out after the merge from EL branch to this is complete
-./inc/template-functions.php:1301:             // @TODO Add a little more infos here
-./inc/template-functions.php:1667:// @TODO Lame description for this function
-./inc/template-functions.php:1689:                     // @TODO Move this in a filter
+./inc/template-functions.php:1143:                     // @TODO Deprecate this thing
+./inc/template-functions.php:1154:                     // @TODO Deprecate this thing
+./inc/template-functions.php:1276:     // @TODO This can be easily moved out after the merge from EL branch to this is complete
+./inc/template-functions.php:1325:             // @TODO Add a little more infos here
+./inc/template-functions.php:1691:// @TODO Lame description for this function
+./inc/template-functions.php:1713:                     // @TODO Move this in a filter
 ./inc/template-functions.php:200:       * @TODO On some pages this is buggy
 ./inc/template-functions.php:200:       * @TODO On some pages this is buggy
-./inc/template-functions.php:2323:     // @TODO Is this needed for e.g. $GLOBALS['template_content'] ? $this->setRawTemplateData($compactedContent);
+./inc/template-functions.php:2347:     // @TODO Is this needed for e.g. $GLOBALS['template_content'] ? $this->setRawTemplateData($compactedContent);
 ./inc/template-functions.php:288:      // @TODO Remove these sanity checks if all is fine
 ./inc/template-functions.php:288:      // @TODO Remove these sanity checks if all is fine
-./inc/template-functions.php:625:// @TODO $simple/$constants are deprecated
-./inc/template-functions.php:723:                      // @TODO $userid is deprecated and should be removed from loadEmailTemplate() and replaced with $content[userid] in all templates
+./inc/template-functions.php:634:// @TODO $simple/$constants are deprecated
+./inc/template-functions.php:732:                      // @TODO $userid is deprecated and should be removed from loadEmailTemplate() and replaced with $content[userid] in all templates
 ./inc/wrapper-functions.php:3176:      // @TODO Find a way to not use direct module comparison
 ./inc/wrapper-functions.php:512:// @TODO Do some more sanity check here
 ./inc/xml-functions.php:240:   // @TODO Handle characters
 ./inc/wrapper-functions.php:3176:      // @TODO Find a way to not use direct module comparison
 ./inc/wrapper-functions.php:512:// @TODO Do some more sanity check here
 ./inc/xml-functions.php:240:   // @TODO Handle characters
 ./templates/de/html/admin/admin_reg_row.tpl:1:<!-- @DEPRECATED //-->
 ./templates/de/html/admin/admin_reg.tpl:1:<!-- @DEPRECATED //-->
 ./templates/de/html/admin/admin_theme_list.tpl:1:<!-- @DEPRECATED //-->
 ./templates/de/html/admin/admin_reg_row.tpl:1:<!-- @DEPRECATED //-->
 ./templates/de/html/admin/admin_reg.tpl:1:<!-- @DEPRECATED //-->
 ./templates/de/html/admin/admin_theme_list.tpl:1:<!-- @DEPRECATED //-->
+./templates/de/html/ext/ext_primera.tpl:1:<!-- @DEPRECATED //-->
 ./templates/de/html/fatal_footer.tpl:1:<!-- @DEPRECATED //-->
 ./templates/de/html/fatal_header.tpl:1:<!-- @DEPRECATED //-->
 ./templates/de/html/guest/guest_confirm_table.tpl:1:<!-- @DEPRECATED //-->
 ./templates/de/html/fatal_footer.tpl:1:<!-- @DEPRECATED //-->
 ./templates/de/html/fatal_header.tpl:1:<!-- @DEPRECATED //-->
 ./templates/de/html/guest/guest_confirm_table.tpl:1:<!-- @DEPRECATED //-->
index 827af52ec4fd3143510efca908dcc1d1b4a119be..f8db0fdd0eb68df9c71f80dbebb9bae465e0b399 100644 (file)
@@ -104,7 +104,7 @@ function doAjaxAdminRequestContent () {
                        setHttpStatus('200 OK');
                } else {
                        // Set 404 error
                        setHttpStatus('200 OK');
                } else {
                        // Set 404 error
-                       setHttpStatus('404 NOT FOUND');
+                       setHttpStatus('404 Not Found');
                }
        } // END - if
 }
                }
        } // END - if
 }
index ecdc4bdebb5ef2d6214a35ab6f0a8000ff9a09bb..1fedf138f03ac6fb463ccae4ab03854486501340 100644 (file)
@@ -65,7 +65,7 @@ function establishAjaxInstallerDatabaseLink () {
        if (!SQL_SELECT_DB(getSession('mysql_dbase'), __FUNCTION__, __LINE__)) {
                // Could not be selected
                reportBug(__FUNCTION__, __LINE__, 'Could not select database ' . getSession('mysql_dbase'));
        if (!SQL_SELECT_DB(getSession('mysql_dbase'), __FUNCTION__, __LINE__)) {
                // Could not be selected
                reportBug(__FUNCTION__, __LINE__, 'Could not select database ' . getSession('mysql_dbase'));
-       } elseif ((!isFileReadable(getPath() . 'install/tables.sql')) || (!isFileReadable(getPath() . 'install/menu-'.getLanguage().'.sql'))) {
+       } elseif ((!isFileReadable(getSession('base_path') . 'install/tables.sql')) || (!isFileReadable(getSession('base_path') . 'install/menu-'.getLanguage().'.sql'))) {
                // Installation area not found
                reportBug(__FUNCTION__, __LINE__, 'SQL dumps not found. Please extract ALL files from the archive or checkout all files out from SVN.');
        } elseif (ifFatalErrorsDetected()) {
                // Installation area not found
                reportBug(__FUNCTION__, __LINE__, 'SQL dumps not found. Please extract ALL files from the archive or checkout all files out from SVN.');
        } elseif (ifFatalErrorsDetected()) {
@@ -139,6 +139,7 @@ function doAjaxInstallerFooterNavigation () {
                case 'database_config':
                case 'smtp_config':
                case 'other_config':
                case 'database_config':
                case 'smtp_config':
                case 'other_config':
+               case 'extensions':
                        array_push($enabledNavigations, 'previous');
                case 'welcome': // Only 'next' works for welcome page
                        array_push($enabledNavigations, 'next');
                        array_push($enabledNavigations, 'previous');
                case 'welcome': // Only 'next' works for welcome page
                        array_push($enabledNavigations, 'next');
@@ -225,7 +226,7 @@ function doAjaxInstallerRequestContent () {
                        setHttpStatus('200 OK');
                } else {
                        // Set 404 error
                        setHttpStatus('200 OK');
                } else {
                        // Set 404 error
-                       setHttpStatus('404 NOT FOUND');
+                       setHttpStatus('404 Not Found');
                }
        } // END - if
 }
                }
        } // END - if
 }
@@ -241,8 +242,14 @@ function doAjaxInstallerChangeWarning () {
        // "Walk" through all elements
        $OUT = '<ol>';
        foreach (explode(':', postRequestElement('elements')) as $element) {
        // "Walk" through all elements
        $OUT = '<ol>';
        foreach (explode(':', postRequestElement('elements')) as $element) {
-               // Add row
-               $OUT .= '<li>{--INSTALLER_CHANGED_ELEMENT_' . strtoupper($element) . '--}</li>';
+               // Is it an extension?
+               if (substr($element, 0, 4) == 'ext_') {
+                       // Add row for extension
+                       $OUT .= '<li>{%message=INSTALLER_CHANGED_ELEMENT_EXTENSION=' . str_replace('_', '-', $element) . '%}</li>';
+               } else {
+                       // Add generic row
+                       $OUT .= '<li>{--INSTALLER_CHANGED_ELEMENT_' . strtoupper($element) . '--}</li>';
+               }
        } // END - foreach
        $OUT .= '</ol>';
 
        } // END - foreach
        $OUT .= '</ol>';
 
@@ -277,7 +284,7 @@ function doAjaxInstallerSaveChanges () {
        $currentTab = postRequestElement('tab');
 
        // Remove some elements which should not be saved
        $currentTab = postRequestElement('tab');
 
        // Remove some elements which should not be saved
-       foreach (array('do', 'level') as $removedElement) {
+       foreach (array('tab', 'do', 'level') as $removedElement) {
                // Remove this element from POST data
                unsetPostRequestElement($removedElement);
        } // END - foreach
                // Remove this element from POST data
                unsetPostRequestElement($removedElement);
        } // END - foreach
@@ -297,6 +304,7 @@ function doAjaxInstallerSaveChanges () {
        // Now set all remaining data in session
        foreach (postRequestArray() as $key => $value) {
                // Set it, if it is valid, else it will be added to $saveStatus (call-by-reference)
        // Now set all remaining data in session
        foreach (postRequestArray() as $key => $value) {
                // Set it, if it is valid, else it will be added to $saveStatus (call-by-reference)
+               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'key=' . $key . ',value[' . gettype($value) . '=' . $value);
                $saveStatus['is_saved'] = (
                        // Is the data valid?
                        (isInstallerDataValid($saveStatus, $key, $value))
                $saveStatus['is_saved'] = (
                        // Is the data valid?
                        (isInstallerDataValid($saveStatus, $key, $value))
@@ -307,7 +315,7 @@ function doAjaxInstallerSaveChanges () {
 
                // Save the overall status for below final check
                $isAllSaved = (($isAllSaved === TRUE) && ($saveStatus['is_saved'] === TRUE));
 
                // Save the overall status for below final check
                $isAllSaved = (($isAllSaved === TRUE) && ($saveStatus['is_saved'] === TRUE));
-               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'key=' . $key . ',value=' . $value . ',is_saved=' . intval($saveStatus['is_saved']) . ',isAllSaved=' . intval($isAllSaved));
+               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'key=' . $key . ',value[' . gettype($value) . '=' . $value . ',is_saved=' . intval($saveStatus['is_saved']) . ',isAllSaved=' . intval($isAllSaved));
        } // END - foreach
 
        // 'is_saved' is still true?
        } // END - foreach
 
        // 'is_saved' is still true?
@@ -446,6 +454,21 @@ function doAjaxPrepareInstallerOtherConfig () {
        } // END - if
 }
 
        } // END - if
 }
 
+// Prepare AJAX request 'extensions'
+function doAjaxPrepareInstallerExtensions () {
+       // Is 'extensions' set?
+       if (!isSessionVariableSet('extensions')) {
+               /*
+                * At least ext-sql_patches and ext-task should be installed
+                *(ext-sql_patches is a must!)
+                */
+               setSession('extensions', 'admins:sql_patches:task');
+       } elseif (strpos(getSession('extensions'), 'sql_patches') === FALSE) {
+               // Add missing ext-sql_patches
+               setSession('extensions', getSession('extensions') . ':sql_patches');
+       }
+}
+
 // Prepare AJAX request 'overview'
 function doAjaxPrepareInstallerOverview () {
        // 'tab' must always be set to create a post-check-callback
 // Prepare AJAX request 'overview'
 function doAjaxPrepareInstallerOverview () {
        // 'tab' must always be set to create a post-check-callback
@@ -548,6 +571,100 @@ function doAjaxInstallerStepImportTablesSql () {
 
        // Now run all queries through
        runFilterChain('run_sqls');
 
        // Now run all queries through
        runFilterChain('run_sqls');
+
+       // Close SQL link
+       SQL_CLOSE(__FUNCTION__, __LINE__);
+}
+
+// Call-back function to import menu SQL file
+function doAjaxInstallerStepImportMenuSql () {
+       // Establish database link
+       establishAjaxInstallerDatabaseLink();
+
+       // Init SQL array
+       initSqls();
+
+       // Import tables.sql
+       importInstallSqlDump('menu-' . getLanguage());
+
+       // Are some SQLs found?
+       if (countSqls() == 0) {
+               // Abort here
+               reportBug(__FUNCTION__, __LINE__, '{--INSTALLER_SQL_IMPORT_FAILED--}');
+       } // END - if
+
+       // Now run all queries through
+       runFilterChain('run_sqls');
+
+       // Close SQL link
+       SQL_CLOSE(__FUNCTION__, __LINE__);
+}
+
+// Call-back function to install some important extensions
+function doAjaxInstallerStepInstallExtensions () {
+       // Only one element is required
+       if (!isSessionVariableSet('extensions')) {
+               // Some required session data is not set
+               reportBug(__FUNCTION__, __LINE__, 'Required session data for this step not found.');
+       } // END - if
+
+       // Establish database link
+       establishAjaxInstallerDatabaseLink();
+
+       // Get all extensions
+       $extensions = explode(':', getSession('extensions'));
+
+       // Make sure ext-sql_patches is first
+       array_unshift($extensions, 'sql_patches');
+
+       // "Walk" through all extensions
+       foreach ($extensions as $key => $ext_name) {
+               // Is ext-sql_patches not at key=0?
+               if (($key == 0) && ($ext_name == 'sql_patches')) {
+                       // Then skip this entry
+                       continue;
+               } elseif ((!loadExtension($ext_name, 'test', '0.0.0', TRUE)) || (!registerExtension($ext_name, NULL))) {
+                       // Didn't work
+                       reportBug(__FUNCTION__, __LINE__, 'Cannot load/register extension ' . $ext_name . '.');
+               } // END - if
+       } // END - foreach
+
+       // Close SQL link
+       SQL_CLOSE(__FUNCTION__, __LINE__);
+}
+
+// Call-back function to write local configuration file
+function doAjaxInstallerStepWriteLocalConfig () {
+       // Is all set?
+       if (!isSessionDataSet(array('base_path', 'base_url', 'main_title', 'slogan', 'webmaster', 'mysql_host', 'mysql_dbase', 'mysql_prefix', 'mysql_login', 'mysql_password1', 'mysql_password2', 'mysql_engine', 'output_mode', 'warn_no_pass', 'write_footer', 'enable_backlink'))) {
+               // Some required session data is not set
+               reportBug(__FUNCTION__, __LINE__, 'Required session data for this step not found.');
+       } // END - if
+
+       // Write config file
+       if (!doInstallWriteLocalConfigurationFile(
+               getSession('base_path'),
+               getSession('base_url'),
+               getSession('main_title'),
+               getSession('slogan'),
+               getSession('webmaster'),
+               getSession('warn_no_pass'),
+               getSession('write_footer'),
+               getSession('enable_backlink'),
+               getSession('mysql_host'),
+               getSession('mysql_dbase'),
+               getSession('mysql_login'),
+               getSession('mysql_password1'),
+               getSession('mysql_prefix'),
+               getSession('mysql_engine'),
+               getSession('smtp_host'),
+               getSession('smtp_user'),
+               getSession('smtp_password1')
+       )) {
+               // Something bad went wrong
+               removeFile(getSession('base_path') . getCachePath() . 'config-local.php');
+               reportBug(__FUNCTION__, __LINE__, 'Did not fully write config-local.php .');
+       }
 }
 
 // [EOF]
 }
 
 // [EOF]
index 08346b041b6902e74af124f24eaa3e73ba26ec6c..526552cd5bcec4aa2f16e65abec342f8737fba1c 100644 (file)
@@ -201,7 +201,7 @@ function registerExtension ($ext_name, $taskId, $isDryRun = FALSE, $ignoreUpdate
        // When this extension is already in registration/update phase, all is fine
        if ((isExtensionRegistrationRunning($ext_name)) || ((isExtensionUpdateRunning($ext_name)) && ($ignoreUpdates === FALSE))) {
                // Then abort here with 'true' because it is fine
        // When this extension is already in registration/update phase, all is fine
        if ((isExtensionRegistrationRunning($ext_name)) || ((isExtensionUpdateRunning($ext_name)) && ($ignoreUpdates === FALSE))) {
                // Then abort here with 'true' because it is fine
-               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'ext_name=' . $ext_name . ' - already in registration/update phase, all fine,isDryRun=' . intval($isDryRun) . ',ignoreUpdates=' . intval($ignoreUpdates));
+               /* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'ext_name=' . $ext_name . ' - already in registration/update phase, all fine,isDryRun=' . intval($isDryRun) . ',ignoreUpdates=' . intval($ignoreUpdates));
                //* BUG: */ reportBug(__FUNCTION__, __LINE__, 'ext_name=' . $ext_name . ',isDryRun=' . intval($isDryRun) . ',ignoreUpdates=' . intval($ignoreUpdates) . ' - Please investigate!');
                return TRUE;
        } // END - if
                //* BUG: */ reportBug(__FUNCTION__, __LINE__, 'ext_name=' . $ext_name . ',isDryRun=' . intval($isDryRun) . ',ignoreUpdates=' . intval($ignoreUpdates) . ' - Please investigate!');
                return TRUE;
        } // END - if
@@ -1378,6 +1378,12 @@ function isExtensionUpdateDependenciesInitialized () {
 
 // Checks whether an update is already running for given extension
 function isExtensionUpdateRunning ($ext_name, $ignoreDependencies = FALSE) {
 
 // Checks whether an update is already running for given extension
 function isExtensionUpdateRunning ($ext_name, $ignoreDependencies = FALSE) {
+       // 'ext_running_updates' must be there
+       if ((!isset($GLOBALS['ext_running_updates'])) || (!is_array($GLOBALS['ext_running_updates']))) {
+               // Is not there
+               reportBug(__FUNCTION__, __LINE__, 'Required array ext_running_updates not found. ext_name=' . $ext_name . ',ignoreDependencies=' . intval($ignoreDependencies));
+       } // END - if
+
        // Current and given extensions means whole array
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'currentExtension=' . getCurrentExtensionName() . ',ext_name=' . $ext_name . ',ignoreDependencies=' . intval($ignoreDependencies) . ' - ENTERED!');
        if ($ext_name == getCurrentExtensionName()) {
        // Current and given extensions means whole array
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'currentExtension=' . getCurrentExtensionName() . ',ext_name=' . $ext_name . ',ignoreDependencies=' . intval($ignoreDependencies) . ' - ENTERED!');
        if ($ext_name == getCurrentExtensionName()) {
@@ -2158,18 +2164,31 @@ function registerExtensionPointsData ($subject, $columnName, $lockedMode, $payme
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'ifSqlTableExists(points_data)=' . ifSqlTableExists('points_data') . ',getExtensionMode()=' . getExtensionMode() . ',add=' . $add);
        if (((!ifSqlTableExists('points_data')) && ((getExtensionMode() == 'register') || (getExtensionMode() == 'update'))) || (countSumTotalData($subject, 'points_data', 'id', 'subject', TRUE, $add) == 0)) {
                // Not found so:
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'ifSqlTableExists(points_data)=' . ifSqlTableExists('points_data') . ',getExtensionMode()=' . getExtensionMode() . ',add=' . $add);
        if (((!ifSqlTableExists('points_data')) && ((getExtensionMode() == 'register') || (getExtensionMode() == 'update'))) || (countSumTotalData($subject, 'points_data', 'id', 'subject', TRUE, $add) == 0)) {
                // Not found so:
-               if ((isset($GLOBALS['previous_extension'][getCurrentExtensionName()])) && (!ifSqlTableExists('points_data'))) {
+               if ((!isInstallationPhase()) && (isset($GLOBALS['previous_extension'][getCurrentExtensionName()])) && (!ifSqlTableExists('points_data'))) {
+                       // This may happen (but when?)
+                       // @TODO Is this really neccessary?
                        $dummy = $GLOBALS['previous_extension'][getCurrentExtensionName()];
                        reportBug(__FUNCTION__, __LINE__, 'previous_extension[' . gettype($dummy) . ']=' . $dummy . ',getCurrentExtensionName()=' . getCurrentExtensionName() . ' - Under development, please report this!');
                } // END - if
 
                        $dummy = $GLOBALS['previous_extension'][getCurrentExtensionName()];
                        reportBug(__FUNCTION__, __LINE__, 'previous_extension[' . gettype($dummy) . ']=' . $dummy . ',getCurrentExtensionName()=' . getCurrentExtensionName() . ' - Under development, please report this!');
                } // END - if
 
-               // ... add an SQL query
-               addExtensionSql(sprintf("INSERT INTO `{?_MYSQL_PREFIX?}_points_data` (`subject`, `column_name`, `locked_mode`, `payment_method`) VALUES ('%s','%s','%s','%s')",
-                       $subject,
-                       $columnName,
-                       $lockedMode,
-                       $paymentMethod
-               ));
+               // With or without account_provider?
+               if (((isInstallationPhase()) && ((getExtensionMode() == 'register') || (getExtensionMode() == 'update'))) || (isExtensionInstalledAndNewer('sql_patches', '0.8.9'))) {
+                       // Add account_provider
+                       addExtensionSql(sprintf("INSERT INTO `{?_MYSQL_PREFIX?}_points_data` (`subject`, `column_name`, `locked_mode`, `payment_method`, `account_provider`) VALUES ('%s','%s','%s','%s','EXTENSION')",
+                               $subject,
+                               $columnName,
+                               $lockedMode,
+                               $paymentMethod
+                       ));
+               } else {
+                       // ... add an SQL query
+                       addExtensionSql(sprintf("INSERT INTO `{?_MYSQL_PREFIX?}_points_data` (`subject`, `column_name`, `locked_mode`, `payment_method`) VALUES ('%s','%s','%s','%s')",
+                               $subject,
+                               $columnName,
+                               $lockedMode,
+                               $paymentMethod
+                       ));
+               }
        } // END - if
 }
 
        } // END - if
 }
 
@@ -2280,7 +2299,7 @@ function copyExtensionDataToCacheArray ($ext_name, $ext_id) {
        $GLOBALS['cache_array']['extension']['ext_active'][$ext_name]     = getThisExtensionAlwaysActive();
        $GLOBALS['cache_array']['extension']['ext_lang'][$ext_name]       = convertBooleanToYesNo(isExtensionLanguageFileReadable($ext_name));
        $GLOBALS['cache_array']['extension']['ext_func'][$ext_name]       = convertBooleanToYesNo(isExtensionFunctionFileReadable($ext_name));
        $GLOBALS['cache_array']['extension']['ext_active'][$ext_name]     = getThisExtensionAlwaysActive();
        $GLOBALS['cache_array']['extension']['ext_lang'][$ext_name]       = convertBooleanToYesNo(isExtensionLanguageFileReadable($ext_name));
        $GLOBALS['cache_array']['extension']['ext_func'][$ext_name]       = convertBooleanToYesNo(isExtensionFunctionFileReadable($ext_name));
-       $GLOBALS['cache_array']['extension']['ext_menu'][$ext_name]       = convertBooleanToYesNo(ifModuleHasMenu($ext_name));
+       $GLOBALS['cache_array']['extension']['ext_menu'][$ext_name]       = convertBooleanToYesNo(ifModuleHasMenu($ext_name, isInstallationPhase()));
        $GLOBALS['cache_array']['extension']['ext_css'][$ext_name]        = convertBooleanToYesNo(getExtensionHasCss());
        $GLOBALS['cache_array']['extension']['ext_deprecated'][$ext_name] = 'N';
 }
        $GLOBALS['cache_array']['extension']['ext_css'][$ext_name]        = convertBooleanToYesNo(getExtensionHasCss());
        $GLOBALS['cache_array']['extension']['ext_deprecated'][$ext_name] = 'N';
 }
@@ -2298,5 +2317,23 @@ function isTaskIdValid ($taskId) {
        return $GLOBALS[__FUNCTION__][$taskId];
 }
 
        return $GLOBALS[__FUNCTION__][$taskId];
 }
 
+// "Getter" for "checked="checked" from given session data
+function getExtensionSelectedFromSession ($ext_name, $sessionName, $separator = ':') {
+       // Get the data and explode it
+       $selections = explode($separator, getSession($sessionName));
+
+       // Default is not checked
+       $checked = '';
+
+       // Is it there?
+       if (in_array($ext_name, $selections)) {
+               // It is, so mark it
+               $checked = ' checked="checked"';
+       } // END - if
+
+       // Return result
+       return $checked;
+}
+
 // [EOF]
 ?>
 // [EOF]
 ?>
index d21465ce13793b78fc8d84689c3982925565e8cb..6a3d2ad6a3adfa29a2685dbccecbd08abc318b47 100644 (file)
@@ -291,9 +291,6 @@ INDEX (`admin_id`)",
                                break;
 
                        case '0.7.1': // SQL queries for v0.7.1
                                break;
 
                        case '0.7.1': // SQL queries for v0.7.1
-                               // Update depends on ext-sql_patches
-                               addExtensionDependency('sql_patches');
-
                                // Add filters
                                registerFilter(__FILE__, __LINE__, 'sql_admin_extra_data', 'ADD_EXTRA_SQL_DATA', FALSE, TRUE, isExtensionDryRun());
 
                                // Add filters
                                registerFilter(__FILE__, __LINE__, 'sql_admin_extra_data', 'ADD_EXTRA_SQL_DATA', FALSE, TRUE, isExtensionDryRun());
 
index 089757cae2e195356fb6329b6ef9d33f456b3d36..ba1ff9d80186414134531b44fa2ec6e8e16c2fdc 100644 (file)
@@ -260,9 +260,6 @@ switch (getExtensionMode()) {
                                // Register with points data system
                                registerExtensionPointsData('autopurge_add', 'points', 'LOCKED', 'DIRECT');
 
                                // Register with points data system
                                registerExtensionPointsData('autopurge_add', 'points', 'LOCKED', 'DIRECT');
 
-                               // This depends on ext-sql_patches
-                               addExtensionDependency('sql_patches');
-
                                // Update notes
                                setExtensionUpdateNotes("R&uuml;ckschriften bei Auto-L&ouml;schungen werden nun &uuml;ber die Tabelle <strong>{OPEN_CONFIG}_MYSQL_PREFIX{CLOSE_CONFIG}_points_data</strong> verwaltet.");
                                break;
                                // Update notes
                                setExtensionUpdateNotes("R&uuml;ckschriften bei Auto-L&ouml;schungen werden nun &uuml;ber die Tabelle <strong>{OPEN_CONFIG}_MYSQL_PREFIX{CLOSE_CONFIG}_points_data</strong> verwaltet.");
                                break;
index 8d6f332cd685aec24edac9af0508b8103ffb8691..e2c42c695719296d2c73560695a4c94039ff1c15 100644 (file)
@@ -316,9 +316,6 @@ INDEX (`userid`)",
                                registerExtensionPointsData('beg'        , 'points', 'LOCKED', 'DIRECT');
                                registerExtensionPointsData('monthly_beg', 'points', 'LOCKED', 'DIRECT');
 
                                registerExtensionPointsData('beg'        , 'points', 'LOCKED', 'DIRECT');
                                registerExtensionPointsData('monthly_beg', 'points', 'LOCKED', 'DIRECT');
 
-                               // This depends on ext-sql_patches
-                               addExtensionDependency('sql_patches');
-
                                // Update notes
                                setExtensionUpdateNotes("Monatliche Bettelrallye und die erbettelten {?POINTS?} werden nun &uuml;ber die Tabelle <strong>{OPEN_CONFIG}_MYSQL_PREFIX{CLOSE_CONFIG}_points_data</strong> verwaltet.");
                                break;
                                // Update notes
                                setExtensionUpdateNotes("Monatliche Bettelrallye und die erbettelten {?POINTS?} werden nun &uuml;ber die Tabelle <strong>{OPEN_CONFIG}_MYSQL_PREFIX{CLOSE_CONFIG}_points_data</strong> verwaltet.");
                                break;
index f8a87a665d8e98c361e3e02a8608dbc95bae38a7..4ba29ce01f4376985958b1574e2f5af6cb556f3c 100644 (file)
@@ -617,9 +617,6 @@ ORDER BY
                                // Register points data
                                registerExtensionPointsData('monthly_bonus', 'points', 'LOCKED', 'DIRECT');
 
                                // Register points data
                                registerExtensionPointsData('monthly_bonus', 'points', 'LOCKED', 'DIRECT');
 
-                               // This depends on ext-sql_patches
-                               addExtensionDependency('sql_patches');
-
                                // Update notes
                                setExtensionUpdateNotes("Monatlicher Bonus wird nun &uuml;ber die Tabelle <strong>{OPEN_CONFIG}_MYSQL_PREFIX{CLOSE_CONFIG}_points_data</strong> verwaltet.");
                                break;
                                // Update notes
                                setExtensionUpdateNotes("Monatlicher Bonus wird nun &uuml;ber die Tabelle <strong>{OPEN_CONFIG}_MYSQL_PREFIX{CLOSE_CONFIG}_points_data</strong> verwaltet.");
                                break;
index 152d58cba2083dd27071643b149b6e7d5f5c4892..93bdb9b4bff668f9b5c23caa2afa4b79e5e9c9f7 100644 (file)
@@ -184,9 +184,6 @@ switch (getExtensionMode()) {
                                break;
 
                        case '0.2.0': // SQL queries for v0.2.0
                                break;
 
                        case '0.2.0': // SQL queries for v0.2.0
-                               // This update depends on ext-sql_patches
-                               addExtensionDependency('sql_patches');
-
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Die Erweiterung h&auml;ngt nun von der <strong>sql_patches</strong> ab.");
                                break;
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Die Erweiterung h&auml;ngt nun von der <strong>sql_patches</strong> ab.");
                                break;
index 664776bad8816035f717cb4e6381bf8149bbef41..0c6d128a35b48fa467ce3b59c6846b1ba8f1923f 100644 (file)
@@ -137,8 +137,7 @@ UNIQUE INDEX (`coupon_code`)",
                                addConfigDropSql('coupon_payment_method');
                                addConfigDropSql('coupon_locked_points_mode');
 
                                addConfigDropSql('coupon_payment_method');
                                addConfigDropSql('coupon_locked_points_mode');
 
-                               // This extension's update requires an up-to-date ext-sql_patches and ext-order
-                               addExtensionDependency('sql_patches');
+                               // This extension's update requires an up-to-date ext-order
                                addExtensionDependency('order');
 
                                // Insert data in new table
                                addExtensionDependency('order');
 
                                // Insert data in new table
index 3736a67dc10ee019e135f5f44ce106596d3446bf..b3863245bc4efe4358f36c800c7dd6bbab4e9438 100644 (file)
@@ -247,9 +247,6 @@ INDEX (`userid`)",
                                registerExtensionPointsData('doubler_direct', 'points', 'LOCKED', 'DIRECT');
                                registerExtensionPointsData('doubler_reset' , 'points', 'LOCKED', 'DIRECT');
 
                                registerExtensionPointsData('doubler_direct', 'points', 'LOCKED', 'DIRECT');
                                registerExtensionPointsData('doubler_reset' , 'points', 'LOCKED', 'DIRECT');
 
-                               // This depends on ext-sql_patches
-                               addExtensionDependency('sql_patches');
-
                                // Update notes
                                setExtensionUpdateNotes("Doppler-Gutschriften werden nun &uuml;ber die Tabelle <strong>{OPEN_CONFIG}_MYSQL_PREFIX{CLOSE_CONFIG}_points_data</strong> verwaltet.");
                                break;
                                // Update notes
                                setExtensionUpdateNotes("Doppler-Gutschriften werden nun &uuml;ber die Tabelle <strong>{OPEN_CONFIG}_MYSQL_PREFIX{CLOSE_CONFIG}_points_data</strong> verwaltet.");
                                break;
index 0a984730fd7696122c13e13b3a98b69ac8ff78cd..402f6a7ad8927273dabafbd73c9b275a499601e6 100644 (file)
@@ -191,9 +191,6 @@ INDEX (`userid`)",
                                addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu_las` (`la_id`, `la_action`, `la_what`) VALUES ('member', '', 'del_holiday')");
                                addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu_las` (`la_id`, `la_action`, `la_what`) VALUES ('config', '', 'config_holiday')");
 
                                addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu_las` (`la_id`, `la_action`, `la_what`) VALUES ('member', '', 'del_holiday')");
                                addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu_las` (`la_id`, `la_action`, `la_what`) VALUES ('config', '', 'config_holiday')");
 
-                               // Depends on ext-sql_patches (or you have to execute these both SQL statements by phpMyAdmin
-                               addExtensionDependency('sql_patches');
-
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Erweiterung in's neue Men&uuml;system integriert.");
                                break;
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Erweiterung in's neue Men&uuml;system integriert.");
                                break;
index 8e08cb8c7d56ec923295b7d9b15fa574f4f42411..6eff7932474f5d00b350e6a458edce3ee4663aa9 100644 (file)
@@ -233,9 +233,6 @@ switch (getExtensionMode()) {
                                break;
 
                        case '0.3.4': // SQL queries for v0.3.4
                                break;
 
                        case '0.3.4': // SQL queries for v0.3.4
-                               // This update depends on latest ext-sql_patches version
-                               addExtensionDependency('sql_patches');
-
                                // Register points data
                                registerExtensionPointsData('mailid_payback', 'points', 'LOCKED', 'DIRECT');
                                break;
                                // Register points data
                                registerExtensionPointsData('mailid_payback', 'points', 'LOCKED', 'DIRECT');
                                break;
index 34ea3f3e3fd9a797e7f8c4e0984e563ba32c6e88..e2bfaadfb4c26baffddbec6c57a2a69c968191ad 100644 (file)
@@ -76,9 +76,6 @@ switch (getExtensionMode()) {
        case 'update': // Update an extension
                switch (getCurrentExtensionVersion()) {
                        case '0.0.1': // SQL queries for v0.0.1
        case 'update': // Update an extension
                switch (getCurrentExtensionVersion()) {
                        case '0.0.1': // SQL queries for v0.0.1
-                               // This update depends on ext-sql_patches update!
-                               addExtensionDependency('sql_patches');
-
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Veraltetes Update entfernt.");
                                break;
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Veraltetes Update entfernt.");
                                break;
@@ -188,9 +185,6 @@ switch (getExtensionMode()) {
                                // Remove this deprecated table
                                addDropTableSql('nickname_history');
 
                                // Remove this deprecated table
                                addDropTableSql('nickname_history');
 
-                               // This update depends on ext-sql_patches update!
-                               addExtensionDependency('sql_patches');
-
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Diese Tabelle kann in <strong>ext-sql_patches</strong> allgemeiner formuliert werden.");
                                break;
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Diese Tabelle kann in <strong>ext-sql_patches</strong> allgemeiner formuliert werden.");
                                break;
index da987bb239942969ccf97eae61296d203ce854c3..4938bab43d6854d5c958262b6dc4b7108674e905 100644 (file)
@@ -312,9 +312,6 @@ Zudem sollten Sie mindestens folgende Templates (in <strong>templates/".getLangu
                                break;
 
                        case '0.3.5': // SQL queries for 0.3.5
                                break;
 
                        case '0.3.5': // SQL queries for 0.3.5
-                               // This update depends on ext-sql_patches
-                               addExtensionDependency('sql_patches');
-
                                // Register filter
                                registerFilter(__FILE__, __LINE__, 'extra_autopurge', 'RALLYE_EXTRA_AUTOPURGE', FALSE, TRUE, isExtensionDryRun());
 
                                // Register filter
                                registerFilter(__FILE__, __LINE__, 'extra_autopurge', 'RALLYE_EXTRA_AUTOPURGE', FALSE, TRUE, isExtensionDryRun());
 
@@ -326,9 +323,6 @@ Zudem sollten Sie mindestens folgende Templates (in <strong>templates/".getLangu
                                // Register points data
                                registerExtensionPointsData('rallye_winner', 'points', 'LOCKED', 'DIRECT');
 
                                // Register points data
                                registerExtensionPointsData('rallye_winner', 'points', 'LOCKED', 'DIRECT');
 
-                               // This depends on ext-sql_patches
-                               addExtensionDependency('sql_patches');
-
                                // Update notes
                                setExtensionUpdateNotes("Gewinn aus der Referral-Rallye wird nun &uuml;ber die Tabelle <strong>{OPEN_CONFIG}_MYSQL_PREFIX{CLOSE_CONFIG}_points_data</strong> verwaltet.");
                                break;
                                // Update notes
                                setExtensionUpdateNotes("Gewinn aus der Referral-Rallye wird nun &uuml;ber die Tabelle <strong>{OPEN_CONFIG}_MYSQL_PREFIX{CLOSE_CONFIG}_points_data</strong> verwaltet.");
                                break;
index b6252421eac7c347da22e80b25988232b300be56..8411f9580a84e735d65e080fb4eddd0777f40340 100644 (file)
@@ -96,9 +96,6 @@ switch (getExtensionMode()) {
                                // Register points data
                                registerExtensionPointsData('refback', 'points', 'LOCKED', 'DIRECT');
 
                                // Register points data
                                registerExtensionPointsData('refback', 'points', 'LOCKED', 'DIRECT');
 
-                               // This depends on ext-sql_patches
-                               addExtensionDependency('sql_patches');
-
                                // Update notes
                                setExtensionUpdateNotes("Refback-Gutschriften werden nun &uuml;ber die Tabelle <strong>{OPEN_CONFIG}_MYSQL_PREFIX{CLOSE_CONFIG}_points_data</strong> verwaltet.");
                                break;
                                // Update notes
                                setExtensionUpdateNotes("Refback-Gutschriften werden nun &uuml;ber die Tabelle <strong>{OPEN_CONFIG}_MYSQL_PREFIX{CLOSE_CONFIG}_points_data</strong> verwaltet.");
                                break;
index 85bfcb4632b30d77e5a760f6b03d43fa5e4fcb45..d31fbb0cb6db257f84f03defb775a21febba5ae3 100644 (file)
@@ -105,17 +105,11 @@ PRIMARY KEY (`id`)",
                                break;
 
                        case '0.1.1': // SQL queries for v0.1.1
                                break;
 
                        case '0.1.1': // SQL queries for v0.1.1
-                               // This update depends on ext-sql_patches update!
-                               addExtensionDependency('sql_patches');
-
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Veraltetes Update entfernt.");
                                break;
 
                        case '0.1.3': // SQL queries for v0.1.3
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Veraltetes Update entfernt.");
                                break;
 
                        case '0.1.3': // SQL queries for v0.1.3
-                               // This update depends on ext-sql_patches update!
-                               addExtensionDependency('sql_patches');
-
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Standard Referral-Id kann per Admin-Bereich eingestellt werden (war vorher nur in modules.php und index.php direkt eingebbar.)");
                                break;
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Standard Referral-Id kann per Admin-Bereich eingestellt werden (war vorher nur in modules.php und index.php direkt eingebbar.)");
                                break;
@@ -351,9 +345,6 @@ PRIMARY KEY (`id`)",
                                // Register points data
                                registerExtensionPointsData('register_welcome', 'points', 'LOCKED', 'DIRECT');
 
                                // Register points data
                                registerExtensionPointsData('register_welcome', 'points', 'LOCKED', 'DIRECT');
 
-                               // This depends on ext-sql_patches
-                               addExtensionDependency('sql_patches');
-
                                // Update notes
                                setExtensionUpdateNotes("Anmeldewillkommensgutschrift wird nun &uuml;ber die Tabelle <strong>{OPEN_CONFIG}_MYSQL_PREFIX{CLOSE_CONFIG}_points_data</strong> verwaltet.");
                                break;
                                // Update notes
                                setExtensionUpdateNotes("Anmeldewillkommensgutschrift wird nun &uuml;ber die Tabelle <strong>{OPEN_CONFIG}_MYSQL_PREFIX{CLOSE_CONFIG}_points_data</strong> verwaltet.");
                                break;
index f258946227056a92a5538f004733509143607d96..6783fd3b10e579ff0a68c673fbfb5533c0cef28d 100644 (file)
@@ -80,9 +80,6 @@ switch (getExtensionMode()) {
        case 'update': // Update an extension
                switch (getCurrentExtensionVersion()) {
                        case '0.0.1': // SQL queries for v0.0.1
        case 'update': // Update an extension
                switch (getCurrentExtensionVersion()) {
                        case '0.0.1': // SQL queries for v0.0.1
-                               // Update depends on ext-sql_patches
-                               addExtensionDependency('sql_patches');
-
                                // Add filters
                                registerFilter(__FILE__, __LINE__, 'post_youhere_line', 'ADD_ANONYMITY_NOTICE', FALSE, TRUE, isExtensionDryRun());
 
                                // Add filters
                                registerFilter(__FILE__, __LINE__, 'post_youhere_line', 'ADD_ANONYMITY_NOTICE', FALSE, TRUE, isExtensionDryRun());
 
index f64e173b6cb06b8c3a21581a71a55b3278887b79..84394b9cf001bfbac93008d9ccf4937993ab8a5c 100644 (file)
@@ -215,9 +215,6 @@ UNIQUE INDEX `status_action` (`actions_status`, `actions_action`)",
                // Insert data for points accounts
                registerExtensionPointsData('monthly_surfbar', 'points', 'LOCKED', 'DIRECT');
 
                // Insert data for points accounts
                registerExtensionPointsData('monthly_surfbar', 'points', 'LOCKED', 'DIRECT');
 
-               // This extension depends on ext-sql_patches
-               addExtensionDependency('sql_patches');
-
                // Register filters
                registerFilter(__FILE__, __LINE__, 'post_change_surfbar_url_status', 'SURFBAR_CHANGE_URL_STATUS', FALSE, TRUE, isExtensionDryRun());
                registerFilter(__FILE__, __LINE__, 'pre_change_surfbar_url_status', 'SURFBAR_CHANGE_URL_VALIDATE_DATA', FALSE, TRUE, isExtensionDryRun());
                // Register filters
                registerFilter(__FILE__, __LINE__, 'post_change_surfbar_url_status', 'SURFBAR_CHANGE_URL_STATUS', FALSE, TRUE, isExtensionDryRun());
                registerFilter(__FILE__, __LINE__, 'pre_change_surfbar_url_status', 'SURFBAR_CHANGE_URL_VALIDATE_DATA', FALSE, TRUE, isExtensionDryRun());
index 29945d6c925c7399357e3db5709cb0fc5f901155..b711688985b40e6f9f99a80a61d136e4fb39256e 100644 (file)
@@ -82,9 +82,6 @@ switch (getExtensionMode()) {
        case 'update': // Update an extension
                switch (getCurrentExtensionVersion()) {
                        case '0.0.1': // SQL queries for v0.0.1
        case 'update': // Update an extension
                switch (getCurrentExtensionVersion()) {
                        case '0.0.1': // SQL queries for v0.0.1
-                               // This update depends on ext-sql_patches update!
-                               addExtensionDependency('sql_patches');
-
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Veraltetes Update entfernt.");
                                break;
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Veraltetes Update entfernt.");
                                break;
@@ -242,9 +239,6 @@ switch (getExtensionMode()) {
                                break;
 
                        case '0.3.2': // SQL queries for v0.3.2
                                break;
 
                        case '0.3.2': // SQL queries for v0.3.2
-                               // This update depends on user update
-                               addExtensionDependency('sql_patches');
-
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("H&auml;ngt nun von <u>ext-user</u> ab.");
                                break;
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("H&auml;ngt nun von <u>ext-user</u> ab.");
                                break;
index 7f06be7750d4d546c3af0d033185faee07b19b7c..a1f480f7e1aed84e88cec3b102e797d60a4e2f79 100644 (file)
@@ -234,9 +234,6 @@ INDEX (`to_userid`)",
                                addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu_las` (`la_id`, `la_action`, `la_what`) VALUES ('member', '', 'del_transfer')");
                                addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu_las` (`la_id`, `la_action`, `la_what`) VALUES ('config', '', 'config_transfer')");
 
                                addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu_las` (`la_id`, `la_action`, `la_what`) VALUES ('member', '', 'del_transfer')");
                                addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu_las` (`la_id`, `la_action`, `la_what`) VALUES ('config', '', 'config_transfer')");
 
-                               // Depends on ext-sql_patches (or you have to execute these both SQL statements by phpMyAdmin
-                               addExtensionDependency('sql_patches');
-
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Erweiterung in's neue Men&uuml;system integriert.");
                                break;
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Erweiterung in's neue Men&uuml;system integriert.");
                                break;
@@ -277,9 +274,6 @@ INDEX (`to_userid`)",
                                // Register points data
                                registerExtensionPointsData('transfer', 'points', 'LOCKED', 'DIRECT');
 
                                // Register points data
                                registerExtensionPointsData('transfer', 'points', 'LOCKED', 'DIRECT');
 
-                               // This depends on ext-sql_patches
-                               addExtensionDependency('sql_patches');
-
                                // Update notes
                                setExtensionUpdateNotes("&Uuml;nerweisungen anderer Mitglieder werden nun &uuml;ber die Tabelle <strong>{OPEN_CONFIG}_MYSQL_PREFIX{CLOSE_CONFIG}_points_data</strong> verwaltet.");
                                break;
                                // Update notes
                                setExtensionUpdateNotes("&Uuml;nerweisungen anderer Mitglieder werden nun &uuml;ber die Tabelle <strong>{OPEN_CONFIG}_MYSQL_PREFIX{CLOSE_CONFIG}_points_data</strong> verwaltet.");
                                break;
index de7aab71a45249fa1599546d6ddd4420a7dfcdd8..d1eb6d75c4487d69bddf1cce08c8b4f4148ab4e8 100644 (file)
@@ -222,9 +222,6 @@ INDEX (`stats_type`)",
                                break;
 
                        case '0.1.1': // SQL queries for v0.1.1
                                break;
 
                        case '0.1.1': // SQL queries for v0.1.1
-                               // This update depends on ext-sql_patches update!
-                               addExtensionDependency('sql_patches');
-
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Ung&uuml;ltiges Update.");
                                break;
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Ung&uuml;ltiges Update.");
                                break;
index 0e566ccba1fe85406675df16210a43640223b6fb..14202df9dfb56063d3ac80caa4ec7708d1b061ea 100644 (file)
@@ -142,9 +142,6 @@ INDEX (`userid`)",
                                // Register points data
                                registerExtensionPointsData('wernis_withdraw', 'order_points', 'LOCKED', 'DIRECT');
 
                                // Register points data
                                registerExtensionPointsData('wernis_withdraw', 'order_points', 'LOCKED', 'DIRECT');
 
-                               // This depends on ext-sql_patches
-                               addExtensionDependency('sql_patches');
-
                                // Update notes
                                setExtensionUpdateNotes("&Uuml;berweisungen vom Portal werden nun &uuml;ber die Tabelle <strong>{OPEN_CONFIG}_MYSQL_PREFIX{CLOSE_CONFIG}_points_data</strong> verwaltet.");
                                break;
                                // Update notes
                                setExtensionUpdateNotes("&Uuml;berweisungen vom Portal werden nun &uuml;ber die Tabelle <strong>{OPEN_CONFIG}_MYSQL_PREFIX{CLOSE_CONFIG}_points_data</strong> verwaltet.");
                                break;
index 14adc971c1c0da889a5cb951159e8cde3d9b9664..655ee8caa584ecf5c695c9d26fca45fa169de7ec 100644 (file)
@@ -90,7 +90,7 @@ function FILTER_PRE_USER_REGISTRATION_GENERIC ($filterData) {
                postRequestElement('month') . '-' .
                postRequestElement('day') . '-' .
                postRequestElement('year') . getEncryptSeparator() .
                postRequestElement('month') . '-' .
                postRequestElement('day') . '-' .
                postRequestElement('year') . getEncryptSeparator() .
-               postRequestElement('pass1') . getEncryptSeparator() .
+               postRequestElement('password1') . getEncryptSeparator() .
                detectServerName() . getEncryptSeparator() .
                detectRemoteAddr() . getEncryptSeparator() .
                detectUserAgent() . '/' .
                detectServerName() . getEncryptSeparator() .
                detectRemoteAddr() . getEncryptSeparator() .
                detectUserAgent() . '/' .
index 668eaa2f2570cdb6f817b390ee0e9df589e8e460..8c885c5006a71d1b1ad2825f8b5270cb8b796f38 100644 (file)
@@ -54,8 +54,8 @@ function FILTER_FLUSH_FILTERS () {
                return;
        }
 
                return;
        }
 
-       // Is the extension ext-sql_patches updated and not in installation phase?
-       if ((!isInstallationPhase()) && ((!isExtensionInstalled('sql_patches')) || (isExtensionInstalledAndOlder('sql_patches', '0.5.9')))) {
+       // Is the extension ext-sql_patches updated?
+       if ((!isExtensionInstalled('sql_patches')) || (isExtensionInstalledAndOlder('sql_patches', '0.5.9'))) {
                // Log only in debug mode
                if (isDebugModeEnabled()) {
                        logDebugMessage(__FUNCTION__, __LINE__, 'Cannot flush filters, ext-sql_patches might be missing. isExtensionInstalled()=' . intval(isExtensionInstalled('sql_patches')) . ',isExtensionInstalledAndOlder()=' . intval(isExtensionInstalledAndOlder('sql_patches', '0.5.9')));
                // Log only in debug mode
                if (isDebugModeEnabled()) {
                        logDebugMessage(__FUNCTION__, __LINE__, 'Cannot flush filters, ext-sql_patches might be missing. isExtensionInstalled()=' . intval(isExtensionInstalled('sql_patches')) . ',isExtensionInstalledAndOlder()=' . intval(isExtensionInstalledAndOlder('sql_patches', '0.5.9')));
@@ -565,8 +565,8 @@ function FILTER_COMPILE_EXPRESSION_CODE ($filterData) {
                } // END - foreach
        } // END - if
 
                } // END - foreach
        } // END - if
 
-       // Is there non-HTML mode?
-       if (!isHtmlOutputMode()) {
+       // Is there non-HTML/AJAX mode?
+       if ((!isHtmlOutputMode()) && (!isAjaxOutputMode())) {
                $filterData = decodeEntities($filterData);
        } // END - if
 
                $filterData = decodeEntities($filterData);
        } // END - if
 
index ef8ae8debbb85321c92c052fea8a83a3ca0f6156..f6d75436b9fe615da6f8e0d9e2f853a4b0e6f051 100644 (file)
@@ -109,7 +109,7 @@ function doInstallWriteLocalConfigurationFile ($path, $url, $title, $slogan, $em
        changeDataInLocalConfigurationFile('SITE-KEY', "setConfigEntry('SITE_KEY', '", "');", generatePassword(50), 0);
 
        // Script is now installed
        changeDataInLocalConfigurationFile('SITE-KEY', "setConfigEntry('SITE_KEY', '", "');", generatePassword(50), 0);
 
        // Script is now installed
-       changeDataInLocalConfigurationFile('INSTALLED', "setConfigEntry('MAILER_INSTALLED', '", "');", 'Y', 0);
+       return changeDataInLocalConfigurationFile('INSTALLED', "setConfigEntry('MAILER_INSTALLED', '", "');", 'Y', 0);
 }
 
 // Adds a given template with content to install output stream
 }
 
 // Adds a given template with content to install output stream
@@ -253,7 +253,7 @@ function isInstallerDataValid (&$saveStatus, $key, $value) {
        } // END - if
 
        // Then call it back
        } // END - if
 
        // Then call it back
-       $isValid = (bool) call_user_func($callbackName, trim($value));
+       $isValid = (bool) call_user_func($callbackName, $value);
 
        // Is it not valid?
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'key=' . $key . ',value=' . $value . ',isValid=' . intval($isValid));
 
        // Is it not valid?
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'key=' . $key . ',value=' . $value . ',isValid=' . intval($isValid));
@@ -335,6 +335,50 @@ function addKeyValueToInstallerOverviewGroup ($key, $value) {
        $GLOBALS['installer_overview'][$group][$key] = $value;
 }
 
        $GLOBALS['installer_overview'][$group][$key] = $value;
 }
 
+//-----------------------------------------------------------------------------
+//                        Template call-back functions
+//-----------------------------------------------------------------------------
+
+// ----------------- Extensions -----------------
+
+// Generates (and returns) a table from all extensions
+function generateInstallerExtensionTable () {
+       // Generate extension list
+       $extensions = loadAllExtensionsByTemplate();
+
+       // "Walk" through all
+       $OUT = '';
+       foreach ($extensions as $extension) {
+               // Remove prefix + suffix
+               $ext_name = substr(basename($extension), 4, -4);
+
+               // Is the extension not in development and not admintheme* ?
+               if ((loadExtension($ext_name, 'test', '0.0.0', TRUE)) && (isExtensionProductive($ext_name)) && (substr($ext_name, 0, 10) != 'admintheme')) {
+                       // Default is not disabled
+                       $disabled = '';
+                       if ($ext_name == 'sql_patches') {
+                               // Always keep this enabled
+                               $disabled = ' disabled="disabled"';
+                       } // END - if
+
+                       // Initialize content array
+                       $content = array(
+                               'ext_name'    => $ext_name,
+                               'ext_version' => getExtensionVersion($ext_name),
+                               'checked'     => getExtensionSelectedFromSession($ext_name, 'extensions'),
+                               'disabled'    => $disabled,
+                               'description' => loadTemplate('ext_' . $ext_name, TRUE),
+                       );
+
+                       // Load row template
+                       $OUT .= loadTemplate('install_list_extensions_row', TRUE, $content);
+               } // END - if
+       } // END - foreach
+
+       // Load main template
+       return loadTemplate('install_list_extensions', TRUE, $OUT);
+}
+
 //-----------------------------------------------------------------------------
 //                   Call-back functions to check validity
 //-----------------------------------------------------------------------------
 //-----------------------------------------------------------------------------
 //                   Call-back functions to check validity
 //-----------------------------------------------------------------------------
@@ -497,6 +541,44 @@ function isInstallerMysqlPrefixValid ($value) {
 
 // ----------------- Other configuration -----------------
 
 
 // ----------------- Other configuration -----------------
 
+// ----------------- Extensions -----------------
+
+// Call-back function to check 'sel' (array!)
+function isInstallerSelValid ($value) {
+       // $value is not an array, is really bad.
+       if (!is_array($value)) {
+               // Is no array
+               reportBug(__FUNCTION__, __LINE__, 'sel,value[]=' . gettype($value) . '!=array');
+       } // END - if
+
+       // Add always missing ext-sql_patches
+       $value['sql_patches'] = '1';
+
+       // Default is fine
+       $isValid = TRUE;
+
+       // "Walk" through all extensions
+       foreach ($value as $ext_name => $sel) {
+               // Is this extension choosen?
+               if ($sel != '1') {
+                       // Skip this
+                       continue;
+               } // END - if
+
+               // Can it be loaded?
+               $isValid = (($isValid) && (loadExtension($ext_name, 'test', '0.0.0', TRUE)));
+       } // END - foreach
+
+       // Remove 'sel' from POST data as it cannot be saved
+       unsetPostRequestElement('sel');
+
+       // Save it in session (sorry to do that here :( )
+       setSession('extensions', implode(':', array_keys($value)));
+
+       // Return result
+       return $isValid;
+}
+
 //-----------------------------------------------------------------------------
 //                 Call-back functions to post-check validity
 //-----------------------------------------------------------------------------
 //-----------------------------------------------------------------------------
 //                 Call-back functions to post-check validity
 //-----------------------------------------------------------------------------
index 1e00d24106bfda972a3380fb0a3ae5fc5b64b7dc..5782a99fd2e56b512117a0ddac82bf2f2977d2ff 100644 (file)
@@ -67,19 +67,19 @@ if ((isGetRequestElementSet('install_page') && (getRequestElement('install_page'
                setGetRequestElement('install_page', 3);
        } // END - if
 
                setGetRequestElement('install_page', 3);
        } // END - if
 
-       if ((!isPostRequestElementSet('smtp_pass1')) && (isPostRequestElementSet('smtp_pass2'))) {
+       if ((!isPostRequestElementSet('smtp_password1')) && (isPostRequestElementSet('smtp_password2'))) {
                // Password is empty
                addToInstallContent('<div class="para">{--INSTALLER_SMTP_PASSWORD1_EMPTY--}</div>');
                setGetRequestElement('install_page', 3);
        } // END - if
 
                // Password is empty
                addToInstallContent('<div class="para">{--INSTALLER_SMTP_PASSWORD1_EMPTY--}</div>');
                setGetRequestElement('install_page', 3);
        } // END - if
 
-       if ((isPostRequestElementSet('smtp_pass1')) && (!isPostRequestElementSet('smtp_pass2'))) {
+       if ((isPostRequestElementSet('smtp_password1')) && (!isPostRequestElementSet('smtp_password2'))) {
                // Password repeat is empty
                addToInstallContent('<div class="para">{--INSTALLER_SMTP_PASSWORD2_EMPTY--}</div>');
                setGetRequestElement('install_page', 3);
        } // END - if
 
                // Password repeat is empty
                addToInstallContent('<div class="para">{--INSTALLER_SMTP_PASSWORD2_EMPTY--}</div>');
                setGetRequestElement('install_page', 3);
        } // END - if
 
-       if (postRequestElement('smtp_pass1') != postRequestElement('smtp_pass1')) {
+       if (postRequestElement('smtp_password1') != postRequestElement('smtp_password1')) {
                // Passwords are not matching
                addToInstallContent('<div class="para">{--INSTALLER_SMTP_PASS_MISMATCH--}</div>');
                setGetRequestElement('install_page', 3);
                // Passwords are not matching
                addToInstallContent('<div class="para">{--INSTALLER_SMTP_PASS_MISMATCH--}</div>');
                setGetRequestElement('install_page', 3);
index 2bdfb00013a549dff62541ecabea774c9a1989bb..182bb87d5a34f9458407e8bf1bdda549e22d2494 100644 (file)
@@ -62,19 +62,19 @@ if (isPostRequestElementSet('smtp_pass')) {
 } // END - if
 
 // Database login data
 } // END - if
 
 // Database login data
-$content['mysql_host']   = $GLOBALS['install_mysql']['host'];
-$content['mysql_dbase']  = $GLOBALS['install_mysql']['dbase'];
-$content['mysql_prefix'] = $GLOBALS['install_mysql']['prefix'];
-$content['table_type']   = $GLOBALS['install_mysql']['type'];
-$content['mysql_login']  = $GLOBALS['install_mysql']['login'];
-$content['mysql_pass1']  = $GLOBALS['install_mysql']['pass1'];
-$content['mysql_pass2']  = $GLOBALS['install_mysql']['pass2'];
+$content['mysql_host']      = $GLOBALS['install_mysql']['host'];
+$content['mysql_dbase']     = $GLOBALS['install_mysql']['dbase'];
+$content['mysql_prefix']    = $GLOBALS['install_mysql']['prefix'];
+$content['table_type']      = $GLOBALS['install_mysql']['type'];
+$content['mysql_login']     = $GLOBALS['install_mysql']['login'];
+$content['mysql_password1'] = $GLOBALS['install_mysql']['password1'];
+$content['mysql_password2'] = $GLOBALS['install_mysql']['password2'];
 
 // Set constants for SMTP data
 
 // Set constants for SMTP data
-$content['smtp_host']  = $smtpHost;
-$content['smtp_user']  = $smtpUser;
-$content['smtp_pass1'] = $smtpPass1;
-$content['smtp_pass2'] = $smtpPass2;
+$content['smtp_host']      = $smtpHost;
+$content['smtp_user']      = $smtpUser;
+$content['smtp_password1'] = $smtpPass1;
+$content['smtp_password2'] = $smtpPass2;
 
 // Load template
 addTemplateToInstallContent('install_page3', $content);
 
 // Load template
 addTemplateToInstallContent('install_page3', $content);
index d3aa53bc7ba88d3bc8f517d0021dbd1028820b48..d1fdb7bc2d7e8a297d2908b560c963ea6cd10922 100644 (file)
@@ -48,9 +48,9 @@ $content['slogan'] = postRequestElement('slogan');
 $content['email']  = postRequestElement('email');
 
 // SMTP settings
 $content['email']  = postRequestElement('email');
 
 // SMTP settings
-$content['smtp_host'] = postRequestElement('smtp_host');
-$content['smtp_user'] = postRequestElement('smtp_user');
-$content['smtp_pass'] = postRequestElement('smtp_pass1');
+$content['smtp_host']     = postRequestElement('smtp_host');
+$content['smtp_user']     = postRequestElement('smtp_user');
+$content['smtp_password'] = postRequestElement('smtp_password1');
 
 // Database login data
 $OUT = '';
 
 // Database login data
 $OUT = '';
index 6cd0f3032f783e8ed68ad636b3e26781a704a4e7..572dcd2a9a1443b2347777dbf8a2376d76e3d1e0 100644 (file)
@@ -49,7 +49,7 @@ if ((isPostRequestElementSet('finalize')) && (!isInstalled())) {
        unset($GLOBALS['is_sql_link_up']);
 
        // Connect to database server
        unset($GLOBALS['is_sql_link_up']);
 
        // Connect to database server
-       SQL_CONNECT($GLOBALS['install_mysql']['host'], $GLOBALS['install_mysql']['login'], $GLOBALS['install_mysql']['pass1'], __FILE__, __LINE__);
+       SQL_CONNECT($GLOBALS['install_mysql']['host'], $GLOBALS['install_mysql']['login'], $GLOBALS['install_mysql']['password1'], __FILE__, __LINE__);
 
        // Is the link up?
        if (SQL_IS_LINK_UP()) {
 
        // Is the link up?
        if (SQL_IS_LINK_UP()) {
@@ -102,15 +102,15 @@ if ((isPostRequestElementSet('finalize')) && (!isInstalled())) {
                foreach ($GLOBALS['install_mysql'] as $key => $value) {
                        $OUT .= '    <input type="hidden" name="mysql[' . $key . ']" value="' . $value . '" />';
                } // END foreach
                foreach ($GLOBALS['install_mysql'] as $key => $value) {
                        $OUT .= '    <input type="hidden" name="mysql[' . $key . ']" value="' . $value . '" />';
                } // END foreach
-               $content['mysql_hidden'] = $OUT;
-               $content['spath']      = postRequestElement('spath');
-               $content['burl']       = postRequestElement('burl');
-               $content['title']      = postRequestElement('title');
-               $content['slogan']     = postRequestElement('slogan');
-               $content['email']      = postRequestElement('email');
-               $content['smtp_host']  = postRequestElement('smtp_host');
-               $content['smtp_user']  = postRequestElement('smtp_user');
-               $content['smtp_pass']  = postRequestElement('smtp_pass1');
+               $content['mysql_hidden']  = $OUT;
+               $content['spath']         = postRequestElement('spath');
+               $content['burl']          = postRequestElement('burl');
+               $content['title']         = postRequestElement('title');
+               $content['slogan']        = postRequestElement('slogan');
+               $content['email']         = postRequestElement('email');
+               $content['smtp_host']     = postRequestElement('smtp_host');
+               $content['smtp_user']     = postRequestElement('smtp_user');
+               $content['smtp_password'] = postRequestElement('smtp_password1');
 
                // Load template
                addTemplateToInstallContent('install_fatal_errors', $content);
 
                // Load template
                addTemplateToInstallContent('install_fatal_errors', $content);
@@ -131,12 +131,12 @@ if ((isPostRequestElementSet('finalize')) && (!isInstalled())) {
                        postRequestElement('mysql', 'host'),
                        postRequestElement('mysql', 'dbase'),
                        postRequestElement('mysql', 'login'),
                        postRequestElement('mysql', 'host'),
                        postRequestElement('mysql', 'dbase'),
                        postRequestElement('mysql', 'login'),
-                       postRequestElement('mysql', 'pass1'),
+                       postRequestElement('mysql', 'password1'),
                        postRequestElement('mysql', 'prefix'),
                        postRequestElement('mysql', 'type'),
                        postRequestElement('smtp_host'),
                        postRequestElement('smtp_user'),
                        postRequestElement('mysql', 'prefix'),
                        postRequestElement('mysql', 'type'),
                        postRequestElement('smtp_host'),
                        postRequestElement('smtp_user'),
-                       postRequestElement('smtp_pass1')
+                       postRequestElement('smtp_password1')
                );
 
                // Register ext-sql_patches and ext-task
                );
 
                // Register ext-sql_patches and ext-task
index 68aee539cf92abc420b3888dfbe20f6067d920f2..4b191124f09441eba81bf55c9c1cd05dbd92bb25 100644 (file)
@@ -57,6 +57,7 @@ addMessages(array(
        'INSTALLER_FIN_SECU' => "Sie sollten jetzt die Dateien <u>install.php</u> und <u>inc/install-inc.php</u> von Ihrem Server l&ouml;schen. Dies ist zwar normalerweise nicht erforderlich, Sie sollten es aber dennoch tun, um die Sicherheit zus&auml;tzlich zu erh&ouml;hen.",
        'INSTALLER_CONTINUE_ADMIN' => "Weiter zum Administrationsbereich...",
        'INSTALLER_INIT_PLEASE_WAIT' => "Einen Augenblick, die Installation wird vorbereitet ...",
        'INSTALLER_FIN_SECU' => "Sie sollten jetzt die Dateien <u>install.php</u> und <u>inc/install-inc.php</u> von Ihrem Server l&ouml;schen. Dies ist zwar normalerweise nicht erforderlich, Sie sollten es aber dennoch tun, um die Sicherheit zus&auml;tzlich zu erh&ouml;hen.",
        'INSTALLER_CONTINUE_ADMIN' => "Weiter zum Administrationsbereich...",
        'INSTALLER_INIT_PLEASE_WAIT' => "Einen Augenblick, die Installation wird vorbereitet ...",
+       'INSTALLER_MARK_EXTENSION' => "Erweiterung %s zur Installation markieren",
 
        // Plain installer - general
        'INSTALLER_SQL_IMPORT_FAILED' => "Konnte die SQL-Dateien aus <strong>install/</strong> nicht nachladen. Bitte Zugriffsrechte (CHMOD) auf die Dateien &uuml;berpr&uuml;fen. Diese sollten 644 mindestens aufweisen.",
 
        // Plain installer - general
        'INSTALLER_SQL_IMPORT_FAILED' => "Konnte die SQL-Dateien aus <strong>install/</strong> nicht nachladen. Bitte Zugriffsrechte (CHMOD) auf die Dateien &uuml;berpr&uuml;fen. Diese sollten 644 mindestens aufweisen.",
@@ -86,6 +87,7 @@ addMessages(array(
        'INSTALLER_PAGE_DATABASE_CONFIG_TITLE' => "Zugangsdaten zur Datenbank",
        'INSTALLER_PAGE_SMTP_CONFIG_TITLE' => "SMTP-Server Einstellungen",
        'INSTALLER_PAGE_OTHER_CONFIG_TITLE' => "Verschiedene Einstellungen",
        'INSTALLER_PAGE_DATABASE_CONFIG_TITLE' => "Zugangsdaten zur Datenbank",
        'INSTALLER_PAGE_SMTP_CONFIG_TITLE' => "SMTP-Server Einstellungen",
        'INSTALLER_PAGE_OTHER_CONFIG_TITLE' => "Verschiedene Einstellungen",
+       'INSTALLER_PAGE_EXTENSIONS_TITLE' => "Erweiterungen installieren",
        'INSTALLER_PAGE_OVERVIEW_TITLE' => "Die Installation kann beginnen",
 
        // Installation pages descriptions
        'INSTALLER_PAGE_OVERVIEW_TITLE' => "Die Installation kann beginnen",
 
        // Installation pages descriptions
@@ -158,6 +160,8 @@ addMessages(array(
        'INSTALLER_TAB_NAVIGATION_SMTP_CONFIG_LINK' => "SMTP-Daten",
        'INSTALLER_TAB_NAVIGATION_OTHER_CONFIG_TITLE' => "Seite 5: Sonstige Grundeinstellungen",
        'INSTALLER_TAB_NAVIGATION_OTHER_CONFIG_LINK' => "Sonstiges",
        'INSTALLER_TAB_NAVIGATION_SMTP_CONFIG_LINK' => "SMTP-Daten",
        'INSTALLER_TAB_NAVIGATION_OTHER_CONFIG_TITLE' => "Seite 5: Sonstige Grundeinstellungen",
        'INSTALLER_TAB_NAVIGATION_OTHER_CONFIG_LINK' => "Sonstiges",
+       'INSTALLER_TAB_NAVIGATION_EXTENSIONS_TITLE' => "Erweiterungen installieren",
+       'INSTALLER_TAB_NAVIGATION_EXTENSIONS_LINK' => "Erweiterungen",
        'INSTALLER_TAB_NAVIGATION_OVERVIEW_TITLE' => "Installationszusammenfassung",
        'INSTALLER_TAB_NAVIGATION_OVERVIEW_LINK' => "Zusammenfassung",
 
        'INSTALLER_TAB_NAVIGATION_OVERVIEW_TITLE' => "Installationszusammenfassung",
        'INSTALLER_TAB_NAVIGATION_OVERVIEW_LINK' => "Zusammenfassung",
 
@@ -189,6 +193,9 @@ addMessages(array(
        'INSTALLER_CHANGED_ELEMENT_WRITE_FOOTER' => "Sie haben die Einstellung f&uuml;r das Ausgeben der Fusszeile ge&auml;ndert.",
        'INSTALLER_CHANGED_ELEMENT_ENABLE_BACKLINK' => "Sie haben die Einstellung f&uuml;r den Backlink zu {?SERVER_URL?} ge&auml;ndert.",
 
        'INSTALLER_CHANGED_ELEMENT_WRITE_FOOTER' => "Sie haben die Einstellung f&uuml;r das Ausgeben der Fusszeile ge&auml;ndert.",
        'INSTALLER_CHANGED_ELEMENT_ENABLE_BACKLINK' => "Sie haben die Einstellung f&uuml;r den Backlink zu {?SERVER_URL?} ge&auml;ndert.",
 
+       // Changed elements - extensions
+       'INSTALLER_CHANGED_ELEMENT_EXTENSION' => "Die Erweiterung <span class=\"data\">%s</span> wurde aus- oder abgew&auml;hlt.",
+
        // Fieldset legends
        'INSTALLER_BASE_DATA_LEGEND_BASE_URL_PATH' => "Basis-Pfad und -URL:",
        'INSTALLER_BASE_DATA_LEGEND_TITLE_SLOGAN' => "{?mt_word?}-Titel und Werbespruch:",
        // Fieldset legends
        'INSTALLER_BASE_DATA_LEGEND_BASE_URL_PATH' => "Basis-Pfad und -URL:",
        'INSTALLER_BASE_DATA_LEGEND_TITLE_SLOGAN' => "{?mt_word?}-Titel und Werbespruch:",
@@ -252,6 +259,9 @@ addMessages(array(
        'INSTALLER_FIELD_FAILED_WARN_NO_PASS' => "Es wurde weder <strong>Y</strong> noch <strong>N</strong> f&uuml;r &#39;WARN_NO_PASS&#39; &uuml;bergeben.",
        'INSTALLER_FIELD_FAILED_WRITE_FOOTER' => "Es wurde weder <strong>Y</strong> noch <strong>N</strong> f&uuml;r &#39;WRITE_FOOTER&#39; &uuml;bergeben.",
        'INSTALLER_FIELD_FAILED_ENABLE_BACKLINK' => "Es wurde weder <strong>Y</strong> noch <strong>N</strong> f&uuml;r &#39;ENABLE_BACKLINK&#39; &uuml;bergeben.",
        'INSTALLER_FIELD_FAILED_WARN_NO_PASS' => "Es wurde weder <strong>Y</strong> noch <strong>N</strong> f&uuml;r &#39;WARN_NO_PASS&#39; &uuml;bergeben.",
        'INSTALLER_FIELD_FAILED_WRITE_FOOTER' => "Es wurde weder <strong>Y</strong> noch <strong>N</strong> f&uuml;r &#39;WRITE_FOOTER&#39; &uuml;bergeben.",
        'INSTALLER_FIELD_FAILED_ENABLE_BACKLINK' => "Es wurde weder <strong>Y</strong> noch <strong>N</strong> f&uuml;r &#39;ENABLE_BACKLINK&#39; &uuml;bergeben.",
+
+       // Other notices
+       'INSTALLER_EXTENSIONS_NOTICE' => "Sie wollten mindestens <strong>ext-sql_patches</strong> und zur besseren &Uuml;bersicht im Adminbereich <strong>ext-task</strong> installieren. Sie k&ouml;nnen nach der Installation jederzeit weitere Erweiterungen hinzuinstallieren und brauchen dazu nicht das gesamte Script neu aufsetzen.",
 ));
 
 // [EOF]
 ));
 
 // [EOF]
index beac76adc46fb8ca33bfba07566cf27db22dba00..1e85afc09005cbc875df914a2e4c4814c90966f8 100644 (file)
@@ -194,17 +194,17 @@ function adminsChangeAdminAccount ($postData, $element = '', $displayMessage = T
 
                        // Admin account saved
                        $message = '{--ADMIN_ACCOUNT_SAVED--}';
 
                        // Admin account saved
                        $message = '{--ADMIN_ACCOUNT_SAVED--}';
-               } elseif ((!empty($postData['pass1'])) && (!empty($postData['pass2']))) {
+               } elseif ((!empty($postData['password1'])) && (!empty($postData['password2']))) {
                        // Update only if both passwords match
                        // Update only if both passwords match
-                       if (($postData['pass1'][$id] == $postData['pass2'][$id])) {
+                       if (($postData['password1'][$id] == $postData['password2'][$id])) {
                                // Save only when both passwords are the same (also when they are empty)
                                $add = ''; $cache_update = 1;
 
                                // Generate hash
                                // Save only when both passwords are the same (also when they are empty)
                                $add = ''; $cache_update = 1;
 
                                // Generate hash
-                               $hash = generateHash($postData['pass1'][$id]);
+                               $hash = generateHash($postData['password1'][$id]);
 
                                // Save password when set
 
                                // Save password when set
-                               if (!empty($postData['pass1'][$id])) {
+                               if (!empty($postData['password1'][$id])) {
                                        $add = sprintf(",`password`='%s'", SQL_ESCAPE($hash));
                                } // END - if
 
                                        $add = sprintf(",`password`='%s'", SQL_ESCAPE($hash));
                                } // END - if
 
@@ -225,7 +225,7 @@ function adminsChangeAdminAccount ($postData, $element = '', $displayMessage = T
                                                if (!empty($add)) {
                                                        setAdminMd5($hash);
                                                } // END - if
                                                if (!empty($add)) {
                                                        setAdminMd5($hash);
                                                } // END - if
-                                       } elseif (generateHash($postData['pass1'][$id], $salt) != getAdminMd5()) {
+                                       } elseif (generateHash($postData['password1'][$id], $salt) != getAdminMd5()) {
                                                // Update password cookie
                                                setAdminMd5($hash);
                                        }
                                                // Update password cookie
                                                setAdminMd5($hash);
                                        }
index 0b8f952157f535e8a1e5fea182c7d0e0a05a1aab..703a2a0759745e9318f4517c0a53eb116f0b1bcf 100644 (file)
@@ -187,19 +187,19 @@ function isRegistrationDataComplete () {
        setPostRequestArray($postArray);
 
        // Are both passwords zero length?
        setPostRequestArray($postArray);
 
        // Are both passwords zero length?
-       if ((strlen(postRequestElement('pass1')) == 0) && (strlen(postRequestElement('pass2')) == 0) && ($isOkay === TRUE)) {
+       if ((strlen(postRequestElement('password1')) == 0) && (strlen(postRequestElement('password2')) == 0) && ($isOkay === TRUE)) {
                // Is the extension 'register' newer or equal 0.5.5?
                if ((isExtensionInstalledAndNewer('register', '0.5.5')) && (isRegisterGeneratePasswordEmptyEnabled())) {
                        // Generate a random password
                        $randomPassword = generatePassword();
 
                        // Set it in both entries
                // Is the extension 'register' newer or equal 0.5.5?
                if ((isExtensionInstalledAndNewer('register', '0.5.5')) && (isRegisterGeneratePasswordEmptyEnabled())) {
                        // Generate a random password
                        $randomPassword = generatePassword();
 
                        // Set it in both entries
-                       setPostRequestElement('pass1', $randomPassword);
-                       setPostRequestElement('pass2', $randomPassword);
+                       setPostRequestElement('password1', $randomPassword);
+                       setPostRequestElement('password2', $randomPassword);
                } else {
                        // Not allowed or no recent extension version
                } else {
                        // Not allowed or no recent extension version
-                       setPostRequestElement('pass1', '!');
-                       setPostRequestElement('pass2', '!');
+                       setPostRequestElement('password1', '!');
+                       setPostRequestElement('password2', '!');
 
                        // ... which is both not okay
                        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Random password generation not possible, isExtensionInstalledAndNewer(register, 0.5.5)=' . intval(isExtensionInstalledAndNewer('register', '0.5.5')) . ',isRegisterGeneratePasswordEmptyEnabled()=' . intval(isRegisterGeneratePasswordEmptyEnabled()));
 
                        // ... which is both not okay
                        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Random password generation not possible, isExtensionInstalledAndNewer(register, 0.5.5)=' . intval(isExtensionInstalledAndNewer('register', '0.5.5')) . ',isRegisterGeneratePasswordEmptyEnabled()=' . intval(isRegisterGeneratePasswordEmptyEnabled()));
@@ -208,35 +208,35 @@ function isRegistrationDataComplete () {
        } // END - if
 
        // Did he enter his password twice?
        } // END - if
 
        // Did he enter his password twice?
-       if (((!isPostRequestElementSet('pass1')) || (!isPostRequestElementSet('pass2'))) || ((postRequestElement('pass1') != postRequestElement('pass2')) && (isPostRequestElementSet('pass1')) && (isPostRequestElementSet('pass2')))) {
-               if ((postRequestElement('pass1') != postRequestElement('pass2')) && (isPostRequestElementSet('pass1')) && (isPostRequestElementSet('pass2'))) {
+       if (((!isPostRequestElementSet('password1')) || (!isPostRequestElementSet('password2'))) || ((postRequestElement('password1') != postRequestElement('password2')) && (isPostRequestElementSet('password1')) && (isPostRequestElementSet('password2')))) {
+               if ((postRequestElement('password1') != postRequestElement('password2')) && (isPostRequestElementSet('password1')) && (isPostRequestElementSet('password2'))) {
                        // Both passwords did not match
                        // Both passwords did not match
-                       setPostRequestElement('pass1', '!');
-                       setPostRequestElement('pass2', '!');
+                       setPostRequestElement('password1', '!');
+                       setPostRequestElement('password2', '!');
                        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'User did not enter same passwords.');
                } else {
                        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'User did not enter same passwords.');
                } else {
-                       if (!isPostRequestElementSet('pass1')) {
+                       if (!isPostRequestElementSet('password1')) {
                                // Password 1 is empty
                                // Password 1 is empty
-                               setPostRequestElement('pass1', '!');
-                               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'User did not enter pass1.');
+                               setPostRequestElement('password1', '!');
+                               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'User did not enter password1.');
                        } else {
                                // Password 2 is empty
                        } else {
                                // Password 2 is empty
-                               setPostRequestElement('pass1', '');
+                               setPostRequestElement('password1', '');
                        }
                        }
-                       if (!isPostRequestElementSet('pass2')) {
+                       if (!isPostRequestElementSet('password2')) {
                                // Password 2 is empty
                                // Password 2 is empty
-                               setPostRequestElement('pass2', '!');
-                               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'User did not enter pass2.');
+                               setPostRequestElement('password2', '!');
+                               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'User did not enter password2.');
                        } else {
                                // Password 1 is empty
                        } else {
                                // Password 1 is empty
-                               setPostRequestElement('pass2', '');
+                               setPostRequestElement('password2', '');
                        }
                }
                $isOkay = FALSE;
        } // END - if
 
        // Is the password long enouth?
                        }
                }
                $isOkay = FALSE;
        } // END - if
 
        // Is the password long enouth?
-       if ((strlen(postRequestElement('pass1')) < getPassLen()) && ($isOkay === TRUE)) {
+       if ((strlen(postRequestElement('password1')) < getPassLen()) && ($isOkay === TRUE)) {
                $GLOBALS['registration_short_password'] = TRUE;
                //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'User did enter a short password.');
                $isOkay = FALSE;
                $GLOBALS['registration_short_password'] = TRUE;
                //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'User did enter a short password.');
                $isOkay = FALSE;
@@ -372,7 +372,7 @@ function doUserRegistration () {
                bigintval(postRequestElement('day')),
                bigintval(postRequestElement('month')),
                bigintval(postRequestElement('year')),
                bigintval(postRequestElement('day')),
                bigintval(postRequestElement('month')),
                bigintval(postRequestElement('year')),
-               generateHash(postRequestElement('pass1')),
+               generateHash(postRequestElement('password1')),
                bigintval(postRequestElement('max_mails')),
                bigintval(postRequestElement('max_mails')),
                convertZeroToNull(postRequestElement('refid')),
                bigintval(postRequestElement('max_mails')),
                bigintval(postRequestElement('max_mails')),
                convertZeroToNull(postRequestElement('refid')),
@@ -457,7 +457,7 @@ function doUserRegistration () {
                        'zip'      => bigintval(postRequestElement('zip')),
                        'country'  => $GLOBALS['register_country_data'],
                        'refid'    => SQL_ESCAPE(postRequestElement('refid')),
                        'zip'      => bigintval(postRequestElement('zip')),
                        'country'  => $GLOBALS['register_country_data'],
                        'refid'    => SQL_ESCAPE(postRequestElement('refid')),
-                       'password' => SQL_ESCAPE(postRequestElement('pass1')),
+                       'password' => SQL_ESCAPE(postRequestElement('password1')),
                );
        } else {
                // No ZIP code entered
                );
        } else {
                // No ZIP code entered
@@ -473,7 +473,7 @@ function doUserRegistration () {
                        'zip'      => '',
                        'country'  => $GLOBALS['register_country_data'],
                        'refid'    => SQL_ESCAPE(postRequestElement('refid')),
                        'zip'      => '',
                        'country'  => $GLOBALS['register_country_data'],
                        'refid'    => SQL_ESCAPE(postRequestElement('refid')),
-                       'password' => SQL_ESCAPE(postRequestElement('pass1')),
+                       'password' => SQL_ESCAPE(postRequestElement('password1')),
                );
        }
 
                );
        }
 
index e73036ca9bd4f7f778532ca63345cf31dce22297..10002eea7120000cc4ee52f429653b2919b17459 100644 (file)
@@ -181,7 +181,7 @@ if (!isset($_POST)) {
 // Generate arrays which holds the relevante chars to replace
 $GLOBALS['security_chars'] = array(
        // The chars we are looking for...
 // Generate arrays which holds the relevante chars to replace
 $GLOBALS['security_chars'] = array(
        // The chars we are looking for...
-       'from' => array('/', '.', chr(39), '$', '(', ')', '{--', '--}', '{?', '?}', '%', ';', '[', ']', ':', '--', chr(92), chr(39)),
+       'from' => array('/', '.', chr(39), '$', '(', ')', '{--', '--}', '{?', '?}', '%', ';', '[', ']', ':', '--', chr(92), chr(39), '<', '>'),
        // ... and we will replace to.
        'to'   => array(
                '{SLASH}',
        // ... and we will replace to.
        'to'   => array(
                '{SLASH}',
@@ -201,7 +201,9 @@ $GLOBALS['security_chars'] = array(
                '{DBL_DOT}',
                '{COMMENT}',
                '{BACKSLASH}',
                '{DBL_DOT}',
                '{COMMENT}',
                '{BACKSLASH}',
-               '{SQUOTE}'
+               '{SQUOTE}',
+               '{OPEN_TAG}',
+               '{CLOSE_TAG}'
        ),
 );
 
        ),
 );
 
index b60e222682f0fbf7eb3c80e2ff23a0aeb0a9e961..36bb1a990bc40bec87d4f4729b62d637fe2a8725 100644 (file)
@@ -92,11 +92,11 @@ function handleSponsorRequest ($postData, $update=false, $messageArray = array()
                                                }
                                                break;
 
                                                }
                                                break;
 
-                                       case 'pass1':
+                                       case 'password1':
                                                $k = ''; $v = '';
                                                break;
 
                                                $k = ''; $v = '';
                                                break;
 
-                                       case 'pass2':
+                                       case 'password2':
                                                $k = 'password'; $v = md5($v);
                                                break;
 
                                                $k = 'password'; $v = md5($v);
                                                break;
 
@@ -390,17 +390,17 @@ function saveSponsorData ($postData, $content) {
        // Unsecure data which we don't want
        $UNSAFE = array('password', 'id', 'remote_addr', 'sponsor_created', 'last_online', 'status', 'ref_count',
                        'points_amount', 'points_used', 'refid', 'hash', 'last_payment', 'last_currency',
        // Unsecure data which we don't want
        $UNSAFE = array('password', 'id', 'remote_addr', 'sponsor_created', 'last_online', 'status', 'ref_count',
                        'points_amount', 'points_used', 'refid', 'hash', 'last_payment', 'last_currency',
-                       'pass_old', 'ok', 'pass1', 'pass2');
+                       'pass_old', 'ok', 'password1', 'password2');
 
        // Set default message ("not saved")
        $message = '{--SPONSOR_ACCOUNT_DATA_NOT_SAVED--}';
 
        // Check for submitted passwords
 
        // Set default message ("not saved")
        $message = '{--SPONSOR_ACCOUNT_DATA_NOT_SAVED--}';
 
        // Check for submitted passwords
-       if ((!empty($postData['pass1'])) && (!empty($postData['pass2']))) {
+       if ((!empty($postData['password1'])) && (!empty($postData['password2']))) {
                // Are both passwords the same?
                // Are both passwords the same?
-               if ($postData['pass1'] == $postData['pass2']) {
-                       // Okay, then set password and remove pass1 and pass2
-                       $postData['password'] = md5($postData['pass1']);
+               if ($postData['password1'] == $postData['password2']) {
+                       // Okay, then set password and remove password1 and password2
+                       $postData['password'] = md5($postData['password1']);
                } // END - if
        } // END - if
 
                } // END - if
        } // END - if
 
@@ -584,7 +584,7 @@ function doProcessSponsorFormRequest ($messageArray = array()) {
                                $content['surname']   = postRequestElement('surname');
                                $content['family']    = postRequestElement('family');
                                $content['timestamp'] = generateDateTime(time(), 0);
                                $content['surname']   = postRequestElement('surname');
                                $content['family']    = postRequestElement('family');
                                $content['timestamp'] = generateDateTime(time(), 0);
-                               $content['password']  = postRequestElement('pass1');
+                               $content['password']  = postRequestElement('password1');
 
                                // Generate email and send it to the new sponsor
                                $message = loadEmailTemplate('sponsor_confirm', $content, $id);
 
                                // Generate email and send it to the new sponsor
                                $message = loadEmailTemplate('sponsor_confirm', $content, $id);
index 9fdd7d36ff8ae6b5d269b165be88557a408376e8..fd44d136dcd5b434a32e50cd2850709622ee97b3 100644 (file)
@@ -388,9 +388,9 @@ function ifModuleHasMenu ($module, $forceDb = FALSE) {
        } elseif (!isExtensionInstalled('sql_patches')) {
                // No ext-sql_patches installed, so maybe in admin/guest/member/sponsor area or no admin registered?
                $ret = in_array($module, array('admin', 'index', 'login', 'sponsor')); // Then there is a menu!
        } elseif (!isExtensionInstalled('sql_patches')) {
                // No ext-sql_patches installed, so maybe in admin/guest/member/sponsor area or no admin registered?
                $ret = in_array($module, array('admin', 'index', 'login', 'sponsor')); // Then there is a menu!
-       } else {
-               // Unsupported state!
-               logDebugMessage(__FUNCTION__, __LINE__, 'This should never be reached.');
+       } elseif (!isInstallationPhase()) {
+               // Unsupported state, but ignored in installation phase
+               logDebugMessage(__FUNCTION__, __LINE__, 'This should never be reached, module[' . gettype($module) . ']=' . $module . ',forceDb=' . intval($forceDb));
        }
 
        // Return status
        }
 
        // Return status
index 080748f72a09db62a71894e8511ad23c494a0703..b67226cf919c390c400382aa71fceef7cf68fb4a 100644 (file)
@@ -79,11 +79,11 @@ if (!isAdminRegistered()) {
                        // Cannot validate the login data and hash
                        displayMessage('{--ADMIN_VALIDATION_RESET_LOGIN_HASH_FAILED--}');
                }
                        // Cannot validate the login data and hash
                        displayMessage('{--ADMIN_VALIDATION_RESET_LOGIN_HASH_FAILED--}');
                }
-       } elseif ((isPostRequestElementSet('reset_pass')) && (isPostRequestElementSet('hash')) && (isPostRequestElementSet('admin_login')) && (isPostRequestElementSet('admin_pass1')) && (postRequestElement('admin_pass1') == postRequestElement('admin_pass2'))) {
+       } elseif ((isPostRequestElementSet('reset_pass')) && (isPostRequestElementSet('hash')) && (isPostRequestElementSet('admin_login')) && (isPostRequestElementSet('admin_password1')) && (postRequestElement('admin_password1') == postRequestElement('admin_password2'))) {
                // Okay, we shall the admin password here. So first revalidate the hash
                if (adminResetValidateHashLogin(postRequestElement('hash'), postRequestElement('admin_login'))) {
                        // Output result
                // Okay, we shall the admin password here. So first revalidate the hash
                if (adminResetValidateHashLogin(postRequestElement('hash'), postRequestElement('admin_login'))) {
                        // Output result
-                       loadTemplate('admin_reset_password_done', FALSE, doResetAdminPassword(postRequestElement('admin_login'), postRequestElement('admin_pass1')));
+                       loadTemplate('admin_reset_password_done', FALSE, doResetAdminPassword(postRequestElement('admin_login'), postRequestElement('admin_password1')));
                } else {
                        // Validation failed
                        displayMessage('{--ADMIN_VALIDATION_RESET_LOGIN_HASH_FAILED2--}');
                } else {
                        // Validation failed
                        displayMessage('{--ADMIN_VALIDATION_RESET_LOGIN_HASH_FAILED2--}');
index 67e137654726bdc04ba7fc90c8e64d01d3190bf3..c9f941dbd568b1277a4b9b82d658bb71d375b5f3 100644 (file)
@@ -1594,16 +1594,18 @@ function registerFirstAdmin () {
        assert(!isAdminRegistered());
 
        // Admin is not registered so we have to inform the user
        assert(!isAdminRegistered());
 
        // Admin is not registered so we have to inform the user
-       if ((isFormSent('add_first_admin')) && ((!isPostRequestElementSet('admin_login')) || (!isPostRequestElementSet('admin_pass1')) || (strlen(postRequestElement('admin_pass1')) < getConfig('minium_admin_pass_length')) || (!isPostRequestElementSet('admin_pass2')) || (strlen(postRequestElement('admin_pass2')) < getConfig('minium_admin_pass_length')) || (postRequestElement('admin_pass1') != postRequestElement('admin_pass2')))) {
+       if ((isFormSent('add_first_admin')) && ((!isPostRequestElementSet('admin_login')) || (!isPostRequestElementSet('admin_password1')) || (strlen(postRequestElement('admin_password1')) < getConfig('minium_admin_pass_length')) || (!isPostRequestElementSet('admin_password2')) || (strlen(postRequestElement('admin_password2')) < getConfig('minium_admin_pass_length')) || (postRequestElement('admin_password1') != postRequestElement('admin_password2')))) {
                setPostRequestElement('add_first_admin', '***');
        } // END - if
 
        // Clear error message
        $errorMessage = '';
                setPostRequestElement('add_first_admin', '***');
        } // END - if
 
        // Clear error message
        $errorMessage = '';
+       $ret = 'init';
 
 
+       // Is form for first admin sent?
        if ((isFormSent('add_first_admin')) && (postRequestElement('add_first_admin') != '***')) {
                // Hash the password with the old function because we are here in install mode
        if ((isFormSent('add_first_admin')) && (postRequestElement('add_first_admin') != '***')) {
                // Hash the password with the old function because we are here in install mode
-               $hashedPass = md5(postRequestElement('admin_pass1'));
+               $hashedPass = md5(postRequestElement('admin_password1'));
 
                // Kill maybe existing session variables
                destroyAdminSession();
 
                // Kill maybe existing session variables
                destroyAdminSession();
@@ -1665,16 +1667,16 @@ function registerFirstAdmin () {
 
                // Init array elements
                $content['login_message'] = '';
 
                // Init array elements
                $content['login_message'] = '';
-               $content['pass1_message'] = '';
-               $content['pass2_message'] = '';
+               $content['password1_message'] = '';
+               $content['password2_message'] = '';
                $content['error_message'] = '';
 
                // Yet-another notice-fix
                if ((isFormSent('add_first_admin')) && (postRequestElement('add_first_admin') == '***')) {
                        // Init variables
                        $loginMessage = '';
                $content['error_message'] = '';
 
                // Yet-another notice-fix
                if ((isFormSent('add_first_admin')) && (postRequestElement('add_first_admin') == '***')) {
                        // Init variables
                        $loginMessage = '';
-                       $pass1Message = '';
-                       $pass2Message = '';
+                       $password1Message = '';
+                       $password2Message = '';
 
                        // No login entered?
                        if (empty($content['admin_login'])) {
 
                        // No login entered?
                        if (empty($content['admin_login'])) {
@@ -1687,30 +1689,30 @@ function registerFirstAdmin () {
                        } // END - if
 
                        // No password 1 entered or to short?
                        } // END - if
 
                        // No password 1 entered or to short?
-                       if (!isPostRequestElementSet('admin_pass1')) {
-                               $pass1Message = '{--ADMIN_NO_PASSWORD1--}';
-                       } elseif (strlen(postRequestElement('admin_pass1')) < getConfig('minium_admin_pass_length')) {
-                               $pass1Message = '{--ADMIN_SHORT_PASSWORD1--}';
+                       if (!isPostRequestElementSet('admin_password1')) {
+                               $password1Message = '{--ADMIN_NO_PASSWORD1--}';
+                       } elseif (strlen(postRequestElement('admin_password1')) < getConfig('minium_admin_pass_length')) {
+                               $password1Message = '{--ADMIN_SHORT_PASSWORD1--}';
                        }
 
                        // No password 2 entered or to short?
                        }
 
                        // No password 2 entered or to short?
-                       if (!isPostRequestElementSet('admin_pass2')) {
-                               $pass2Message = '{--ADMIN_NO_PASSWORD2--}';
-                       } elseif (strlen(postRequestElement('admin_pass2')) < getConfig('minium_admin_pass_length')) {
-                               $pass2Message = '{--ADMIN_SHORT_PASSWORD2--}';
+                       if (!isPostRequestElementSet('admin_password2')) {
+                               $password2Message = '{--ADMIN_NO_PASSWORD2--}';
+                       } elseif (strlen(postRequestElement('admin_password2')) < getConfig('minium_admin_pass_length')) {
+                               $password2Message = '{--ADMIN_SHORT_PASSWORD2--}';
                        }
 
                        // Both didn't match?
                        }
 
                        // Both didn't match?
-                       if (postRequestElement('admin_pass1') != postRequestElement('admin_pass2')) {
+                       if (postRequestElement('admin_password1') != postRequestElement('admin_password2')) {
                                // No match
                                // No match
-                               if (empty($pass1Message)) $pass1Message = '{--ADMIN_PASSWORD1_MISMATCH--}';
-                               if (empty($pass2Message)) $pass2Message = '{--ADMIN_PASSWORD2_MISMATCH--}';
+                               if (empty($password1Message)) $password1Message = '{--ADMIN_PASSWORD1_MISMATCH--}';
+                               if (empty($password2Message)) $password2Message = '{--ADMIN_PASSWORD2_MISMATCH--}';
                        } // END - if
 
                        // Output error messages
                        $content['login_message'] = loadTemplate('admin_login_msg', TRUE, $loginMessage);
                        } // END - if
 
                        // Output error messages
                        $content['login_message'] = loadTemplate('admin_login_msg', TRUE, $loginMessage);
-                       $content['pass1_message'] = loadTemplate('admin_login_msg', TRUE, $pass1Message);
-                       $content['pass2_message'] = loadTemplate('admin_login_msg', TRUE, $pass2Message);
+                       $content['password1_message'] = loadTemplate('admin_login_msg', TRUE, $password1Message);
+                       $content['password2_message'] = loadTemplate('admin_login_msg', TRUE, $password2Message);
                        $content['error_message'] = loadTemplate('admin_login_msg', TRUE, $errorMessage);
                } // END - if
 
                        $content['error_message'] = loadTemplate('admin_login_msg', TRUE, $errorMessage);
                } // END - if
 
index eb146645f2a4c0bf54f91ab49c0a089ab32d75ae..0b5d3932fb36641afba408e3098b9f75aa457de2 100644 (file)
@@ -49,9 +49,9 @@ $FORM = TRUE;
 // Is the form sent?
 if (isFormSent('add')) {
        // Check all
 // Is the form sent?
 if (isFormSent('add')) {
        // Check all
-       if ((isPostRequestElementSet('login')) && (isPostRequestElementSet('email')) && (isPostRequestElementSet('pass1')) && (isPostRequestElementSet('pass2')) && (postRequestElement('pass1') == postRequestElement('pass2'))) {
+       if ((isPostRequestElementSet('login')) && (isPostRequestElementSet('email')) && (isPostRequestElementSet('password1')) && (isPostRequestElementSet('password2')) && (postRequestElement('password1') == postRequestElement('password2'))) {
                // Add admin when not added already
                // Add admin when not added already
-               if (addAdminAccount(postRequestElement('login'), generateHash(postRequestElement('pass1')), postRequestElement('email')) == 'done') {
+               if (addAdminAccount(postRequestElement('login'), generateHash(postRequestElement('password1')), postRequestElement('email')) == 'done') {
                        // Do not ouput any form!
                        $FORM = FALSE;
 
                        // Do not ouput any form!
                        $FORM = FALSE;
 
index cf61c57c5851a020b3a590c50d29b32d2fdd7249..c377966e43b41486ec5d54d47a06067425a6e095 100644 (file)
@@ -120,10 +120,10 @@ LIMIT 1",
 
                                case 'edit': // Edit sponsor account
                                        $PASS = TRUE;
 
                                case 'edit': // Edit sponsor account
                                        $PASS = TRUE;
-                                       if ((postRequestElement('pass1') != postRequestElement('pass2')) || ((!isPostRequestElementSet('pass1')) && (!isPostRequestElementSet('pass1')))) {
+                                       if ((postRequestElement('password1') != postRequestElement('password2')) || ((!isPostRequestElementSet('password1')) && (!isPostRequestElementSet('password1')))) {
                                                // Remove passwords
                                                // Remove passwords
-                                               unsetPostRequestElement('pass1');
-                                               unsetPostRequestElement('pass2');
+                                               unsetPostRequestElement('password1');
+                                               unsetPostRequestElement('password2');
                                                $PASS = FALSE;
                                        } // END - if
 
                                                $PASS = FALSE;
                                        } // END - if
 
@@ -137,7 +137,7 @@ LIMIT 1",
                                        postRequestElement('gender'          , '{%pipe,translateGender=' . postRequestElement('gender') . '%}');
                                        postRequestElement('warning_interval', '{%pipe,createFancyTime=' . postRequestElement('warning_interval') . '%}');
 
                                        postRequestElement('gender'          , '{%pipe,translateGender=' . postRequestElement('gender') . '%}');
                                        postRequestElement('warning_interval', '{%pipe,createFancyTime=' . postRequestElement('warning_interval') . '%}');
 
-                                       if ($PASS === FALSE) setPostRequestElement('pass1', '{--SPONSOR_PASS_UNCHANGED--}');
+                                       if ($PASS === FALSE) setPostRequestElement('password1', '{--SPONSOR_PASS_UNCHANGED--}');
 
                                        // Load email template and send the mail away
                                        $message = loadEmailTemplate('admin_sponsor_edit', postRequestArray(), FALSE);
 
                                        // Load email template and send the mail away
                                        $message = loadEmailTemplate('admin_sponsor_edit', postRequestArray(), FALSE);
index a241477977f0a8bc24efae224ca7a2434bd43b6a..05602f4958319f5baab6f956ad9473d21455e97f 100644 (file)
@@ -72,13 +72,13 @@ if ((!isGetRequestElementSet('userid')) || (SQL_NUMROWS($result_main) == 1)) {
        } elseif (isFormSent('edit')) {
                // Ok, change the account...
                $updateUser = FALSE; $add = '';
        } elseif (isFormSent('edit')) {
                // Ok, change the account...
                $updateUser = FALSE; $add = '';
-               if ((!isPostRequestElementSet('pass1')) && (!isPostRequestElementSet('pass2'))) {
+               if ((!isPostRequestElementSet('password1')) && (!isPostRequestElementSet('password2'))) {
                        // Don't change the password
                        $updateUser = TRUE;
                        // Don't change the password
                        $updateUser = TRUE;
-               } elseif ((postRequestElement('pass1') == postRequestElement('pass2'))) {
+               } elseif ((postRequestElement('password1') == postRequestElement('password2'))) {
                        // Change the password
                        $updateUser = TRUE;
                        // Change the password
                        $updateUser = TRUE;
-                       $add = ",`password`='" . generateHash(postRequestElement('pass1')) . "'";
+                       $add = ",`password`='" . generateHash(postRequestElement('password1')) . "'";
                }
 
                if ($updateUser === TRUE) {
                }
 
                if ($updateUser === TRUE) {
index 2023adb92c5aad67e2aa21fe3d6e73cf0565bf28..57bf8b9b5ce54b0e9604adcd163508039d32a07e 100644 (file)
@@ -44,16 +44,7 @@ if (!defined('__SECURITY')) {
 addYouAreHereLink('guest', __FILE__);
 
 // Get all extension files
 addYouAreHereLink('guest', __FILE__);
 
 // Get all extension files
-$extensions = getArrayFromDirectory(
-       'templates/' . getLanguage() . '/html/ext/',
-       'ext_',
-       false,
-       false,
-       array(),
-       '.tpl',
-       '@(\.|\.\.)$@',
-       false
-);
+$extensions = loadAllExtensionsByTemplate();
 
 // Now iterate through all and load that template file
 $OUT = '';
 
 // Now iterate through all and load that template file
 $OUT = '';
index 96b3265873f1e05e0cd13a89b76b2de608fb4d26..2036b9f7e1e33713246aee87b0f2d5eb1464a5c4 100644 (file)
@@ -84,11 +84,11 @@ if ((isFormSent()) && (isRegistrationDataComplete())) {
                        setPostRequestElement('family', '');
                } // END - if
 
                        setPostRequestElement('family', '');
                } // END - if
 
-               if ((postRequestElement('pass1') == '!') && (postRequestElement('pass2') == '!')) {
+               if ((postRequestElement('password1') == '!') && (postRequestElement('password2') == '!')) {
                        registerOutputFailedMessage('ENTER_BOTH_PASSWORDS');
                        registerOutputFailedMessage('ENTER_BOTH_PASSWORDS');
-               } elseif (postRequestElement('pass1') == '!') {
+               } elseif (postRequestElement('password1') == '!') {
                        registerOutputFailedMessage('ENTER_PASSWORD1');
                        registerOutputFailedMessage('ENTER_PASSWORD1');
-               } elseif (postRequestElement('pass2') == '!') {
+               } elseif (postRequestElement('password2') == '!') {
                        registerOutputFailedMessage('ENTER_PASSWORD2');
                }
 
                        registerOutputFailedMessage('ENTER_PASSWORD2');
                }
 
index 80fee158f55fc79ecc2aa44504a65823a242bee5..8a19eb5607ad1e9e5b2f66d2e9138b4ab55ea45c 100644 (file)
@@ -167,22 +167,22 @@ if (isFormSent()) {
        } // END - if
 
        // Did he enter his password twice?
        } // END - if
 
        // Did he enter his password twice?
-       if (((!isPostRequestElementSet('pass1')) || (!isPostRequestElementSet('pass2'))) || ((postRequestElement('pass1') != postRequestElement('pass2')) && (isPostRequestElementSet('pass1')) && (isPostRequestElementSet('pass2')))) {
-               if ((postRequestElement('pass1') != postRequestElement('pass2')) && (isPostRequestElementSet('pass1')) && (isPostRequestElementSet('pass2'))) {
+       if (((!isPostRequestElementSet('password1')) || (!isPostRequestElementSet('password2'))) || ((postRequestElement('password1') != postRequestElement('password2')) && (isPostRequestElementSet('password1')) && (isPostRequestElementSet('password2')))) {
+               if ((postRequestElement('password1') != postRequestElement('password2')) && (isPostRequestElementSet('password1')) && (isPostRequestElementSet('password2'))) {
                        // Passwords missmatch
                        array_push($formErrors, '{--SPONSOR_PASSWORDS_MISMATCH--}');
                } else {
                        // Passwords missmatch
                        array_push($formErrors, '{--SPONSOR_PASSWORDS_MISMATCH--}');
                } else {
-                       if (!isPostRequestElementSet('pass1')) {
+                       if (!isPostRequestElementSet('password1')) {
                                // Password 1 is empty
                                array_push($formErrors, '{--SPONSOR_PASSWORD1_EMPTY--}');
                        }
 
                                // Password 1 is empty
                                array_push($formErrors, '{--SPONSOR_PASSWORD1_EMPTY--}');
                        }
 
-                       if (!isPostRequestElementSet('pass2')) {
+                       if (!isPostRequestElementSet('password2')) {
                                // Password 2 is empty
                                array_push($formErrors, '{--SPONSOR_PASSWORD2_EMPTY--}');
                        }
                }
                                // Password 2 is empty
                                array_push($formErrors, '{--SPONSOR_PASSWORD2_EMPTY--}');
                        }
                }
-       } elseif (strlen(postRequestElement('pass1')) < getPassLen()) {
+       } elseif (strlen(postRequestElement('password1')) < getPassLen()) {
                // Password is to short!
                array_push($formErrors, '{--SPONSOR_PASSWORD_TOO_SHORT--}');
        }
                // Password is to short!
                array_push($formErrors, '{--SPONSOR_PASSWORD_TOO_SHORT--}');
        }
index 168fcacc7f40176a60b9b22a48789d00a3929620..e8a69633e3fb6174a479f08ab466af00f109099c 100644 (file)
@@ -231,8 +231,8 @@ LIMIT 1",
                        displayMessage('{--MEMBER_EMAIL_IS_ALREADY_REGISTERED--}');
                } else {
                        // Generate hash
                        displayMessage('{--MEMBER_EMAIL_IS_ALREADY_REGISTERED--}');
                } else {
                        // Generate hash
-                       $hash = generateHash(postRequestElement('pass1'), substr($content['password'], 0, -40));
-                       if ((($hash == $content['password']) || (postRequestElement('pass1') == postRequestElement('pass2'))) && (isPostRequestElementSet('pass1'))) {
+                       $hash = generateHash(postRequestElement('password1'), substr($content['password'], 0, -40));
+                       if ((($hash == $content['password']) || (postRequestElement('password1') == postRequestElement('password2'))) && (isPostRequestElementSet('password1'))) {
                                // Only on simple changes normal mode is active = no email or password changed
                                $mode = 'normal';
                                $AND = '';
                                // Only on simple changes normal mode is active = no email or password changed
                                $mode = 'normal';
                                $AND = '';
index 9be23f33a8d56e66acb93782f83b233ca4563b6f..167c65eeb1e1bb3620962bc5f6342c0b5357613e 100644 (file)
@@ -78,16 +78,16 @@ if (SQL_NUMROWS($result) == 1) {
                        } elseif (md5(postRequestElement('pass_old')) != getSession('sponsorpass')) {
                                // Entered password didn't match password in DB
                                $message = '{--SPONSOR_CURRENT_PASSWORD_DIDNOT_MATCH_DB--}';
                        } elseif (md5(postRequestElement('pass_old')) != getSession('sponsorpass')) {
                                // Entered password didn't match password in DB
                                $message = '{--SPONSOR_CURRENT_PASSWORD_DIDNOT_MATCH_DB--}';
-                       } elseif ((isPostRequestElementSet('pass1')) && (isPostRequestElementSet('pass2')) && (postRequestElement('pass1') != postRequestElement('pass2'))) {
+                       } elseif ((isPostRequestElementSet('password1')) && (isPostRequestElementSet('password2')) && (postRequestElement('password1') != postRequestElement('password2'))) {
                                // Both new passwords did not match
                                $message = '{--SPONSOR_BOTH_NEW_PASSWORDS_DIDNOT_MATCH--}';
                                // Both new passwords did not match
                                $message = '{--SPONSOR_BOTH_NEW_PASSWORDS_DIDNOT_MATCH--}';
-                       } elseif ((!isPostRequestElementSet('pass1')) && (isPostRequestElementSet('pass2'))) {
+                       } elseif ((!isPostRequestElementSet('password1')) && (isPostRequestElementSet('password2'))) {
                                // No password one entered
                                $message = '{--SPONSOR_PASSWORD_ONE_EMPTY--}';
                                // No password one entered
                                $message = '{--SPONSOR_PASSWORD_ONE_EMPTY--}';
-                       } elseif ((isPostRequestElementSet('pass1')) && (!isPostRequestElementSet('pass2'))) {
+                       } elseif ((isPostRequestElementSet('password1')) && (!isPostRequestElementSet('password2'))) {
                                // No password two entered
                                $message = '{--SPONSOR_PASSWORD_TWO_EMPTY--}';
                                // No password two entered
                                $message = '{--SPONSOR_PASSWORD_TWO_EMPTY--}';
-                       } elseif ((isPostRequestElementSet('pass1')) && (strlen(postRequestElement('pass1')) < getPassLen())) {
+                       } elseif ((isPostRequestElementSet('password1')) && (strlen(postRequestElement('password1')) < getPassLen())) {
                                // Too short password
                                $message = '{--SPONSOR_PASSWORD_TOO_SHORT--}';
                        } else {
                                // Too short password
                                $message = '{--SPONSOR_PASSWORD_TOO_SHORT--}';
                        } else {
@@ -95,10 +95,10 @@ if (SQL_NUMROWS($result) == 1) {
                                $PASS_AND = ''; $PASS_DATA = '';
 
                                // Check if the sponsor wants to change his/her password
                                $PASS_AND = ''; $PASS_DATA = '';
 
                                // Check if the sponsor wants to change his/her password
-                               if ((postRequestElement('pass1') == postRequestElement('pass2')) && (isPostRequestElementSet('pass1')) && (postRequestElement('pass1') != postRequestElement('pass_old'))) {
+                               if ((postRequestElement('password1') == postRequestElement('password2')) && (isPostRequestElementSet('password1')) && (postRequestElement('password1') != postRequestElement('pass_old'))) {
                                        // Change current password
                                        $PASS_AND  = ",`password`='%s'";
                                        // Change current password
                                        $PASS_AND  = ",`password`='%s'";
-                                       $PASS_DATA = md5(postRequestElement('pass1'));
+                                       $PASS_DATA = md5(postRequestElement('password1'));
                                } // END - if
 
                                // Unsecure data which we don't want here
                                } // END - if
 
                                // Unsecure data which we don't want here
index 00d4b9d9a510c870330a4c2b1293dafd1719c5b8..f53fc9115a00cd3c73838c308652d0e632793b28 100644 (file)
@@ -344,6 +344,10 @@ function loadTemplate ($template, $return = FALSE, $content = array(), $compileC
                                        // JavaScripts don't like entities, dollar signs and timings
                                        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Reached!');
                                        $GLOBALS['template_eval']['html'][$template] = '$ret = decodeEntities("' . compileRawCode(escapeJavaScriptQuotes($GLOBALS['template_content']['html'][$template]), FALSE, TRUE, TRUE, $compileCode) . '");';
                                        // JavaScripts don't like entities, dollar signs and timings
                                        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Reached!');
                                        $GLOBALS['template_eval']['html'][$template] = '$ret = decodeEntities("' . compileRawCode(escapeJavaScriptQuotes($GLOBALS['template_content']['html'][$template]), FALSE, TRUE, TRUE, $compileCode) . '");';
+                               } elseif (isAjaxOutputMode()) {
+                                       // AJAX (JSON content)
+                                       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Reached!');
+                                       $GLOBALS['template_eval']['html'][$template] = '$ret = "' . compileRawCode(escapeJavaScriptQuotes($GLOBALS['template_content']['html'][$template]), FALSE, TRUE, TRUE, $compileCode) . '";';
                                } else {
                                        // Prepare eval() command, other output doesn't like entities, maybe
                                        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Reached!');
                                } else {
                                        // Prepare eval() command, other output doesn't like entities, maybe
                                        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Reached!');
@@ -354,6 +358,10 @@ function loadTemplate ($template, $return = FALSE, $content = array(), $compileC
                                $ret = '<!-- Template ' . $template . ' - Start //-->' . $GLOBALS['template_content']['html'][$template] . '<!-- Template ' . $template . ' - End //-->';
                                //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Reached!');
                                $GLOBALS['template_eval']['html'][$template] = '$ret = "' . getColorSwitchCode($template) . compileRawCode(escapeQuotes($ret), FALSE, TRUE, TRUE, $compileCode) . '";';
                                $ret = '<!-- Template ' . $template . ' - Start //-->' . $GLOBALS['template_content']['html'][$template] . '<!-- Template ' . $template . ' - End //-->';
                                //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Reached!');
                                $GLOBALS['template_eval']['html'][$template] = '$ret = "' . getColorSwitchCode($template) . compileRawCode(escapeQuotes($ret), FALSE, TRUE, TRUE, $compileCode) . '";';
+                       } elseif (isAjaxOutputMode()) {
+                               // AJAX (JSON content)
+                               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Reached!');
+                               $GLOBALS['template_eval']['html'][$template] = '$ret = "' . compileRawCode(escapeJavaScriptQuotes($GLOBALS['template_content']['html'][$template]), FALSE, TRUE, TRUE, $compileCode) . '";';
                        } else {
                                // JavaScript again
                                //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Reached!');
                        } else {
                                // JavaScript again
                                //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Reached!');
@@ -506,6 +514,7 @@ function loadEmailTemplate ($template, $content = array(), $userid = NULL, $load
                        $GLOBALS['template_content']['email'][$template] = readFromFile($FQFN);
 
                        // Run code
                        $GLOBALS['template_content']['email'][$template] = readFromFile($FQFN);
 
                        // Run code
+                       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Reached!');
                        $GLOBALS['template_eval']['email'][$template] = '$newContent = decodeEntities("' . compileRawCode(escapeQuotes($GLOBALS['template_content']['email'][$template])) . '");';
                } elseif (!empty($template)) {
                        // Template file not found
                        $GLOBALS['template_eval']['email'][$template] = '$newContent = decodeEntities("' . compileRawCode(escapeQuotes($GLOBALS['template_content']['email'][$template])) . '");';
                } elseif (!empty($template)) {
                        // Template file not found
@@ -536,7 +545,7 @@ function loadEmailTemplate ($template, $content = array(), $userid = NULL, $load
        if ((isset($GLOBALS['template_eval']['email'][$template])) && ($GLOBALS['template_eval']['email'][$template] != '404')) {
                // Eval the code
                //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'template=' . $template . ' - BEFORE EVAL');
        if ((isset($GLOBALS['template_eval']['email'][$template])) && ($GLOBALS['template_eval']['email'][$template] != '404')) {
                // Eval the code
                //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'template=' . $template . ' - BEFORE EVAL');
-               ///* DEBUG: */ print('<pre>'.htmlentities($GLOBALS['template_eval']['email'][$template]).'</pre>');
+               //* DEBUG: */ print('<pre>'.htmlentities($GLOBALS['template_eval']['email'][$template]).'</pre>');
                eval($GLOBALS['template_eval']['email'][$template]);
                //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'template=' . $template . ' - AFTER EVAL');
        } // END - if
                eval($GLOBALS['template_eval']['email'][$template]);
                //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'template=' . $template . ' - AFTER EVAL');
        } // END - if
@@ -1693,7 +1702,7 @@ function sendModeMails ($mod, $modes) {
                $hash = encodeHashForCookie(getUserData('password'));
 
                // Does the hash match or should we change it?
                $hash = encodeHashForCookie(getUserData('password'));
 
                // Does the hash match or should we change it?
-               if (($hash == getSession('u_hash')) || (postRequestElement('pass1') == postRequestElement('pass2'))) {
+               if (($hash == getSession('u_hash')) || (postRequestElement('password1') == postRequestElement('password2'))) {
                        // Load the data
                        $content = getUserDataArray();
 
                        // Load the data
                        $content = getUserDataArray();
 
index 4324ae39c9ebfd4c9805e5c99424d868b8e44a5d..fe5834dcd714c9193771088455116752f3d19e7a 100644 (file)
@@ -326,7 +326,7 @@ function isInstalling () {
        // Determine whether we are installing
        if (!isset($GLOBALS['__mailer_installing'])) {
                // Check URL (css.php/js.php need this)
        // Determine whether we are installing
        if (!isset($GLOBALS['__mailer_installing'])) {
                // Check URL (css.php/js.php need this)
-               $GLOBALS['__mailer_installing'] = isGetRequestElementSet('installing');
+               $GLOBALS['__mailer_installing'] = (isGetRequestElementSet('installing') || ((isGetRequestElementSet('level')) && (getRequestElement('level') == 'install')));
        } // END - if
 
        // Return result
        } // END - if
 
        // Return result
@@ -3354,5 +3354,23 @@ function encodeJson ($data) {
        return json_encode($data, JSON_FORCE_OBJECT);
 }
 
        return json_encode($data, JSON_FORCE_OBJECT);
 }
 
+// Get all extension files
+function loadAllExtensionsByTemplate () {
+       // Get all
+       $extensions = getArrayFromDirectory(
+               'templates/' . getLanguage() . '/html/ext/',
+               'ext_',
+               false,
+               false,
+               array(),
+               '.tpl',
+               '@(\.|\.\.)$@',
+               false
+       );
+
+       // Return them
+       return $extensions;
+}
+
 // [EOF]
 ?>
 // [EOF]
 ?>
index ccef02a08a3608b479660f663b851db652bddcc2..3686444aed6a2cf21094a1f843d069078af2eaed 100644 (file)
@@ -31,6 +31,7 @@ var currentTabId       = null;
 var defaultTabId       = null;
 var footerElements     = new Array();
 var changedElements    = new Array();
 var defaultTabId       = null;
 var footerElements     = new Array();
 var changedElements    = new Array();
+var data               = new Array();
 var formChanged        = false;
 var saveChangesId      = null;
 var lastErrorMessage   = null;
 var formChanged        = false;
 var saveChangesId      = null;
 var lastErrorMessage   = null;
@@ -53,12 +54,15 @@ function isElementVisible (prefix, element) {
        var el = document.getElementById(prefix + '_' + element);
 
        // Is element set?
        var el = document.getElementById(prefix + '_' + element);
 
        // Is element set?
-       if (el == null || el == undefined) {
+       if ((el == null) || (el == undefined)) {
                throw new '"' + prefix + '_' + element + '" does not exist.';
                throw new '"' + prefix + '_' + element + '" does not exist.';
+       } else if ((el.style.display == undefined) || (el.style.display == '')) {
+               throw new '"' + prefix + '_' + element + '" has no style.display element.';
        }
 
        // Default is visible
        }
 
        // Default is visible
-       var isVisible = ((el.style.display == undefined) || ((el.style.display != 'none') && (el.style.display != '')));
+       var isVisible = (el.style.display != 'none');
+       //* DEBUG: */ alert(prefix + '_' + element + ':' + el.style.display + '=' + isVisible);
 
        // Return status
        return isVisible;
 
        // Return status
        return isVisible;
@@ -66,8 +70,8 @@ function isElementVisible (prefix, element) {
 
 // Marks a tab navigation entry
 function markTabNavigation (prefix, tab) {
 
 // Marks a tab navigation entry
 function markTabNavigation (prefix, tab) {
-       // Is process working?
-       if (isElementVisible(prefix, 'process')) {
+       // Is progress working?
+       if (isElementVisible(prefix, 'progress')) {
                // Then exit silently
                return;
        } // END - if
                // Then exit silently
                return;
        } // END - if
@@ -121,11 +125,15 @@ function disableElement (element) {
 
 // Enables a given footer navigation element
 function enableFooterNavigationPage (element) {
 
 // Enables a given footer navigation element
 function enableFooterNavigationPage (element) {
-       // Remove the 'disabled' class and attribute
+       // Is it 'finish'?
        if (element == 'finish') {
        if (element == 'finish') {
+               // Then without '_page' suffix
                enableElement('input#finish');
        } else {
                enableElement('input#finish');
        } else {
+               // Regular element with '_page' suffix
                enableElement('input#' + element + '_page');
                enableElement('input#' + element + '_page');
+
+               // Disable 'finish' element
                disableElement('input#finish');
        }
 }
                disableElement('input#finish');
        }
 }
@@ -134,22 +142,28 @@ function enableFooterNavigationPage (element) {
 function resetFooterNavigation () {
        // Remove the 'disabled' class and attribute
        for (var i = 0; i < footerElements.length; i++) {
 function resetFooterNavigation () {
        // Remove the 'disabled' class and attribute
        for (var i = 0; i < footerElements.length; i++) {
-               $('input#' + footerElements[i] + '_page').addClass('disabled');
-               $('input#' + footerElements[i] + '_page').attr('disabled', 'disabled');
-               $('input#' + footerElements[i] + '_page').blur();
+               disableElement('input#' + footerElements[i] + '_page');
        } // END - for
        } // END - for
+
+       // Disable this element
+       disableElement('input#finish');
 }
 
 // Getter for AJAX content
 function getAjaxContent () {
        // Is it defined?
 }
 
 // Getter for AJAX content
 function getAjaxContent () {
        // Is it defined?
-       if ($('body').data('ajax_content') == undefined) {
+       if (data['ajax_content'] == undefined) {
                // Not set
                throw new 'ajax_content requested but not set.';
        } // END - if
 
        // Return it
                // Not set
                throw new 'ajax_content requested but not set.';
        } // END - if
 
        // Return it
-       return $('body').data('ajax_content');
+       return data['ajax_content'];
+}
+
+// Setter for AJAX content
+function setAjaxContent (ajax_content) {
+       data['ajax_content'] = ajax_content;
 }
 
 // "Setter" for AJAX content but does decode the content
 }
 
 // "Setter" for AJAX content but does decode the content
@@ -161,24 +175,20 @@ function setAjaxDecodedContent (ajax_content) {
        setAjaxContent(decoded);
 }
 
        setAjaxContent(decoded);
 }
 
-// Setter for AJAX content
-function setAjaxContent (ajax_content) {
-       $('body').data('ajax_content', ajax_content);
-}
-
 // Getter for AJAX success
 function getAjaxSuccess () {
 // Getter for AJAX success
 function getAjaxSuccess () {
-       return $('body').data('ajax_success');
+       return data['ajax_success'];
 }
 
 // Setter for AJAX success
 function setAjaxSuccess (success) {
 }
 
 // Setter for AJAX success
 function setAjaxSuccess (success) {
-       $('body').data('ajax_success', success);
+       data['ajax_success'] = success;
 }
 
 // Set AJAX reply and decode JSON if requested
 function setAjaxReply (reply, isJson) {
        // Is it JSON URL-encoded content?
 }
 
 // Set AJAX reply and decode JSON if requested
 function setAjaxReply (reply, isJson) {
        // Is it JSON URL-encoded content?
+       //* DEBUG: */ alert('setAjaxReply(): reply=' + reply + ',isJson=' + isJson);
        if ((isJson != undefined) && (isJson == true)) {
                // Decode URL-encoding (for some reason it must be here ...)
                var localReply = decodeUrlEncoding(reply);
        if ((isJson != undefined) && (isJson == true)) {
                // Decode URL-encoding (for some reason it must be here ...)
                var localReply = decodeUrlEncoding(reply);
@@ -209,6 +219,7 @@ function sendAjaxRequest (level, doValue, extra, isJson) {
                data: 'level=' + level + '&do=' + doValue + extra,
                dataType: 'json',
                async: false,
                data: 'level=' + level + '&do=' + doValue + extra,
                dataType: 'json',
                async: false,
+               timeout: 10000,
 
                // Called on success
                success: function (ajax_content) {
 
                // Called on success
                success: function (ajax_content) {
@@ -261,13 +272,14 @@ function sendAjaxRequest (level, doValue, extra, isJson) {
        });
 
        // Return status
        });
 
        // Return status
+       //* DEBUG: */ alert(getAjaxSuccess() + ':' + level + ',' + doValue + ',' + extra + ',' + isJson);
        return getAjaxSuccess();
 }
 
 // Enables footer navigation buttons
 function enableFooterNavigation (prefix, tabId) {
        return getAjaxSuccess();
 }
 
 // Enables footer navigation buttons
 function enableFooterNavigation (prefix, tabId) {
-       // Is process working?
-       if (isElementVisible(prefix, 'process')) {
+       // Is progress working?
+       if (isElementVisible(prefix, 'progress')) {
                // Then exit silently
                return;
        } // END - if
                // Then exit silently
                return;
        } // END - if
@@ -290,8 +302,8 @@ function enableFooterNavigation (prefix, tabId) {
 
 // Requests an AJAX content
 function requestAjaxContent (prefix, htmlId, tabId, footerNavigation) {
 
 // Requests an AJAX content
 function requestAjaxContent (prefix, htmlId, tabId, footerNavigation) {
-       // Is process working?
-       if (isElementVisible(prefix, 'process')) {
+       // Is progress working?
+       if (isElementVisible(prefix, 'progress')) {
                // Then exit silently
                return;
        } // END - if
                // Then exit silently
                return;
        } // END - if
@@ -351,14 +363,14 @@ function displayTestWindow (prefix, element) {
        // Register click-event for error window
        $('#' + prefix + '_error_close').click(function () {
                // Close the window
        // Register click-event for error window
        $('#' + prefix + '_error_close').click(function () {
                // Close the window
-               closeErrorWindow(prefix);
+               closeErrorWindow(prefix, true, false);
        });
 
        // Register click-event for warning window
        $('#' + prefix + '_warning_close').click(function () {
                // Close the window
                //* DEBUG: */ alert('displayTestWindow(): prefix=' + prefix + ' - calling closeWarningWindow()');
        });
 
        // Register click-event for warning window
        $('#' + prefix + '_warning_close').click(function () {
                // Close the window
                //* DEBUG: */ alert('displayTestWindow(): prefix=' + prefix + ' - calling closeWarningWindow()');
-               closeWarningWindow(prefix);
+               closeWarningWindow(prefix, true, false);
        });
 
        // Request it from the AJAX backend
        });
 
        // Request it from the AJAX backend
@@ -381,13 +393,13 @@ function displayTestWindow (prefix, element) {
 function displayChangedWarningWindow (prefix, button) {
        // Fade out warning window, if open
        //* DEBUG: */ alert('displayChangedWarningWindow(): prefix=' + prefix + ',button=' + button + ' - calling closeWarningWindow()');
 function displayChangedWarningWindow (prefix, button) {
        // Fade out warning window, if open
        //* DEBUG: */ alert('displayChangedWarningWindow(): prefix=' + prefix + ',button=' + button + ' - calling closeWarningWindow()');
-       closeWarningWindow(prefix);
+       closeWarningWindow(prefix, true, false);
 
        // Fade error out for eye-candy, if open
 
        // Fade error out for eye-candy, if open
-       closeErrorWindow(prefix);
+       closeErrorWindow(prefix, true, false);
 
        // Fade it out for eye-candy
 
        // Fade it out for eye-candy
-       closeProcessWindow(prefix);
+       closeProgressWindow(prefix, true, false);
 
        // Abort here if warningDisplayed is still true
        if (isElementVisible(prefix, 'warning')) {
 
        // Abort here if warningDisplayed is still true
        if (isElementVisible(prefix, 'warning')) {
@@ -413,14 +425,14 @@ function displayChangedWarningWindow (prefix, button) {
 // Displays the error window for given prefix and content
 function displayErrorWindow (prefix, ajax_content) {
        // Fade out warning window, if open
 // Displays the error window for given prefix and content
 function displayErrorWindow (prefix, ajax_content) {
        // Fade out warning window, if open
-       //* DEBUG: */ alert('displayErrorWindow(): prefix=' + prefix + ' - calling closeWarningWindow()');
-       closeWarningWindow(prefix);
+       //* DEBUG: */ alert('displayErrorWindow(): prefix=' + prefix + ',ajax_content=' + ajax_content.reply_content + ' - calling closeWarningWindow()');
+       closeWarningWindow(prefix, true, false);
 
        // Fade it out for eye-candy
 
        // Fade it out for eye-candy
-       closeErrorWindow(prefix);
+       closeErrorWindow(prefix, true, false);
 
        // Fade it out for eye-candy
 
        // Fade it out for eye-candy
-       closeProcessWindow(prefix);
+       closeProgressWindow(prefix, true, false);
 
        // Abort here if errorDisplayed is still true
        if (isElementVisible(prefix, 'error')) {
 
        // Abort here if errorDisplayed is still true
        if (isElementVisible(prefix, 'error')) {
@@ -441,65 +453,65 @@ function displayErrorWindow (prefix, ajax_content) {
        });
 }
 
        });
 }
 
-// Displays the process window for given prefix and content
-function displayProcessWindow (prefix, ajax_content) {
+// Displays the progress window for given prefix and content
+function displayProgressWindow (prefix, ajax_content) {
        // Fade out warning window, if open
        // Fade out warning window, if open
-       //* DEBUG: */ alert('displayProcessWindow(): prefix=' + prefix + ' - calling closeWarningWindow()');
-       closeWarningWindow(prefix);
+       //* DEBUG: */ alert('displayProgressWindow(): prefix=' + prefix + ' - calling closeWarningWindow()');
+       closeWarningWindow(prefix, true, false);
 
        // Fade it out for eye-candy
 
        // Fade it out for eye-candy
-       closeErrorWindow(prefix);
+       closeErrorWindow(prefix, true, false);
 
        // Fade it out for eye-candy
 
        // Fade it out for eye-candy
-       closeProcessWindow(prefix);
+       closeProgressWindow(prefix, true, false);
 
 
-       // Abort here if processDisplayed is still true
-       if (isElementVisible(prefix, 'process')) {
+       // Abort here if progressDisplayed is still true
+       if (isElementVisible(prefix, 'progress')) {
                // Make sure this doesn't happen
                return;
        } // END - if
 
                // Make sure this doesn't happen
                return;
        } // END - if
 
-       // Copy the response text to the process variable
+       // Copy the response text to the progress variable
        if (ajax_content.reply_content != undefined) {
                // Set HTML content
        if (ajax_content.reply_content != undefined) {
                // Set HTML content
-               setProcessContent(prefix, ajax_content.reply_content);
+               setProgressContent(prefix, ajax_content.reply_content);
        } else {
        } else {
-               setProcessContent(prefix, ajax_content);
+               setProgressContent(prefix, ajax_content);
        }
 
        }
 
-       // Fade the process in
-       $('#' + prefix + '_process').fadeIn('slow', function() {
+       // Fade the progress in
+       $('#' + prefix + '_progress').fadeIn('slow', function() {
                // Do nothing for now
        });
 }
 
                // Do nothing for now
        });
 }
 
-// Sets "process content"
-function setProcessContent (prefix, content) {
+// Sets "progress content"
+function setProgressContent (prefix, content) {
        // Set HTML content
        // Set HTML content
-       $('#' + prefix + '_process_content').html(content);
+       $('#' + prefix + '_progress_content').html(content);
 }
 
 // Waits until the window has been closed
 }
 
 // Waits until the window has been closed
-function closeErrorLocked () {
+function closeErrorLocked (prefix) {
        // Has all been loaded?
        if (!isElementVisible(prefix, 'error')) {
                // Then release ready()
                $.holdReady(false);
        } else {
                // Recursive call again
        // Has all been loaded?
        if (!isElementVisible(prefix, 'error')) {
                // Then release ready()
                $.holdReady(false);
        } else {
                // Recursive call again
-               window.setTimeout('closeErrorLocked()', 10);
+               window.setTimeout('closeErrorLocked(' + prefix + ')', 10);
        }
 }
 
 // Waits until the window has been closed
        }
 }
 
 // Waits until the window has been closed
-function closeProcessLocked () {
+function closeProgressLocked (prefix) {
        // Has all been loaded?
        // Has all been loaded?
-       if (!isElementVisible(prefix, 'process')) {
+       if (!isElementVisible(prefix, 'progress')) {
                // Then release ready()
                $.holdReady(false);
        } else {
                // Recursive call again
                // Then release ready()
                $.holdReady(false);
        } else {
                // Recursive call again
-               window.setTimeout('closeProcessLocked()', 10);
+               window.setTimeout('closeProgressLocked(' + prefix + ')', 10);
        }
 }
 
        }
 }
 
@@ -524,15 +536,15 @@ function closeErrorWindow (prefix, waitClose, resetCurrentTabId) {
                // Shall this animation be "synchronized"?
                if (waitClose == true) {
                        // Wait for the window has been closed
                // Shall this animation be "synchronized"?
                if (waitClose == true) {
                        // Wait for the window has been closed
-                       closeErrorLocked();
+                       closeErrorLocked(prefix);
                } // END - if
        } // END - if
 }
 
                } // END - if
        } // END - if
 }
 
-// Closes an process window
-function closeProcessWindow (prefix, waitClose, resetCurrentTabId) {
-       // Is the process displayed?
-       if (isElementVisible(prefix, 'process')) {
+// Closes an progress window
+function closeProgressWindow (prefix, waitClose, resetCurrentTabId) {
+       // Is the progress displayed?
+       if (isElementVisible(prefix, 'progress')) {
                // Shall we wait ("sync") until the animation has completed?
                if (waitClose == true) {
                        // Hold the ready status
                // Shall we wait ("sync") until the animation has completed?
                if (waitClose == true) {
                        // Hold the ready status
@@ -540,7 +552,7 @@ function closeProcessWindow (prefix, waitClose, resetCurrentTabId) {
                } // END - if
 
                // Yes, then fade it out
                } // END - if
 
                // Yes, then fade it out
-               $('#' + prefix + '_process').fadeOut('fast', function() {
+               $('#' + prefix + '_progress').fadeOut('fast', function() {
                        // Set current tab id to default
                        if (resetCurrentTabId == true) {
                                setCurrentTabId(defaultTabId);
                        // Set current tab id to default
                        if (resetCurrentTabId == true) {
                                setCurrentTabId(defaultTabId);
@@ -550,20 +562,20 @@ function closeProcessWindow (prefix, waitClose, resetCurrentTabId) {
                // Shall this animation be "synchronized"?
                if (waitClose == true) {
                        // Wait for the window has been closed
                // Shall this animation be "synchronized"?
                if (waitClose == true) {
                        // Wait for the window has been closed
-                       closeProcessLocked();
+                       closeProgressLocked(prefix);
                } // END - if
        } // END - if
 }
 
 // Waits until the window has been closed
                } // END - if
        } // END - if
 }
 
 // Waits until the window has been closed
-function closeWarningLocked () {
+function closeWarningLocked (prefix) {
        // Has all been loaded?
        if (!isElementVisible(prefix, 'warning')) {
                // Then release ready()
                $.holdReady(false);
        } else {
                // Recursive call again
        // Has all been loaded?
        if (!isElementVisible(prefix, 'warning')) {
                // Then release ready()
                $.holdReady(false);
        } else {
                // Recursive call again
-               window.setTimeout('closeWarningLocked()', 10);
+               window.setTimeout('closeWarningLocked(' + prefix + ')', 10);
        }
 }
 
        }
 }
 
@@ -591,7 +603,7 @@ function closeWarningWindow (prefix, waitClose, resetCurrentTabId) {
                if (waitClose == true) {
                        // Wait for the window has been closed
                        //* DEBUG: */ alert('prefix=' + prefix + ',waitClose=' + waitClose + ' - LOCKED!');
                if (waitClose == true) {
                        // Wait for the window has been closed
                        //* DEBUG: */ alert('prefix=' + prefix + ',waitClose=' + waitClose + ' - LOCKED!');
-                       closeWarningLocked();
+                       closeWarningLocked(prefix);
                } // END - if
        } // END - if
 }
                } // END - if
        } // END - if
 }
@@ -608,8 +620,8 @@ function doFooterPage (prefix, htmlId, button) {
                return;
        } // END - if
 
                return;
        } // END - if
 
-       // Is process working?
-       if (isElementVisible(prefix, 'process')) {
+       // Is progress working?
+       if (isElementVisible(prefix, 'progress')) {
                // Then exit silently
                return;
        } // END - if
                // Then exit silently
                return;
        } // END - if
@@ -692,8 +704,8 @@ function markFormFieldsFailed (failedFields) {
        });
 }
 
        });
 }
 
-// Processes the content from AJAX call
-function processAjaxResponseContent (prefix, ajax_content) {
+// Progresses the content from AJAX call
+function progressAjaxResponseContent (prefix, ajax_content) {
        // By default all is failed
        var isResponseDone = false;
 
        // By default all is failed
        var isResponseDone = false;
 
@@ -718,8 +730,8 @@ function processAjaxResponseContent (prefix, ajax_content) {
 
 // Saves changes by sending the data to the AJAX backend script
 function saveChanges (prefix) {
 
 // Saves changes by sending the data to the AJAX backend script
 function saveChanges (prefix) {
-       // Is process working?
-       if (isElementVisible(prefix, 'process')) {
+       // Is progress working?
+       if (isElementVisible(prefix, 'progress')) {
                // Then exit silently
                return;
        } // END - if
                // Then exit silently
                return;
        } // END - if
@@ -751,8 +763,8 @@ function saveChanges (prefix) {
                // Get the content
                var ajax_content = getAjaxContent();
 
                // Get the content
                var ajax_content = getAjaxContent();
 
-               // Process the returned content
-               if (processAjaxResponseContent(prefix, ajax_content) == true) {
+               // Progress the returned content
+               if (progressAjaxResponseContent(prefix, ajax_content) == true) {
                        // Mark all elements as unchanged
                        markAllElementsAsUnchanged();
 
                        // Mark all elements as unchanged
                        markAllElementsAsUnchanged();
 
@@ -768,7 +780,7 @@ function saveChanges (prefix) {
                                displayErrorWindow(prefix, '<div class="ajax_error_message">' + ajax_content.message + '</div>');
                        } else {
                                // This didn't work, why?
                                displayErrorWindow(prefix, '<div class="ajax_error_message">' + ajax_content.message + '</div>');
                        } else {
                                // This didn't work, why?
-                               displayErrorWindow(prefix, '<div class="ajax_error_message">processAjaxResponseContent() failed, please fix this.<br />\n' + lastErrorMessage + '</div>');
+                               displayErrorWindow(prefix, '<div class="ajax_error_message">progressAjaxResponseContent() failed, please fix this.<br />\n' + lastErrorMessage + '</div>');
                        }
                }
 
                        }
                }
 
@@ -816,8 +828,8 @@ function doSaveChangesPage (prefix, htmlId, page) {
 
 // Saves changed settings and continues with given tab
 function doSaveChangesContinue (prefix, htmlId, tab) {
 
 // Saves changed settings and continues with given tab
 function doSaveChangesContinue (prefix, htmlId, tab) {
-       // Is process working?
-       if (isElementVisible(prefix, 'process')) {
+       // Is progress working?
+       if (isElementVisible(prefix, 'progress')) {
                // Then exit silently
                return;
        } // END - if
                // Then exit silently
                return;
        } // END - if
index af478d30468f9565d2d5b0dd23b8e7a8855d973e..f01a38b3fb34acfb26929c3292a98966e8200843 100644 (file)
  */
 
 // Installation steps array
  */
 
 // Installation steps array
-var installSteps = new Array();
+var installationSteps = new Array();
 
 // Failed step
 var failedStep = '';
 var counterSuccess = 0;
 
 // Init all installation steps
 
 // Failed step
 var failedStep = '';
 var counterSuccess = 0;
 
 // Init all installation steps
-installSteps[0] = 'import_tables_sql';
-installSteps[1] = 'import_menu_sql';
-installSteps[2] = 'write_local_config';
-installSteps[3] = 'install_extensions';
+installationSteps[0] = 'import_tables_sql';
+installationSteps[1] = 'import_menu_sql';
+installationSteps[2] = 'install_extensions';
+
+// Always keep as last step
+installationSteps[installationSteps.length] = 'write_local_config';
 
 // Switches instaler by redirecting
 function switchInstaller (installer) {
        // Switch installer
 
 // Switches instaler by redirecting
 function switchInstaller (installer) {
        // Switch installer
-       document.location.href='install.php?installer=' + installer;
+       document.location.href = 'install.php?installer=' + installer;
 }
 
 // User has clicked on 'finish'
 function doFinishInstallation () {
        // First disable all buttons button
 }
 
 // User has clicked on 'finish'
 function doFinishInstallation () {
        // First disable all buttons button
-       disableElement('input#next_page');
-       disableElement('input#previous_page');
-       disableElement('input#finish');
+       resetFooterNavigation();
 
 
-       // Display process window
-       displayProcessWindow('install', '');
+       // Display progress window
+       displayProgressWindow('install', 'Init ...');
 
        // Start installation loop delayed
 
        // Start installation loop delayed
-       window.setTimeout("doInstallationLoop()", 500);
+       window.setTimeout('doInstallationLoop()', 500);
 
 
-       // Is success counter same as array size
-       if (counterSuccess != installSteps.length) {
-               // Display error message
-               displayErrorWindow('install', getAjaxContent());
+       // Wait here
+       window.setTimeout('doWait()', 500);
+}
+
+// Do wait
+function doWait () {
+       // Is still something to do?
+       if ((failedStep == '') && (counterSuccess != installationSteps.length)) {
+               // Wait one round more
+               window.setTimeout('doWait()', 500);
+       } else if ((failedStep == '') && (counterSuccess == installationSteps.length)) {
+               // Close window
+               closeProgressWindow('install', true, false);
+
+               // Redirect to old 'finished' page
+               document.location.href = 'admin.php';
+       } else if (failedStep != '') {
+               // Something happens that should not happen!
+               displayErrorWindow('install', 'failedStep=' + failedStep);
        }
 }
 
        }
 }
 
+// Update progress bar
+function updateProgressBar () {
+       // Increment counter
+       counterSuccess++;
+
+       // Do only update <= 100% values
+       if (counterSuccess <= installationSteps.length) {
+               // Update progress bar
+               $('#progressbar').progressbar({
+                       value: (counterSuccess / installationSteps.length * 100)
+               });
+       } // END - if
+}
+
 // Does the "installation loop"
 function doInstallationLoop () {
        // For-loop for all installation steps
 // Does the "installation loop"
 function doInstallationLoop () {
        // For-loop for all installation steps
-       for (var i = 0; i < installSteps.length; i++) {
+       for (var i = 0; i < installationSteps.length; i++) {
                // Output message
                // Output message
-               outputInstallationStepMessage(installSteps[i]);
+               outputInstallationStepMessage(installationSteps[i]);
 
                // Initialize next step
 
                // Initialize next step
-               if (!sendInstallationStepRequest(installSteps[i]) == true) {
+               if (!sendInstallationStepRequest(i) == true) {
                        // Failed step, so remember it for later display
                        // Failed step, so remember it for later display
-                       failedStep = installSteps[i];
+                       failedStep = installationSteps[i];
 
                        // Stop here
                        break;
 
                        // Stop here
                        break;
-               }
-
-               // Did went okay
-               counterSuccess++;
+               } // END - if
 
                // Wait a little
 
                // Wait a little
+               $('body').delay(500);
+
+               // Update progress bar
+               updateProgressBar();
        } // END - for
        } // END - for
+
+       // Is success counter same as array size
+       if (counterSuccess != installationSteps.length) {
+               // Display error message
+               displayErrorWindow('install', getAjaxContent() + ':' + counterSuccess + '/' + installationSteps.length + ':' + failedStep);
+       } // END - if
 }
 
 // Sends an "installation step" request out
 }
 
 // Sends an "installation step" request out
-function sendInstallationStepRequest (step) {
+function sendInstallationStepRequest (i) {
+       // Is it set?
+       if (installationSteps[i] == undefined) {
+               // Not set installation step, so don't send it out
+               throw new 'installationSteps[' + i + '] is not set.';
+       } // END - if
+
        // Send out the request
        // Send out the request
-       return sendAjaxRequest('install', 'do_step', '&step=' + step, true);
+       return sendAjaxRequest('install', 'do_step', '&step=' + installationSteps[i], true);
 }
 
 // Outputs a "step message"
 function outputInstallationStepMessage (step) {
        // Set content
 }
 
 // Outputs a "step message"
 function outputInstallationStepMessage (step) {
        // Set content
-       setProcessContent('install', step);
+       // @TODO Progress bar is out-of-order: + '<div id="progressbar"></div>'
+       setProgressContent('install', step);
 }
 }
index 7d2ca7cc2f2914c2fa849e13cff64df3296c2b5b..4c801ca69e6bea79967fdee19c2510a4ee93c48d 100644 (file)
@@ -34,18 +34,23 @@ indexTranslation[1] = 'base_data';
 indexTranslation[2] = 'database_config';
 indexTranslation[3] = 'smtp_config';
 indexTranslation[4] = 'other_config';
 indexTranslation[2] = 'database_config';
 indexTranslation[3] = 'smtp_config';
 indexTranslation[4] = 'other_config';
-indexTranslation[5] = 'overview';
-indexTranslation[6] = 'finish';
+indexTranslation[5] = 'extensions';
+indexTranslation[6] = 'overview';
 
 
-// 'next page' linking, key is current page, value is the next page
-var nextPage = new Array();
+// Always last ...
+indexTranslation[indexTranslation.length] = 'finish';
+
+// 'next/previous page' linking, key is current page, value is the next page
+var nextPage     = new Array();
+var previousPage = new Array();
 
 // Add all 'next page' entries
 nextPage['welcome']         = 'base_data';
 nextPage['base_data']       = 'database_config';
 nextPage['database_config'] = 'smtp_config';
 nextPage['smtp_config']     = 'other_config';
 
 // Add all 'next page' entries
 nextPage['welcome']         = 'base_data';
 nextPage['base_data']       = 'database_config';
 nextPage['database_config'] = 'smtp_config';
 nextPage['smtp_config']     = 'other_config';
-nextPage['other_config']    = 'overview';
+nextPage['other_config']    = 'extensions';
+nextPage['extensions']      = 'overview';
 nextPage['overview']        = 'finish';
 
 // 'previous page' linking, key is current page, value is the previous page
 nextPage['overview']        = 'finish';
 
 // 'previous page' linking, key is current page, value is the previous page
@@ -56,5 +61,6 @@ previousPage['base_data']       = 'welcome';
 previousPage['database_config'] = 'base_data';
 previousPage['smtp_config']     = 'database_config';
 previousPage['other_config']    = 'smtp_config';
 previousPage['database_config'] = 'base_data';
 previousPage['smtp_config']     = 'database_config';
 previousPage['other_config']    = 'smtp_config';
-previousPage['overview']        = 'other_config';
+previousPage['extensions']      = 'other_config';
+previousPage['overview']        = 'extensions';
 previousPage['finish']          = 'overview';
 previousPage['finish']          = 'overview';
index 4cdc65597ac2f7d4c89efb51962115b5261498e2..a20e0557fc11327a96395df39de98a802f11d297 100644 (file)
@@ -27,7 +27,7 @@ Es sind nun folgende Daten gesetzt:
 ------------------------------
 {--SPONSOR_WARNING_INTERVAL--}: $content[warning_interval]
 ------------------------------
 ------------------------------
 {--SPONSOR_WARNING_INTERVAL--}: $content[warning_interval]
 ------------------------------
-{--PASS_1--}: $content[pass1]
+{--PASS_1--}: $content[password1]
 ------------------------------
 
 Mit freundlichen Gr&uuml;&szlig;en,
 ------------------------------
 
 Mit freundlichen Gr&uuml;&szlig;en,
index 809c23d2be9e764d7c1aa5e983628ab0475598fc..8447179678156d214920f65bbea10bb652d56703 100644 (file)
@@ -12,7 +12,7 @@ Hallo {%user,gender,translateGender=$userid%} {%user,surname=$userid%} {%user,fa
 {--ZIP--}: {%user,zip,bigintval=$userid%}
 {--CITY--}: {%user,city=$userid%}
 {--EMAIL--}: {%user,email=$userid%}
 {--ZIP--}: {%user,zip,bigintval=$userid%}
 {--CITY--}: {%user,city=$userid%}
 {--EMAIL--}: {%user,email=$userid%}
-{--PASS_1--}: $content[pass1]
+{--PASS_1--}: $content[password1]
 ------------------------------------------
 IP-Nummer: {%server,remote_addr%} (Real: {%server,real_ip_address%})
 ------------------------------------------
 ------------------------------------------
 IP-Nummer: {%server,remote_addr%} (Real: {%server,real_ip_address%})
 ------------------------------------------
index f91dacbcf277c7e5428a8432d8d81858b1f966ac..be6d1b89961f5cc9649f5d8f8f1d5a2f5ca09d9f 100644 (file)
        <tr>
                <td align="right">{--ADMIN_ADMINS_ENTER_PASSWORD1--}:</td>
                <td>
        <tr>
                <td align="right">{--ADMIN_ADMINS_ENTER_PASSWORD1--}:</td>
                <td>
-                       <input class="form_field" type="password" name="pass1" size="10" maxlength="255" />
+                       <input class="form_field" type="password" name="password1" size="10" maxlength="255" />
                </td>
        </tr>
        <tr>
                <td class="bottom" align="right">{--ADMIN_ADMINS_ENTER_PASSWORD2--}:</td>
                <td class="bottom">
                </td>
        </tr>
        <tr>
                <td class="bottom" align="right">{--ADMIN_ADMINS_ENTER_PASSWORD2--}:</td>
                <td class="bottom">
-                       <input class="form_field" type="password" name="pass2" size="10" maxlength="255" />
+                       <input class="form_field" type="password" name="password2" size="10" maxlength="255" />
                </td>
        </tr>
        <tr>
                </td>
        </tr>
        <tr>
index 5455b6bd07206a64dc82942f10c9810a2564146a..696e1e96adc8f7bff7b4f0a8aa0089ec676a13b9 100644 (file)
                {--SPONSOR_ENTER_PASSWORDS--}:
        </td>
        <td class="bottom">
                {--SPONSOR_ENTER_PASSWORDS--}:
        </td>
        <td class="bottom">
-               <input type="password" class="form_field" name="pass1" size="10" maxlength="255" />
-               <input type="password" class="form_field" name="pass2" size="10" maxlength="255" />
+               <input type="password" class="form_field" name="password1" size="10" maxlength="255" />
+               <input type="password" class="form_field" name="password2" size="10" maxlength="255" />
        </td>
 </tr>
 <tr>
        </td>
 </tr>
 <tr>
index 846d6745ac6e4d3307d106aec4d61d6954460957..7add97cbef11e07adc7d8abf798f1b47aa6d4245 100644 (file)
 
                <div class="table_row">
                        <label class="admin_label" for="tester_user_email">{--ADMIN_ADD_TESTER_USER_PASSWORD1--}</label>
 
                <div class="table_row">
                        <label class="admin_label" for="tester_user_email">{--ADMIN_ADD_TESTER_USER_PASSWORD1--}</label>
-                       <input type="password" class="form_field" name="pass1" value="{?tester_user_password?}" size="10" maxlength="255" />
+                       <input type="password" class="form_field" name="password1" value="{?tester_user_password?}" size="10" maxlength="255" />
                </div>
 
                <div class="table_row">
                        <label class="admin_label" for="tester_user_email">{--ADMIN_ADD_TESTER_USER_PASSWORD2--}</label>
                </div>
 
                <div class="table_row">
                        <label class="admin_label" for="tester_user_email">{--ADMIN_ADD_TESTER_USER_PASSWORD2--}</label>
-                       <input type="password" class="form_field" name="pass2" value="{?tester_user_password?}" size="10" maxlength="255" />
+                       <input type="password" class="form_field" name="password2" value="{?tester_user_password?}" size="10" maxlength="255" />
                </div>
        </fieldset>
 
                </div>
        </fieldset>
 
index eb3fe5ae17080d3da2f55afabba4646687a972a5..8131504576b9a93911eda740c2a6cd5b3f740464 100644 (file)
@@ -7,8 +7,8 @@
                <input type="text" class="form_field" name="email[$content[id]]" value="$content[email]" size="25" maxlength="255" />
        </td>
        <td align="center" class="{%template,ColorSwitch%} bottom right">
                <input type="text" class="form_field" name="email[$content[id]]" value="$content[email]" size="25" maxlength="255" />
        </td>
        <td align="center" class="{%template,ColorSwitch%} bottom right">
-               <input type="password" class="form_field" name="pass1[$content[id]]" size="10" maxlength="255" />
-               <input type="password" class="form_field" name="pass2[$content[id]]" size="10" maxlength="255" />
+               <input type="password" class="form_field" name="password1[$content[id]]" size="10" maxlength="255" />
+               <input type="password" class="form_field" name="password2[$content[id]]" size="10" maxlength="255" />
        </td>
        <td align="center" class="{%template,ColorSwitch%} bottom right">
                $content[access_mode]
        </td>
        <td align="center" class="{%template,ColorSwitch%} bottom right">
                $content[access_mode]
index db9a033bd0fc47148b0dbdb2936ad42fc81b10a4..941ad76f15c708b93c2d6a075c1164c0290185d7 100644 (file)
                {--SPONSOR_ENTER_PASSWORDS--}:&nbsp;
        </td>
        <td class="bottom">
                {--SPONSOR_ENTER_PASSWORDS--}:&nbsp;
        </td>
        <td class="bottom">
-               <input type="password" class="form_field" name="pass1" size="10" maxlength="255" />
-               <input type="password" class="form_field" name="pass2" size="10" maxlength="255" />
+               <input type="password" class="form_field" name="password1" size="10" maxlength="255" />
+               <input type="password" class="form_field" name="password2" size="10" maxlength="255" />
        </td>
 </tr>
 <tr>
        </td>
 </tr>
 <tr>
index f4be578df92343352ac3af9eaafc195790a9324b..93c1ae5dc828ac12fe6ee2ff0f1135a86173f15d 100644 (file)
        <tr>
                <td align="right">{--ADMIN_ENTER_PASSWORD1--}:</td>
                <td>
        <tr>
                <td align="right">{--ADMIN_ENTER_PASSWORD1--}:</td>
                <td>
-                       <input type="password" class="form_field" name="pass1" size="5" maxlength="255" />
+                       <input type="password" class="form_field" name="password1" size="5" maxlength="255" />
                </td>
        </tr>
        <tr>
                <td class="bottom" align="right">{--ADMIN_ENTER_PASSWORD2--}:</td>
                <td class="bottom">
                </td>
        </tr>
        <tr>
                <td class="bottom" align="right">{--ADMIN_ENTER_PASSWORD2--}:</td>
                <td class="bottom">
-                       <input type="password" class="form_field" name="pass2" size="5" maxlength="255" />
+                       <input type="password" class="form_field" name="password2" size="5" maxlength="255" />
                </td>
        </tr>
        <tr>
                </td>
        </tr>
        <tr>
index 0a2352dec710d6958511a903bcd68a7a286bcb90..5da1d8e72d72be3d402f28905e0c64ab93131629 100644 (file)
        <tr>
                <td align="right">{--ADMIN_ACCOUNT_FIRST_CREATION_PASSWORD1--}:</td>
                <td>
        <tr>
                <td align="right">{--ADMIN_ACCOUNT_FIRST_CREATION_PASSWORD1--}:</td>
                <td>
-                       <input type="password" class="form_field" name="admin_pass1" size="20" maxlength="255" />
+                       <input type="password" class="form_field" name="admin_password1" size="20" maxlength="255" />
                </td>
        </tr>
                </td>
        </tr>
-       $content[pass1_message]
+       $content[password1_message]
        <tr>
                <td align="right">{--ADMIN_ACCOUNT_FIRST_CREATION_PASSWORD2--}:</td>
                <td>
        <tr>
                <td align="right">{--ADMIN_ACCOUNT_FIRST_CREATION_PASSWORD2--}:</td>
                <td>
-                       <input type="password" class="form_field" name="admin_pass2" size="20" maxlength="255" />
+                       <input type="password" class="form_field" name="admin_password2" size="20" maxlength="255" />
                </td>
        </tr>
                </td>
        </tr>
-       $content[pass2_message]
+       $content[password2_message]
        <tr>
                <td align="center" colspan="2" class="table_footer top">
                        <input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
        <tr>
                <td align="center" colspan="2" class="table_footer top">
                        <input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
index 626eb4e870f7e656dfe6b5c53c8f81975b1a041b..3e9694ebc79764c836eceaaca9772d02f306fc25 100644 (file)
@@ -20,7 +20,7 @@
                {--ADMIN_ENTER_NEW_PASSWORD1--}
        </td>
        <td class="bottom">
                {--ADMIN_ENTER_NEW_PASSWORD1--}
        </td>
        <td class="bottom">
-               <input type="password" class="form_field" name="admin_pass1" size="20" maxlength="255" />
+               <input type="password" class="form_field" name="admin_password1" size="20" maxlength="255" />
        </td>
 </tr>
 <tr>
        </td>
 </tr>
 <tr>
@@ -28,7 +28,7 @@
                {--ADMIN_ENTER_NEW_PASSWORD2--}
        </td>
        <td class="bottom">
                {--ADMIN_ENTER_NEW_PASSWORD2--}
        </td>
        <td class="bottom">
-               <input type="password" class="form_field" name="admin_pass2" size="20" maxlength="255" />
+               <input type="password" class="form_field" name="admin_password2" size="20" maxlength="255" />
        </td>
 </tr>
 <tr>
        </td>
 </tr>
 <tr>
index cc4189a72c2e1aca5099ac39a566654e81dd1ffd..32273b0b410308de05b53fc99854de95d6ca78b0 100644 (file)
@@ -1,31 +1,32 @@
 <div class="para">
 <div class="para">
-Diese Erweiterung bietet Ihnen die M&ouml;glichkeit an, Lead-Code von
-Sponsornetzwerken in die Mitgliederanmeldung einzubinden. Dazu m&uuml;ssen
-Sie derzeit den Lead-Code in das Template <u>lead_code.tpl</u> einbinden
-(mehrere Lead-Codes sind auch m&ouml;glich!).
+       Diese Erweiterung bietet Ihnen die M&ouml;glichkeit an, Lead-Code von
+       Sponsornetzwerken in die Mitgliederanmeldung einzubinden. Dazu m&uuml;ssen
+       Sie derzeit den Lead-Code in das Template <u>lead_code.tpl</u> einbinden
+       (mehrere Lead-Codes sind auch m&ouml;glich!).
 </div>
 
 <div class="para">
 </div>
 
 <div class="para">
-Meistens m&uuml;ssen Sie irgentwelche eindeutigen Daten an den Lead-Code
-&uuml;bergeben. Dies k&ouml;nnen z.B. doe User-Id und/oder die Email-Adresse
-sein. Beides wird von diesem Script derzeit auch unterst&uuml;tzt.
+       Meistens m&uuml;ssen Sie irgentwelche eindeutigen Daten an den Lead-Code
+       &uuml;bergeben. Dies k&ouml;nnen z.B. doe User-Id und/oder die
+       Email-Adresse sein. Beides wird von diesem Script derzeit auch
+       unterst&uuml;tzt.
 </div>
 
 <div class="para">
 </div>
 
 <div class="para">
-Wenn Sie die User-Id &uuml;bertragen m&ouml;chten, so verwenden Sie die
-Template-Variable <u>lead_userid</u>, m&ouml;chten Sie die Email-Adresse von der
-Anmeldung &uuml;bertragen, verwenden Sie <u>lead_email</u>. Dazu ein
-Beispielcode:
+       Wenn Sie die User-Id &uuml;bertragen m&ouml;chten, so verwenden Sie die
+       Template-Variable <u>lead_userid</u>, m&ouml;chten Sie die Email-Adresse
+       von der Anmeldung &uuml;bertragen, verwenden Sie <u>lead_email</u>. Dazu
+       ein Beispielcode:
 </div>
 
 <div class="para">
 &lt;img border=&quot;0&quot; alt=&quot;Lead&quot; width=&quot;1&quot; height=&quot;1&quot;
 </div>
 
 <div class="para">
 &lt;img border=&quot;0&quot; alt=&quot;Lead&quot; width=&quot;1&quot; height=&quot;1&quot;
- src=&quot;http://some-sponsor-network/lead-image.php?campaign=xxx&amp;user_data=&#36;content&#91;lead_userid&#93;_&#36;content&#91;lead_email&#93;&quot; /&gt;
+ src=&quot;http://some-sponsor-network/lead-image.php?campaign=xxx&amp;amp;user_data=&#36;content&#91;lead_userid&#93;_&#36;content&#91;lead_email&#93;&quot; /&gt;
 </div>
 
 <div class="para">
 </div>
 
 <div class="para">
-Sollten Sie dazu noch Fragen haben, so kommen Sie doch einfach <a target="_blank"
- href="http://forum.mxchange.org" title="Direkt-Link zum Support-Forum">in das
-Forum</a>. Ich beantworte Ihnen gerne Ihre Fragen dazu und helfe Ihnen bei
-Schwierigkeiten weiter.
+       Sollten Sie dazu noch Fragen haben, so kommen Sie doch einfach <a
+        rel="external" target="_blank" href="http://forum.mxchange.org"
+        title="Direkt-Link zum Support-Forum">in das Forum</a>. Ich beantworte
+       Ihnen gerne Ihre Fragen dazu und helfe Ihnen bei Schwierigkeiten weiter.
 </div>
 </div>
index 26a01f3ee36016f12e9c2a2b33567a34f960f614..11f5d85d80b1ca4d16cf4c19e14af24e5ec2a60f 100644 (file)
@@ -1,14 +1 @@
-<div class="para">
-       Mit dieser Erweiterung k&ouml;nnen Sie Ihren Mitgliedern eine Auszahlung
-       ihrer Internet-W&auml;hrung <a href="http://www.primusportal.de/r/Quix0r"
-        target="_blank" rel="external">Primera</a> auf ihr Primera-Account
-       &uuml;berweisen lassen. Sie als Primera-Anbieter brauchen dazu
-       selbstverst&auml;ndlich ein Primera-Account. Mehr dazu auf
-       <a target="_blank" rel="external"
-        href="http://www.primusportal.de/r/Quix0r">www.primusportal.de</a>. Wenn
-       Sie m&ouml;chten, k&ouml;nnen Sie auch ganz zu Primera wechseln. Dazu
-       geben Sie unter <a target="_blank" rel="external"
-        href="{OPEN_CONFIG}URL{CLOSE_CONFIG}/modules.php?module=admin&amp;what=config_other">Sonstige
-       Einstellungen</a>, &quot;W&auml;hrung Ihres
-       {OPEN_CONFIG}mt_word2{CLOSE_CONFIG}&quot; einfach das Wort <strong>Primera</strong> ein.
-</div>
+<!-- @DEPRECATED //-->
index 00e614e5d1f3214d6e4a0684880f0cda2a5ea793..e23df8a14bdbafc82ec526d7917bef8eff46e8a5 100644 (file)
                        {--PASS_1--}, {--PASS_2--}:
                </td>
                <td class="register_right">
                        {--PASS_1--}, {--PASS_2--}:
                </td>
                <td class="register_right">
-                       <input type="password" class="form_field" name="pass1" size="10" maxlength="100" />
-                       <input type="password" class="form_field" name="pass2" size="10" maxlength="100" />
+                       <input type="password" class="form_field" name="password1" size="10" maxlength="100" />
+                       <input type="password" class="form_field" name="password2" size="10" maxlength="100" />
                </td>
        </tr>
 
                </td>
        </tr>
 
index 97908bc1fef95c700b052060e7e2f1e1fd6d8de3..61d520219d1ca1233ab20a36032586de02b4b0a0 100644 (file)
                {--SPONSOR_ENTER_PASSWORDS--}:
        </td>
        <td class="bottom">
                {--SPONSOR_ENTER_PASSWORDS--}:
        </td>
        <td class="bottom">
-               <input type="password" class="form_field" name="pass1" size="10" maxlength="255" />
-               <input type="password" class="form_field" name="pass2" size="10" maxlength="255" />
+               <input type="password" class="form_field" name="password1" size="10" maxlength="255" />
+               <input type="password" class="form_field" name="password2" size="10" maxlength="255" />
        </td>
 </tr>
 <tr>
        </td>
 </tr>
 <tr>
diff --git a/templates/de/html/install/install_list_extensions.tpl b/templates/de/html/install/install_list_extensions.tpl
new file mode 100644 (file)
index 0000000..abefc87
--- /dev/null
@@ -0,0 +1,17 @@
+<div align="center">
+<table border="0" cellspacing="0" cellpadding="0">
+<tr>
+       <td align="center" class="header_column bottom right" width="30"><strong>{--ID_SELECT--}</strong></td>
+       <td align="center" class="header_column bottom right"><strong>{--ADMIN_EXTENSION_NAME--}</strong></td>
+       <td align="center" class="header_column bottom" width="90"><strong>{--ADMIN_EXTENSION_VERSION--}</strong></td>
+</tr>
+$content
+<tr>
+       <td colspan="3" class="table_footer">
+               <div class="notice">
+                       {--INSTALLER_EXTENSIONS_NOTICE--}
+               </div>
+       </td>
+</tr>
+</table>
+</div>
diff --git a/templates/de/html/install/install_list_extensions_row.tpl b/templates/de/html/install/install_list_extensions_row.tpl
new file mode 100644 (file)
index 0000000..f41fe45
--- /dev/null
@@ -0,0 +1,17 @@
+<tr>
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
+               <input type="checkbox" title="{%message,INSTALLER_MARK_EXTENSION=$content[ext_name]%}" class="admoin_normal" id="ext_$content[ext_name]" name="sel[$content[ext_name]]" value="1" onchange="return allowSaveChanges('ext_$content[ext_name]')"$content[checked]$content[disabled]/>
+       </td>
+       <td class="{%template,ColorSwitch%} bottom right">
+               <strong>$content[ext_name]</strong>
+       </td>
+       <td class="{%template,ColorSwitch%} bottom">
+               <strong>$content[ext_version]</strong>
+       </td>
+</tr>
+
+<tr>
+       <td class="{%template,ColorSwitch%} bottom" colspan="3" align="center">
+               $content[description]
+       </td>
+</tr>
index f080c43cf9c8dd7ee2738268748f4ec2246307f8..1016e0392626fab5221f589e144d9a2dc1c06e36 100644 (file)
@@ -9,7 +9,7 @@
 </div>
 </div>
 
 </div>
 </div>
 
-<div id="install_error" class="ajax_error">
+<div id="install_error" class="ajax_error" style="display: none;">
        <div class="ajax_error_title">
                <strong>{--INSTALLER_AJAX_ERROR_TITLE--}</strong>
        </div>
        <div class="ajax_error_title">
                <strong>{--INSTALLER_AJAX_ERROR_TITLE--}</strong>
        </div>
@@ -22,7 +22,7 @@
        </div>
 </div>
 
        </div>
 </div>
 
-<div id="install_warning" class="ajax_warning">
+<div id="install_warning" class="ajax_warning" style="display: none;">
        <div class="ajax_warning_title">
                <strong>{--INSTALLER_AJAX_WARNING_TITLE--}</strong>
        </div>
        <div class="ajax_warning_title">
                <strong>{--INSTALLER_AJAX_WARNING_TITLE--}</strong>
        </div>
        </div>
 </div>
 
        </div>
 </div>
 
-<div id="install_process" class="ajax_process">
-       <div class="ajax_process_title">
+<div id="install_progress" class="ajax_progress" style="display: none;">
+       <div class="ajax_progress_title">
                <strong>{--INSTALLER_AJAX_FINISH_TITLE--}</strong>
        </div>
                <strong>{--INSTALLER_AJAX_FINISH_TITLE--}</strong>
        </div>
-       <div class="ajax_process_close">
-               <strong id="install_process_close" style="padding-left:1.5px;cursor:wait">X</strong>
+       <div class="ajax_progress_close">
+               <strong id="install_progress_close" style="padding-left:1.5px;cursor:wait">X</strong>
        </div>
        <div style="clear:both"></div>
        </div>
        <div style="clear:both"></div>
-       <div class="ajax_process_content" id="install_process_content">
+       <div class="ajax_progress_content" id="install_progress_content">
                <!-- Content will be inserted here by AJAX //-->
        </div>
 </div>
                <!-- Content will be inserted here by AJAX //-->
        </div>
 </div>
@@ -74,7 +74,6 @@ scripts[3] = '{%url,js=js/install-common.js%}';
 // This must be the last one
 scripts[scripts.length] = '{%url,js=js.php?js=install_ajax&install_page=$content[install_page]%}';
 
 // This must be the last one
 scripts[scripts.length] = '{%url,js=js.php?js=install_ajax&install_page=$content[install_page]%}';
 
-// Do this only when all is ready
 // Load all scripts
 if (loadScripts(scripts) == true) {
        // Wait for loadScripts() finishing loading all scripts
 // Load all scripts
 if (loadScripts(scripts) == true) {
        // Wait for loadScripts() finishing loading all scripts
index 765418eab90226f08b31ebcdfa220af8f5594924..d18f7b46e501144d65c965f78a59b198e7dafc56 100644 (file)
@@ -4,5 +4,6 @@
        <li id="install_database_config" class="tab_enabled"><a href="#" title="{--INSTALLER_TAB_NAVIGATION_DATABASE_CONFIG_TITLE--}">{--INSTALLER_TAB_NAVIGATION_DATABASE_CONFIG_LINK--}</a></li>
        <li id="install_smtp_config" class="tab_enabled"><a href="#" title="{--INSTALLER_TAB_NAVIGATION_SMTP_CONFIG_TITLE--}">{--INSTALLER_TAB_NAVIGATION_SMTP_CONFIG_LINK--}</a></li>
        <li id="install_other_config" class="tab_enabled"><a href="#" title="{--INSTALLER_TAB_NAVIGATION_OTHER_CONFIG_TITLE--}">{--INSTALLER_TAB_NAVIGATION_OTHER_CONFIG_LINK--}</a></li>
        <li id="install_database_config" class="tab_enabled"><a href="#" title="{--INSTALLER_TAB_NAVIGATION_DATABASE_CONFIG_TITLE--}">{--INSTALLER_TAB_NAVIGATION_DATABASE_CONFIG_LINK--}</a></li>
        <li id="install_smtp_config" class="tab_enabled"><a href="#" title="{--INSTALLER_TAB_NAVIGATION_SMTP_CONFIG_TITLE--}">{--INSTALLER_TAB_NAVIGATION_SMTP_CONFIG_LINK--}</a></li>
        <li id="install_other_config" class="tab_enabled"><a href="#" title="{--INSTALLER_TAB_NAVIGATION_OTHER_CONFIG_TITLE--}">{--INSTALLER_TAB_NAVIGATION_OTHER_CONFIG_LINK--}</a></li>
+       <li id="install_extensions" class="tab_enabled"><a id="install_extensions_link" class="tabnav_enabled" href="#" title="{--INSTALLER_TAB_NAVIGATION_EXTENSIONS_TITLE--}">{--INSTALLER_TAB_NAVIGATION_EXTENSIONS_LINK--}</a></li>
        <li id="install_overview" class="tab_enabled"><a id="install_overview_link" class="tabnav_enabled" href="#" title="{--INSTALLER_TAB_NAVIGATION_OVERVIEW_TITLE--}">{--INSTALLER_TAB_NAVIGATION_OVERVIEW_LINK--}</a></li>
 </ul>
        <li id="install_overview" class="tab_enabled"><a id="install_overview_link" class="tabnav_enabled" href="#" title="{--INSTALLER_TAB_NAVIGATION_OVERVIEW_TITLE--}">{--INSTALLER_TAB_NAVIGATION_OVERVIEW_LINK--}</a></li>
 </ul>
index 48482634b58f7edd72819956e2489db897b326fd..3864681eb40bf10b58541fc6ba39848264010683 100644 (file)
        <tr>
                <td align="right" class="install_right">{--INSTALLER_MYSQL_PASSWORD1--}</td>
                <td align="left">
        <tr>
                <td align="right" class="install_right">{--INSTALLER_MYSQL_PASSWORD1--}</td>
                <td align="left">
-                       <input type="password" class="form_field" name="mysql[pass1]" size="25" />
+                       <input type="password" class="form_field" name="mysql[password1]" size="25" />
                </td>
        </tr>
        <tr>
                <td align="right" class="install_right">{--INSTALLER_MYSQL_PASSWORD2--}</td>
                <td align="left">
                </td>
        </tr>
        <tr>
                <td align="right" class="install_right">{--INSTALLER_MYSQL_PASSWORD2--}</td>
                <td align="left">
-                       <input type="password" class="form_field" name="mysql[pass2]" size="25" />
+                       <input type="password" class="form_field" name="mysql[password2]" size="25" />
                </td>
        </tr>
        <tr>
                </td>
        </tr>
        <tr>
index 1d6e898bd75c6d22b5e0f19bd6195b1e7950e7fa..661c59c40a7d5cb5ec32bbae2dcb9e11b7137c24 100644 (file)
        <tr>
                <td align="right" class="install_right">{--INSTALLER_SMTP_PASSWORD1--}</td>
                <td align="left">
        <tr>
                <td align="right" class="install_right">{--INSTALLER_SMTP_PASSWORD1--}</td>
                <td align="left">
-                       <input type="password" class="form_field" name="smtp_pass1" size="25" value="$content[smtp_pass1]" />
+                       <input type="password" class="form_field" name="smtp_password1" size="25" value="$content[smtp_password1]" />
                </td>
        </tr>
        <tr>
                <td align="right" class="install_right">{--INSTALLER_SMTP_PASSWORD2--}</td>
                <td align="left">
                </td>
        </tr>
        <tr>
                <td align="right" class="install_right">{--INSTALLER_SMTP_PASSWORD2--}</td>
                <td align="left">
-                       <input type="password" class="form_field" name="smtp_pass2" size="25" value="$content[smtp_pass2]" />
+                       <input type="password" class="form_field" name="smtp_password2" size="25" value="$content[smtp_password2]" />
                </td>
        </tr>
        <tr>
                </td>
        </tr>
        <tr>
@@ -47,8 +47,8 @@
                        <input type="hidden" name="mysql[prefix]" value="$content[mysql_prefix]" />
                        <input type="hidden" name="mysql[type]" value="$content[table_type]" />
                        <input type="hidden" name="mysql[login]" value="$content[mysql_login]" />
                        <input type="hidden" name="mysql[prefix]" value="$content[mysql_prefix]" />
                        <input type="hidden" name="mysql[type]" value="$content[table_type]" />
                        <input type="hidden" name="mysql[login]" value="$content[mysql_login]" />
-                       <input type="hidden" name="mysql[pass1]" value="$content[mysql_pass1]" />
-                       <input type="hidden" name="mysql[pass2]" value="$content[mysql_pass2]" />
+                       <input type="hidden" name="mysql[password1]" value="$content[mysql_password1]" />
+                       <input type="hidden" name="mysql[password2]" value="$content[mysql_password2]" />
                        <input type="submit" class="form_submit" value="{--INSTALLER_NEXT_PAGE--}" />
                </td>
        </tr>
                        <input type="submit" class="form_submit" value="{--INSTALLER_NEXT_PAGE--}" />
                </td>
        </tr>
diff --git a/templates/de/html/install/install_page_extensions.tpl b/templates/de/html/install/install_page_extensions.tpl
new file mode 100644 (file)
index 0000000..326c79c
--- /dev/null
@@ -0,0 +1,11 @@
+<div align="center">
+<div class="install_title">
+       {--INSTALLER_PAGE_EXTENSIONS_TITLE--}
+</div>
+
+<div class="para dashed" style="overflow: scroll; height: 400px;">
+       <form>
+               {%pipe,generateInstallerExtensionTable%}
+       </form>
+</div>
+</div>
index 0561ff86639600ddc9a16db20c2f543c4bbb57fe..a573c0ac7bb5ac66948585f8478e0117d2ed318d 100644 (file)
@@ -85,7 +85,7 @@ if (loadScripts(scripts) == true) {
        // Wait for loadScripts() finishing loading all scripts
        $().ready(function () {
                // Process window
        // Wait for loadScripts() finishing loading all scripts
        $().ready(function () {
                // Process window
-               $("#install_process").draggable({opacity: 0.85});
+               $("#install_progress").draggable({opacity: 0.85});
 
                // Warning window
                $("#install_warning").draggable({opacity: 0.85});
 
                // Warning window
                $("#install_warning").draggable({opacity: 0.85});
index 067fca16baf7621165f3c8a06329b581a4ea9a0d..f1e7e39a16d33b5df3b7dbaea51e91df9bafd78f 100644 (file)
@@ -100,7 +100,7 @@ $().ready(function() {
        //-----------------------------------------
        //              Drag'N'Drop
        //-----------------------------------------
        //-----------------------------------------
        //              Drag'N'Drop
        //-----------------------------------------
-       $('#install_process').draggable({
+       $('#install_progress').draggable({
                opacity: 0.85
        });
 
                opacity: 0.85
        });
 
index f45fea061cdabd1dd9a51b6ef08de6c2c9b09de5..193dd93cff1cd7a40d20cf212cd13e764eceeb22 100644 (file)
        <tr>
                <td align="right">{--PASS_1--}:</td>
                <td>
        <tr>
                <td align="right">{--PASS_1--}:</td>
                <td>
-                       <input type="password" class="form_field" name="pass1" size="10" maxlength="255" />
+                       <input type="password" class="form_field" name="password1" size="10" maxlength="255" />
                </td>
        </tr>
 
        <tr>
                <td class="bottom" align="right">{--PASS_2--}:</td>
                <td class="bottom">
                </td>
        </tr>
 
        <tr>
                <td class="bottom" align="right">{--PASS_2--}:</td>
                <td class="bottom">
-                       <input type="password" class="form_field" name="pass2" size="10" maxlength="255" />
+                       <input type="password" class="form_field" name="password2" size="10" maxlength="255" />
                </td>
        </tr>
 
                </td>
        </tr>
 
index 2dfe5a41fdad86fdd0df02985262b9ff227f67a9..170b57efad28e3409b0d9399018e0bcc738e0575 100644 (file)
                {--SPONSOR_ENTER_PASSWORDS--}:
        </td>
        <td class="bottom">
                {--SPONSOR_ENTER_PASSWORDS--}:
        </td>
        <td class="bottom">
-               <input type="password" class="form_field" name="pass1" size="10" maxlength="255" />
-               <input type="password" class="form_field" name="pass2" size="10" maxlength="255" />
+               <input type="password" class="form_field" name="password1" size="10" maxlength="255" />
+               <input type="password" class="form_field" name="password2" size="10" maxlength="255" />
        </td>
 </tr>
 <tr>
        </td>
 </tr>
 <tr>
index f58fc8e4b6aaa47f83bec8938bd164248f73f4a1..2bb0811191bbe8c0f8270077dbcbd24852ec54ef 100644 (file)
@@ -75,7 +75,7 @@ ul#tabnav li.tab_active {
        color: #e0e0e0;
 }
 
        color: #e0e0e0;
 }
 
-.ajax_error, .ajax_warning, .ajax_process {
+.ajax_error, .ajax_warning, .ajax_progress {
        border: 1px solid #ffffff;
        z-index: 200;
        min-height: 10px;
        border: 1px solid #ffffff;
        z-index: 200;
        min-height: 10px;
@@ -95,11 +95,11 @@ ul#tabnav li.tab_active {
        background-color: #999900;
 }
 
        background-color: #999900;
 }
 
-.ajax_process {
+.ajax_progress {
        background-color: #009900;
 }
 
        background-color: #009900;
 }
 
-.ajax_error_title, .ajax_warning_title, .ajax_process_title {
+.ajax_error_title, .ajax_warning_title, .ajax_progress_title {
        border: 1px solid #ffffff;
        padding: 3px;
        color: #ffffff;
        border: 1px solid #ffffff;
        padding: 3px;
        color: #ffffff;
@@ -115,11 +115,11 @@ ul#tabnav li.tab_active {
        background-color: #bbbb00;
 }
 
        background-color: #bbbb00;
 }
 
-.ajax_process_title {
+.ajax_progress_title {
        background-color: #0000dd;
 }
 
        background-color: #0000dd;
 }
 
-.ajax_error_close, .ajax_warning_close, .ajax_process_close {
+.ajax_error_close, .ajax_warning_close, .ajax_progress_close {
        border: 1px solid #ffffff;
        float: right;
        width: 10px;
        border: 1px solid #ffffff;
        float: right;
        width: 10px;
@@ -140,13 +140,13 @@ ul#tabnav li.tab_active {
        background-color: #bbbb00;
 }
 
        background-color: #bbbb00;
 }
 
-.ajax_process_close {
+.ajax_progress_close {
        color: #c0c0c0;
        background-color: #0000dd;
        cursor: wait;
 }
 
        color: #c0c0c0;
        background-color: #0000dd;
        cursor: wait;
 }
 
-.ajax_error_content, .ajax_warning_content, .ajax_process_content {
+.ajax_error_content, .ajax_warning_content, .ajax_progress_content {
        width: 470px;
        border: 1px solid #ffffff;
        margin-top: 5px;
        width: 470px;
        border: 1px solid #ffffff;
        margin-top: 5px;
index 1172b6e262f2ed3c892391905d97f7421cb12238..497a52214d4f07182fc01d4257d9ffec9a6dbfba 100644 (file)
@@ -733,3 +733,15 @@ li.listing {
        text-align: left;
        font-style: italic;
 }
        text-align: left;
        font-style: italic;
 }
+
+.ui-progressbar {
+       height:2em;
+       text-align:
+       left;
+       overflow: hidden;
+}
+
+.ui-progressbar .ui-progressbar-value {
+       margin: -1px;
+       height:100%;
+}
index af9d78728d4106737c11ec71489dd6fe775851ee..6cda75032a479b83a6ddf4211043a5000593736d 100644 (file)
@@ -75,7 +75,7 @@ ul#tabnav li.tab_active {
        color: #e0e0e0;
 }
 
        color: #e0e0e0;
 }
 
-.ajax_error, .ajax_warning, .ajax_process {
+.ajax_error, .ajax_warning, .ajax_progress {
        border: 1px solid #ffffff;
        z-index: 200;
        min-height: 10px;
        border: 1px solid #ffffff;
        z-index: 200;
        min-height: 10px;
@@ -95,11 +95,11 @@ ul#tabnav li.tab_active {
        background-color: #999900;
 }
 
        background-color: #999900;
 }
 
-.ajax_process {
+.ajax_progress {
        background-color: #0000aa;
 }
 
        background-color: #0000aa;
 }
 
-.ajax_error_title, .ajax_warning_title, .ajax_process_title {
+.ajax_error_title, .ajax_warning_title, .ajax_progress_title {
        border: 1px solid #ffffff;
        padding: 3px;
        color: #ffffff;
        border: 1px solid #ffffff;
        padding: 3px;
        color: #ffffff;
@@ -115,11 +115,11 @@ ul#tabnav li.tab_active {
        background-color: #bbbb00;
 }
 
        background-color: #bbbb00;
 }
 
-.ajax_process_title {
+.ajax_progress_title {
        background-color: #0000dd;
 }
 
        background-color: #0000dd;
 }
 
-.ajax_error_close, .ajax_warning_close, .ajax_process_close {
+.ajax_error_close, .ajax_warning_close, .ajax_progress_close {
        border: 1px solid #ffffff;
        float: right;
        width: 10px;
        border: 1px solid #ffffff;
        float: right;
        width: 10px;
@@ -140,7 +140,7 @@ ul#tabnav li.tab_active {
        background-color: #bbbb00;
 }
 
        background-color: #bbbb00;
 }
 
-.ajax_process_close {
+.ajax_progress_close {
        color: #c0c0c0;
        background-color: #0000dd;
        cursor: wait;
        color: #c0c0c0;
        background-color: #0000dd;
        cursor: wait;
@@ -149,7 +149,7 @@ ul#tabnav li.tab_active {
 .ajax_error_message {
 }
 
 .ajax_error_message {
 }
 
-.ajax_error_content, .ajax_warning_content, .ajax_process_content {
+.ajax_error_content, .ajax_warning_content, .ajax_progress_content {
        width: 470px;
        border: 1px solid #ffffff;
        margin-top: 5px;
        width: 470px;
        border: 1px solid #ffffff;
        margin-top: 5px;
index e48bab2239c91520bebd92e7be6fa472f7b4831e..08e997da50f9d8e60f59b47c51fa4d3863da123d 100644 (file)
@@ -229,7 +229,7 @@ a.logout_box {
 }
 
 .ajax_bug_table {
 }
 
 .ajax_bug_table {
-       background-color: #cc0000;
+       background-color: #aa0000;
        margin: 0px;
        max-width: 100%;
        min-width: 400px;
        margin: 0px;
        max-width: 100%;
        min-width: 400px;
@@ -277,7 +277,7 @@ a.logout_box {
 }
 
 .ajax_bug_table_header {
 }
 
 .ajax_bug_table_header {
-       background-color: #cc0000;
+       background-color: #aa0000;
        color: #ffffff;
 }
 
        color: #ffffff;
 }
 
@@ -774,3 +774,14 @@ li.listing {
        text-align: left;
        font-style: italic;
 }
        text-align: left;
        font-style: italic;
 }
+
+.ui-progressbar {
+       height:2em;
+       text-align: left;
+       overflow: hidden;
+}
+
+.ui-progressbar .ui-progressbar-value {
+       margin: -1px;
+       height:100%;
+}
index f95d638d89af892d799bc90334903fb03659edbf..4823c2b70301d0c1b83fd40f1fe0fdb621ec49d9 100644 (file)
@@ -74,7 +74,7 @@ ul#tabnav li.tab_active {
        color: #e0e0e0;
 }
 
        color: #e0e0e0;
 }
 
-.ajax_error, .ajax_warning, .ajax_process {
+.ajax_error, .ajax_warning, .ajax_progress {
        border: 1px solid #ffffff;
        z-index: 200;
        min-height: 10px;
        border: 1px solid #ffffff;
        z-index: 200;
        min-height: 10px;
@@ -94,11 +94,11 @@ ul#tabnav li.tab_active {
        background-color: #999900;
 }
 
        background-color: #999900;
 }
 
-.ajax_process {
+.ajax_progress {
        background-color: #009900;
 }
 
        background-color: #009900;
 }
 
-.ajax_error_title, .ajax_warning_title, .ajax_process_title {
+.ajax_error_title, .ajax_warning_title, .ajax_progress_title {
        border: 1px solid #ffffff;
        padding: 3px;
        color: #ffffff;
        border: 1px solid #ffffff;
        padding: 3px;
        color: #ffffff;
@@ -114,11 +114,11 @@ ul#tabnav li.tab_active {
        background-color: #bbbb00;
 }
 
        background-color: #bbbb00;
 }
 
-.ajax_process_title {
+.ajax_progress_title {
        background-color: #0000dd;
 }
 
        background-color: #0000dd;
 }
 
-.ajax_error_close, .ajax_warning_close, .ajax_process_close {
+.ajax_error_close, .ajax_warning_close, .ajax_progress_close {
        border: 1px solid #ffffff;
        float: right;
        width: 10px;
        border: 1px solid #ffffff;
        float: right;
        width: 10px;
@@ -140,7 +140,7 @@ ul#tabnav li.tab_active {
        background-color: #bbbb00;
 }
 
        background-color: #bbbb00;
 }
 
-.ajax_process_close {
+.ajax_progress_close {
        color: #c0c0c0;
        background-color: #0000dd;
        cursor: wait;
        color: #c0c0c0;
        background-color: #0000dd;
        cursor: wait;
@@ -149,7 +149,7 @@ ul#tabnav li.tab_active {
 .ajax_error_message {
 }
 
 .ajax_error_message {
 }
 
-.ajax_error_content, .ajax_warning_content, .ajax_process_content {
+.ajax_error_content, .ajax_warning_content, .ajax_progress_content {
        width: 470px;
        border: 1px solid #ffffff;
        margin-top: 5px;
        width: 470px;
        border: 1px solid #ffffff;
        margin-top: 5px;
index 3e6a4dc54783c2cf9f76025da355feadaf71090b..007777528b99c8616a8023bcdff76e251e329b8d 100644 (file)
@@ -699,3 +699,14 @@ li.listing {
        text-align: left;
        font-style: italic;
 }
        text-align: left;
        font-style: italic;
 }
+
+.ui-progressbar {
+       height:2em;
+       text-align: left;
+       overflow: hidden;
+}
+
+.ui-progressbar .ui-progressbar-value {
+       margin: -1px;
+       height:100%;
+}
index f0a3196cabfb4ec11f8f3e29fd67a0c18ad1cf00..8a24ef78faf05b14974a19ba991afd6bc7ac51c3 100644 (file)
@@ -75,7 +75,7 @@ ul#tabnav li.tab_active {
        color: #e0e0e0;
 }
 
        color: #e0e0e0;
 }
 
-.ajax_error, .ajax_warning, .ajax_process {
+.ajax_error, .ajax_warning, .ajax_progress {
        border: 1px solid #ffffff;
        z-index: 200;
        min-height: 10px;
        border: 1px solid #ffffff;
        z-index: 200;
        min-height: 10px;
@@ -95,11 +95,11 @@ ul#tabnav li.tab_active {
        background-color: #999900;
 }
 
        background-color: #999900;
 }
 
-.ajax_process {
+.ajax_progress {
        background-color: #0000aa;
 }
 
        background-color: #0000aa;
 }
 
-.ajax_error_title, .ajax_warning_title, .ajax_process_title {
+.ajax_error_title, .ajax_warning_title, .ajax_progress_title {
        border: 1px solid #ffffff;
        padding: 3px;
        color: #ffffff;
        border: 1px solid #ffffff;
        padding: 3px;
        color: #ffffff;
@@ -115,11 +115,11 @@ ul#tabnav li.tab_active {
        background-color: #bbbb00;
 }
 
        background-color: #bbbb00;
 }
 
-.ajax_process_title {
+.ajax_progress_title {
        background-color: #0000dd;
 }
 
        background-color: #0000dd;
 }
 
-.ajax_error_close, .ajax_warning_close, .ajax_process_close {
+.ajax_error_close, .ajax_warning_close, .ajax_progress_close {
        border: 1px solid #ffffff;
        float: right;
        width: 10px;
        border: 1px solid #ffffff;
        float: right;
        width: 10px;
@@ -141,7 +141,7 @@ ul#tabnav li.tab_active {
        background-color: #bbbb00;
 }
 
        background-color: #bbbb00;
 }
 
-.ajax_process_close {
+.ajax_progress_close {
        color: #c0c0c0;
        background-color: #0000dd;
        cursor: wait;
        color: #c0c0c0;
        background-color: #0000dd;
        cursor: wait;
@@ -150,7 +150,7 @@ ul#tabnav li.tab_active {
 .ajax_error_message {
 }
 
 .ajax_error_message {
 }
 
-.ajax_error_content, .ajax_warning_content, .ajax_process_content {
+.ajax_error_content, .ajax_warning_content, .ajax_progress_content {
        width: 470px;
        border: 1px solid #ffffff;
        margin-top: 5px;
        width: 470px;
        border: 1px solid #ffffff;
        margin-top: 5px;
index b9333764e63d9501e5f74f5e24b7467f8f69716a..a0986647a201574ad35703c06cdd25c0d1ecbd1b 100644 (file)
@@ -591,3 +591,14 @@ li.listing {
        text-align: left;
        font-style: italic;
 }
        text-align: left;
        font-style: italic;
 }
+
+.ui-progressbar {
+       height:2em;
+       text-align: left;
+       overflow: hidden;
+}
+
+.ui-progressbar .ui-progressbar-value {
+       margin: -1px;
+       height:100%;
+}
index e8e3d53a2db7cde15e7597d933dc45a656debda7..ec60b6e061a3e5089d9de98f61751051185221e1 100644 (file)
@@ -595,3 +595,14 @@ li.listing {
 .good {
        color: #00aa00;
 }
 .good {
        color: #00aa00;
 }
+
+.ui-progressbar {
+       height:2em;
+       text-align: left;
+       overflow: hidden;
+}
+
+.ui-progressbar .ui-progressbar-value {
+       margin: -1px;
+       height:100%;
+}
index fed0ba94233b9eb66e5257fd75bb6313db79a2c8..5d7eb1a6233132ba3db81ff17432fe2f833a90e1 100644 (file)
@@ -520,3 +520,14 @@ li.listing {
 .good {
        color: #00aa00;
 }
 .good {
        color: #00aa00;
 }
+
+.ui-progressbar {
+       height:2em;
+       text-align: left;
+       overflow: hidden;
+}
+
+.ui-progressbar .ui-progressbar-value {
+       margin: -1px;
+       height:100%;
+}