Hide the logo and login info when in the install.php.

This commit is contained in:
Mark Crane 2014-03-19 05:01:25 +00:00
parent 6e91c4778a
commit 03a5b2c281
1 changed files with 86 additions and 78 deletions

View File

@ -845,12 +845,14 @@ table tr:nth-last-child(-5) td:first-of-type {
<tr>
<td width='50%'>
<?php
if ($_SERVER['PHP_SELF'] != PROJECT_PATH."/resources/install.php") {
if (strlen(PROJECT_PATH) > 0) {
echo "<a href='".PROJECT_PATH."'><img src='".PROJECT_PATH."/themes/enhanced/images/logo.png' /></a>";
}
else {
echo "<a href='/'><img src='/themes/enhanced/images/logo.png' /></a>";
}
}
?>
</td>
<td width='50%' style='padding-right: 15px;' align='right' valign='middle'>
@ -864,6 +866,7 @@ table tr:nth-last-child(-5) td:first-of-type {
}
//logged out show the login
if ($_SERVER['PHP_SELF'] != PROJECT_PATH."/resources/install.php") {
if (strlen($_SESSION["username"]) == 0) {
//add multi-lingual support
require_once "core/user_settings/app_languages.php";
@ -929,6 +932,7 @@ table tr:nth-last-child(-5) td:first-of-type {
echo "</form>";
echo "</div>";
}
}
?>
&nbsp;
</td>
@ -936,7 +940,9 @@ table tr:nth-last-child(-5) td:first-of-type {
</table>
</td>
</tr>
<?php if (strlen($_SESSION["username"]) > 0) { ?>
<?php
if (strlen($_SESSION["username"]) > 0) {
?>
<tr>
<td class='' colspan='2' width='100%' height='7px'><img src='<!--{project_path}-->/themes/enhanced/images/blank.gif'></td>
</tr>
@ -948,7 +954,9 @@ table tr:nth-last-child(-5) td:first-of-type {
<tr>
<td class='' colspan='2' width='100%' height='7px'><img src='<!--{project_path}-->/themes/enhanced/images/blank.gif'></td>
</tr>
<?php } ?>
<?php
}
?>
<tr>
<td valign='top' align='center' width='100%'>
<table width='100%' cellpadding='0' cellspacing='0' border='0'>