opensmtpdadmin/templates/header.tpl
2022-09-04 20:32:35 +00:00

35 lines
1.5 KiB
Smarty

<?php
@header("Expires: Wed, 29 Feb 1984 00: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>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo isset($LANG['charset']) ? $LANG['charset'] : 'iso-8859-1' ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<?php
if (file_exists(realpath("./stylesheet.css"))) echo "<link rel=\"stylesheet\" href=\"stylesheet.css\">\n";
if (file_exists(realpath("../stylesheet.css"))) echo "<link rel=\"stylesheet\" href=\"../stylesheet.css\">\n";
?>
<title>OpenSMTPD Admin - <?php echo $_SERVER['HTTP_HOST']; ?></title>
</head>
<body>
<div id="login_header">
<?php
if (file_exists(realpath("./stylesheet.css"))) {
echo "<img id=\"login_header_logo\" src=\"images/postbox.png\" />\n";
echo "<img id=\"login_header_logo\" height=\"30px\" src=\"images/opensmtpdadmin.png\" />\n";
}
if (file_exists(realpath("../stylesheet.css"))) {
echo "<img id=\"login_header_logo\" src=\"../images/postbox.png\" />\n";
echo "<img id=\"login_header_logo\" height=\"30px\"% src=\"../images/opensmtpdadmin.png\" />\n";
}
if (SHOW_HEADER == "YES" && HEADER_TEXT) {
echo "<h2>" . HEADER_TEXT . "</h2>\n";
}
?>
</div>