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.
postfixadmin/site_lib.php

52 lines
1.4 KiB
PHTML

<?
//
// If site_lib.php is called directly, redirect to login.php
//
if (ereg("site_lib.php", $PHP_SELF)) {
header("Location: login.php");
}
$title = "Mail Admin";
$subtitle = "";
$version = "Built on Postfix Admin v1.3.7";
$db_host = "localhost";
$db_name = "postfix";
$db_user = "postfixadmin";
$db_pass = "postfixadmin";
//
// print_menu
// Action: Prints out the requirement menu bar
// Call: print_menu()
//
function print_menu() {
print "<table>\n";
print "<tr>\n";
print "<td width=8>&nbsp;</td>\n";
print "<td class=menu>\n";
print "<a target=_top href=main.php?" . session_name() . "=" . session_id() . ">Overview</a>";
print "</td>\n";
print "<td width=8>&nbsp;</td>\n";
print "<td class=menu>\n";
print "<a target=_top href=alias.php?" . session_name() . "=" . session_id() . ">Add Alias</a>";
print "</td>\n";
print "<td width=8>&nbsp;</td>\n";
print "<td class=menu>\n";
print "<a target=_top href=mailbox.php?" . session_name() . "=" . session_id() . ">Add Mailbox</a>";
print "</td>\n";
print "<td width=8>&nbsp;</td>\n";
print "<td class=menu>\n";
print "<a target=_top href=passwd.php?" . session_name() . "=" . session_id() . ">Passwd</a>";
print "</td>\n";
print "<td width=8>&nbsp;</td>\n";
print "<td class=menu>\n";
print "<a target=_top href=logout.php?" . session_name() . "=" . session_id() . ">Logout</a>";
print "</td>\n";
print "<td width=8>&nbsp;</td>\n";
print "</tr>\n";
print "</table>\n";
}
?>