mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
Cleanup the setup_header() and changed the logout button
This commit is contained in:
parent
473f7365b6
commit
00fdbec533
@ -17,24 +17,42 @@
|
||||
|
||||
$phpgw_info["server"]["api_dir"] = $phpgw_info["server"]["include_root"]."/phpgwapi";
|
||||
|
||||
function setup_header($title = ""){
|
||||
function setup_header($title = "",$nologoutbutton = False) {
|
||||
global $phpgw_info, $PHP_SELF;
|
||||
?>
|
||||
|
||||
<head>
|
||||
<title>phpGroupWare setup <?php echo $title; ?></title>
|
||||
<style type="text/css">
|
||||
<!--
|
||||
.link
|
||||
{
|
||||
color: #FFFFFF;
|
||||
}
|
||||
-->
|
||||
</style>
|
||||
</head>
|
||||
<BODY BGCOLOR="FFFFFF" margintop="0" marginleft="0" marginright="0" marginbottom="0">
|
||||
<table border="0" width="100%" cellspacing="0" cellpadding="2">
|
||||
<tr>
|
||||
<td align="left" bgcolor="486591"> <font color="fefefe">phpGroupWare version <?php
|
||||
echo $phpgw_info["server"]["version"]; ?> setup</font>
|
||||
</td>
|
||||
<td align="right" bgcolor="486591">
|
||||
<?php
|
||||
if ($nologoutbutton) {
|
||||
echo " ";
|
||||
} else {
|
||||
echo '<a href="' . $PHP_SELF . '?FormLogout=True" class="link">Logout</a> ';
|
||||
}
|
||||
|
||||
echo '<title>phpGroupWare setup ' . $title . '</title><BODY BGCOLOR="FFFFFF" margintop="0" marginleft="0" '
|
||||
. 'marginright="0" marginbottom="0"><table border="0" width="100%"><tr>'
|
||||
. '<td align="left" bgcolor="486591"> <font color="fefefe">phpGroupWare version '
|
||||
. $phpgw_info["server"]["version"] . ' setup</font></td><td align="right" bgcolor="486591">';
|
||||
echo "<form action='".$PHP_SELF."' method='POST'>\n";
|
||||
echo " <input type='hidden' name='FormLogout' value='True'>\n";
|
||||
echo " <input type='submit' name='Logout' value='Logout'>\n";
|
||||
echo " </form>\n";
|
||||
echo "</td></tr></table>";
|
||||
}
|
||||
|
||||
function loginForm($err=""){
|
||||
global $phpgw_info, $phpgw_domain, $SetupDomain, $SetupPW, $PHP_SELF;
|
||||
|
||||
setup_header("Please login");
|
||||
setup_header("Please login",True);
|
||||
echo "<p><body bgcolor='#ffffff'>\n";
|
||||
echo "<table border=\"0\" align=\"center\">\n";
|
||||
echo " <tr bgcolor=\"486591\">\n";
|
||||
|
@ -60,7 +60,8 @@
|
||||
if (!$ok) {
|
||||
exit;
|
||||
} else {
|
||||
echo "<table width=\"70%\" border='0' align='center' bgcolor='#e6e6e6' cellpadding='3' cellspacing='0'>\n";
|
||||
setup_header();
|
||||
echo "<p><table width=\"70%\" border='0' align='center' bgcolor='#e6e6e6' cellpadding='3' cellspacing='0'>\n";
|
||||
echo "<tr bgcolor='#486591'>";
|
||||
echo "<th align=\"center\"><font color='#fefefe'>phpGroupWare Core Staus</font></th>";
|
||||
echo "</tr>\n";
|
||||
|
Loading…
Reference in New Issue
Block a user