formatting

This commit is contained in:
Miles Lott 2001-09-12 14:20:54 +00:00
parent 9f5a0813b4
commit e2117e0432

View File

@ -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 "<br>Test: dumpold";
//echo '<br>Test: dumpold';
}
while (list($null,$lang) = each($lang_selected))
{
@ -66,7 +66,7 @@
if ($phpgw_setup->db->f(0) == 0)
{
//echo "<br>Test: addonlynew - True";
//echo '<br>Test: addonlynew - True';
$addlang = True;
}
}
@ -101,13 +101,13 @@
$content = addslashes(chop($content));
if ($upgrademethod == 'addmissing')
{
//echo "<br>Test: addmissing";
//echo '<br>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 "<br>Test: addmissing - True - Total: " . $phpgw_setup->db->f(0);
//echo '<br>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?'<input type="hidden" name="newinstall" value="True">':"";
$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 ? '<input type="hidden" name="newinstall" value="True">' : '';
$select_box_desc = lang('Select which languages you would like to use');
$select_box = '';
@ -169,8 +169,8 @@
{
$select_box_langs =
$select_box_langs
.'<option value="' . $phpgw_setup->db->f("lang_id") . '">'
. $phpgw_setup->db->f("lang_name") . '</option>'
.'<option value="' . $phpgw_setup->db->f('lang_id') . '">'
. $phpgw_setup->db->f('lang_name') . '</option>'
."\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();
}