From e2117e0432574161181dfbf7915a97d56aa78634 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Wed, 12 Sep 2001 14:20:54 +0000 Subject: [PATCH] formatting --- setup/lang.php | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/setup/lang.php b/setup/lang.php index 7552242f8e..394f8ef4f9 100644 --- a/setup/lang.php +++ b/setup/lang.php @@ -16,7 +16,7 @@ $phpgw_info['flags'] = array( 'noheader' => True, 'nonavbar' => True, - 'currentapp' => "home", + 'currentapp' => 'home', 'noapi' => True ); include('./inc/functions.inc.php'); @@ -25,7 +25,7 @@ // Does not return unless user is authorized if (!$phpgw_setup->auth('Config')) { - Header("Location: index.php"); + Header('Location: index.php'); exit; } $phpgw_setup->loaddb(); @@ -52,7 +52,7 @@ if ($upgrademethod == 'dumpold') { $phpgw_setup->db->query("DELETE FROM lang",__LINE__,__FILE__); - //echo "
Test: dumpold"; + //echo '
Test: dumpold'; } while (list($null,$lang) = each($lang_selected)) { @@ -66,7 +66,7 @@ if ($phpgw_setup->db->f(0) == 0) { - //echo "
Test: addonlynew - True"; + //echo '
Test: addonlynew - True'; $addlang = True; } } @@ -101,13 +101,13 @@ $content = addslashes(chop($content)); if ($upgrademethod == 'addmissing') { - //echo "
Test: addmissing"; + //echo '
Test: addmissing'; $phpgw_setup->db->query("SELECT COUNT(*) FROM lang WHERE message_id='$message_id' and lang='$phpgw_setup->db_lang'",__LINE__,__FILE__); $phpgw_setup->db->next_record(); if ($phpgw_setup->db->f(0) == 0) { - //echo "
Test: addmissing - True - Total: " . $phpgw_setup->db->f(0); + //echo '
Test: addmissing - True - Total: ' . $phpgw_setup->db->f(0); $addit = True; } } @@ -129,7 +129,7 @@ if (! $included) { - Header("Location: index.php"); + Header('Location: index.php'); exit; } @@ -138,7 +138,7 @@ { if ($HTTP_POST_VARS['cancel']) { - Header("Location: index.php"); + Header('Location: index.php'); exit; } @@ -156,11 +156,11 @@ $setup_tpl->set_block('T_lang_main','B_choose_method','V_choose_method'); $stage_title = lang('Multi-Language support setup'); - $stage_desc = lang('This program will help you upgrade or install different languages for phpGroupWare'); - $tbl_width = $newinstall?"60%":"80%"; - $td_colspan = $newinstall?"1":"2"; - $td_align = $newinstall?' align="center"':""; - $hidden_var1 = $newinstall?'':""; + $stage_desc = lang('This program will help you upgrade or install different languages for phpGroupWare'); + $tbl_width = $newinstall ? '60%' : '80%'; + $td_colspan = $newinstall ? '1' : '2'; + $td_align = $newinstall ? ' align="center"' : ''; + $hidden_var1 = $newinstall ? '' : ''; $select_box_desc = lang('Select which languages you would like to use'); $select_box = ''; @@ -169,8 +169,8 @@ { $select_box_langs = $select_box_langs - .'' + .'' ."\n"; } @@ -205,7 +205,7 @@ $setup_tpl->set_var('lang_cancel',lang('cancel')); // True = do not show logout link in top right corner - $phpgw_setup->show_header("$stage_title",True,'config',$ConfigDomain . '(' . $phpgw_domain[$ConfigDomain]["db_type"] . ')'); + $phpgw_setup->show_header("$stage_title",True,'config',$ConfigDomain . '(' . $phpgw_domain[$ConfigDomain]['db_type'] . ')'); $setup_tpl->pparse('out','T_lang_main'); $phpgw_setup->show_footer(); }