You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
2.0 KiB
PHTML
61 lines
2.0 KiB
PHTML
18 years ago
|
<?php
|
||
|
@header ("Expires: Sun, 16 Mar 2003 05:00:00 GMT");
|
||
|
@header ("Last-Modified: " . gmdate ("D, d M Y H:i:s") . " GMT");
|
||
|
@header ("Cache-Control: no-store, no-cache, must-revalidate");
|
||
|
@header ("Cache-Control: post-check=0, pre-check=0", false);
|
||
|
@header ("Pragma: no-cache");
|
||
|
?>
|
||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||
|
<head>
|
||
17 years ago
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||
18 years ago
|
<?php
|
||
18 years ago
|
if (file_exists (realpath ("./stylesheet.css"))) {
|
||
|
print "<link rel=\"stylesheet\" type=\"text/css\" href=\"stylesheet.css\" />\n";
|
||
|
} elseif (file_exists (realpath ("../stylesheet.css"))) {
|
||
|
print "<link rel=\"stylesheet\" type=\"text/css\" href=\"../stylesheet.css\" />\n";
|
||
|
}
|
||
18 years ago
|
?>
|
||
|
<title>Postfix Admin - <?php print $_SERVER['HTTP_HOST']; ?></title>
|
||
|
</head>
|
||
|
<body>
|
||
|
<div id="login_header">
|
||
|
<?php
|
||
|
if (file_exists (realpath ("./stylesheet.css")))
|
||
|
{
|
||
|
print "<img id=\"login_header_logo\" src=\"images/postbox.png\" />\n";
|
||
|
print "<img id=\"login_header_logo2\" src=\"images/postfixadmin2.png\" />\n";
|
||
18 years ago
|
} elseif (file_exists (realpath ("../stylesheet.css")))
|
||
18 years ago
|
{
|
||
|
print "<img id=\"login_header_logo\" src=\"../images/postbox.png\" />\n";
|
||
|
print "<img id=\"login_header_logo2\" src=\"../images/postfixadmin2.png\" />\n";
|
||
|
}
|
||
|
|
||
|
if (($CONF['show_header_text'] == "YES") and ($CONF['header_text']))
|
||
|
{
|
||
|
print "<h2>" . $CONF['header_text'] . "</h2>\n";
|
||
|
}
|
||
|
?>
|
||
|
</div>
|
||
17 years ago
|
|
||
|
<?php
|
||
|
if(isset($_SESSION['flash'])) {
|
||
|
if(isset($_SESSION['flash']['info'])) {
|
||
|
echo '<ul class="flash-info">';
|
||
|
foreach($_SESSION['flash']['info'] as $msg) {
|
||
|
echo "<li>$msg</li>";
|
||
|
}
|
||
|
echo '</ul>';
|
||
|
}
|
||
|
if(isset($_SESSION['flash']['error'])) {
|
||
|
echo '<ul class="flash-error">';
|
||
|
foreach($_SESSION['flash']['error'] as $msg) {
|
||
|
echo "<li>$msg</li>";
|
||
|
}
|
||
|
echo '</ul>';
|
||
|
}
|
||
|
/* nuke it from orbit. It's the only way to be sure. */
|
||
|
$_SESSION['flash'] = array();
|
||
|
}
|