cleaned up a little code

This commit is contained in:
seek3r 2000-12-29 19:31:23 +00:00
parent 82ac91886f
commit f32f3ab843

View File

@ -22,23 +22,26 @@
echo ' echo '
<html> <html>
<head> <head>
<title>phpGroupWare Setup'; <title>phpGroupWare Setup
if ($title != ""){echo " - ".$title;} ';
echo'</title> if ($title != ""){echo " - ".$title;}
<style type="text/css"><!-- .link { color: #FFFFFF; } --></style> echo'
</title>
<style type="text/css"><!-- .link { color: #FFFFFF; } --></style>
</head> </head>
<BODY BGCOLOR="FFFFFF" margintop="0" marginleft="0" marginright="0" marginbottom="0"> <BODY BGCOLOR="FFFFFF" margintop="0" marginleft="0" marginright="0" marginbottom="0">
<table border="0" width="100%" cellspacing="0" cellpadding="2"> <table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr> <tr>
<td align="left" bgcolor="486591">&nbsp;<font color="fefefe">phpGroupWare version '.$phpgw_info["server"]["versions"]["phpgwapi"].' setup</font> <td align="left" bgcolor="486591">&nbsp;<font color="fefefe">phpGroupWare version '.$phpgw_info["server"]["versions"]["phpgwapi"].' setup</font>
</td> </td>
<td align="right" bgcolor="486591">'; <td align="right" bgcolor="486591">
if ($nologoutbutton) { ';
echo "&nbsp;"; if ($nologoutbutton) {
} else { echo "&nbsp;";
echo '<a href="' . $PHP_SELF . '?FormLogout='.$logoutfrom.'" class="link">Logout</a>&nbsp;'; } else {
} echo '<a href="' . $PHP_SELF . '?FormLogout='.$logoutfrom.'" class="link">Logout</a>&nbsp;';
echo "</td></tr></table>"; }
echo "</td></tr></table>";
} }
function login_form() function login_form()
{ {
@ -109,7 +112,7 @@
$phpgw_setup->template->set_file(array("header" => "header.inc.php.template")); $phpgw_setup->template->set_file(array("header" => "header.inc.php.template"));
while(list($k,$v) = each($setting)) { while(list($k,$v) = each($setting)) {
$phpgw_setup->template->set_var(strtoupper($k),$v); $phpgw_setup->template->set_var(strtoupper($k),$v);
} }
return $phpgw_setup->template->parse("out","header"); return $phpgw_setup->template->parse("out","header");
} }
@ -325,8 +328,7 @@
} }
$phpgw_info["setup"]["dontshowtheheaderagain"] = True; $phpgw_info["setup"]["dontshowtheheaderagain"] = True;
?> ?>
<head> <head>
<title>phpGroupWare setup <?php echo $title; ?></title> <title>phpGroupWare setup <?php echo $title; ?></title>
<style type="text/css"> <style type="text/css">
@ -345,14 +347,13 @@
echo $phpgw_info["server"]["versions"]["phpgwapi"]; ?> setup</font> echo $phpgw_info["server"]["versions"]["phpgwapi"]; ?> setup</font>
</td> </td>
<td align="right" bgcolor="486591"> <td align="right" bgcolor="486591">
<?php <?php
if ($nologoutbutton) { if ($nologoutbutton) {
echo "&nbsp;"; echo "&nbsp;";
} else { } else {
echo '<a href="' . $PHP_SELF . '?FormLogout=True" class="link">Logout</a>&nbsp;'; echo '<a href="' . $PHP_SELF . '?FormLogout=True" class="link">Logout</a>&nbsp;';
} }
echo "</td></tr></table>";
echo "</td></tr></table>";
} }
} }
?> ?>