From c28c07d63ff8403465283c6657a157a6ef4b022b Mon Sep 17 00:00:00 2001 From: the_systech Date: Thu, 18 Oct 2001 14:56:40 +0000 Subject: [PATCH] Some clean-ups git-svn-id: file:///svn/phpbb/trunk@1236 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/install.php | 25 ++++++++++++------------- phpBB/templates/subSilver/install.tpl | 20 ++++++++++---------- 2 files changed, 22 insertions(+), 23 deletions(-) diff --git a/phpBB/install.php b/phpBB/install.php index da25f31f89..08076d00cf 100644 --- a/phpBB/install.php +++ b/phpBB/install.php @@ -198,7 +198,7 @@ if( defined("PHPBB_INSTALLED") ) // // Sorry this has already been installed can't do anything more with it // - $template->assign_block_vars("error_install", array()); + $template->assign_block_vars("switch_error_install", array()); $template->assign_vars(array( "L_ERROR_TITLE" => $lang['Installer_Error'], "L_ERROR" => $lang['Previous_Install']) @@ -232,8 +232,8 @@ else if( !empty($HTTP_POST_VARS['send_file']) && $HTTP_POST_VARS['send_file'] == } $s_hidden_fields = ''; $s_hidden_fields .= ''; - $template->assign_block_vars("ftp_file", array()); - $template->assign_block_vars("common_install", array()); + $template->assign_block_vars("switch_ftp_file", array()); + $template->assign_block_vars("switch_common_install", array()); $template->assign_vars(array( "L_INSTRUCTION_TEXT" => $lang['ftp_instructs'], "L_FTP_INFO" => $lang['ftp_info'], @@ -265,7 +265,7 @@ else if( !empty($HTTP_POST_VARS['ftp_file']) ) // $s_hidden_fields = ''; $s_hidden_fields .= ''; - $template->assign_block_vars("common_install", array()); + $template->assign_block_vars("switch_common_install", array()); if ( $dbms == 'odbc' ) { // @@ -318,7 +318,7 @@ else if( !empty($HTTP_POST_VARS['ftp_file']) ) // $lang['Inst_Step_2'] = $lang['ODBC_Instructs'] . '
' . $lang['Inst_Step_2']; } - $template->assign_block_vars("common_install", array()); + $template->assign_block_vars("switch_common_install", array()); $template->assign_vars(array( "L_INSTRUCTION_TEXT" => $lang['Inst_Step_2'], "L_SUBMIT" => $lang['Finish_Install'], @@ -362,8 +362,8 @@ else if( empty($install_step) || $admin_pass1 != $admin_pass2 || $dbhost == "" ) $s_hidden_fields = ''; - $template->assign_block_vars("stage_one_install", array()); - $template->assign_block_vars("common_install", array()); + $template->assign_block_vars("switch_stage_one_install", array()); + $template->assign_block_vars("switch_common_install", array()); $template->assign_vars(array( "L_INSTRUCTION_TEXT" => $instruction_text, @@ -451,7 +451,7 @@ else { $error = $db->sql_error(); - $template->assign_block_vars("error_install", array()); + $template->assign_block_vars("switch_error_install", array()); $template->assign_vars(array( "L_ERROR_TITLE" => $lang['Installer_Error'], "L_ERROR" => $lang['Install_db_error'] . '
' . $error['message']) @@ -477,7 +477,7 @@ else { $error = $db->sql_error(); - $template->assign_block_vars("error_install", array()); + $template->assign_block_vars("switch_error_install", array()); $template->assign_vars(array( "L_ERROR_TITLE" => $lang['Installer_Error'], "L_ERROR" => $lang['Install_db_error'] . "
" . $error["message"]) @@ -534,7 +534,7 @@ else { $error = $db->sql_error(); - $template->assign_block_vars("error_install", array()); + $template->assign_block_vars("switch_error_install", array()); $template->assign_vars(array( "L_ERROR_TITLE" => $lang['Installer_Error'], "L_ERROR" => $lang['Install_db_error'] . '

' . $error) @@ -544,7 +544,7 @@ else exit; } } - $template->assign_block_vars("common_install", array()); + $template->assign_block_vars("switch_common_install", array()); // // Write out the config file. // @@ -571,7 +571,7 @@ else $s_hidden_fields = ''; if( extension_loaded('ftp') && !defined('NO_FTP') ) { - $template->assign_block_vars('ftp_option', array()); + $template->assign_block_vars('switch_ftp_option', array()); $lang['Unwriteable_config'] .= '

'.$lang['ftp_option'].'

'; $template->assign_vars(array( "L_CHOOSE_FTP" => $lang['ftp_choose'], @@ -639,5 +639,4 @@ else exit(); } } - ?> diff --git a/phpBB/templates/subSilver/install.tpl b/phpBB/templates/subSilver/install.tpl index e12a90c6b2..ace3c15355 100644 --- a/phpBB/templates/subSilver/install.tpl +++ b/phpBB/templates/subSilver/install.tpl @@ -117,7 +117,7 @@ a.copyright:hover { color: #000000; text-decoration: underline;}
- + @@ -171,16 +171,16 @@ a.copyright:hover { color: #000000; text-decoration: underline;} - - + + - - + + @@ -196,8 +196,8 @@ a.copyright:hover { color: #000000; text-decoration: underline;} - - + + @@ -209,12 +209,12 @@ a.copyright:hover { color: #000000; text-decoration: underline;} - - + + - +
{L_INITIAL_CONFIGURATION}
{L_ADMIN_CONFIRM_PASSWORD}:
{L_ERROR_TITLE}
{L_ERROR}
{L_FTP_INFO}
{L_FTP_PASS}
{L_CHOOSE_FTP}
{L_SEND_FILE}
{S_HIDDEN_FIELDS}