updated to new $_SESSION['header']

This commit is contained in:
Roland Gruber 2003-11-29 12:54:00 +00:00
parent e2f04d8850
commit acddfb773a
22 changed files with 23 additions and 80 deletions

View File

@ -61,10 +61,8 @@ function getConfigProfiles() {
// $page is the URL of the target page
function metaRefresh($page) {
echo $_SESSION['header'];
echo "<html>\n";
echo "<head>\n";
echo "<title></title>\n";
echo "<meta http-equiv=\"refresh\" content=\"0; URL=" . $page . "\">\n";
echo "<title></title>\n";
echo "</head>\n";
echo "<body>\n";
// print link if refresh does not work

View File

@ -68,8 +68,6 @@ echo $_SESSION['header'];
?>
</title>
<link rel="stylesheet" type="text/css" href="../../style/layout.css">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
</head>
<body>
<p align="center"><a href="http://lam.sf.net" target="_blank">

View File

@ -98,8 +98,6 @@ echo $_SESSION['header'];
echo ("<title>" . _("LDAP Account Manager Configuration") . "</title>\n");
echo ("<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n");
echo "<meta http-equiv=\"pragma\" content=\"no-cache\">\n";
echo "<meta http-equiv=\"cache-control\" content=\"no-cache\">\n";
echo ("</head>\n");
echo ("<body>\n");
echo ("<p align=\"center\"><a href=\"http://lam.sf.net\" target=\"new_window\">".

View File

@ -73,8 +73,6 @@ echo $_SESSION['header'];
echo "<title>listusers</title>\n";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n";
echo "<meta http-equiv=\"pragma\" content=\"no-cache\">\n";
echo "<meta http-equiv=\"cache-control\" content=\"no-cache\">\n";
echo "</head><body>\n";
echo ("<p align=\"center\"><a href=\"http://lam.sf.net\" target=\"new_window\">".

View File

@ -42,8 +42,6 @@ echo $_SESSION['header'];
?>
</title>
<link rel="stylesheet" type="text/css" href="../../style/layout.css">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
</head>
<body>
<p align="center"><a href="http://lam.sf.net" target="_blank">

View File

@ -59,12 +59,8 @@ if (($_GET['action'] == "edit") || ($_GET['action'] == "new")) {
}
// display page
echo $_SESSION['header'];
echo "<html>\n";
echo "<head>\n";
echo "<title>Domain Management</title>\n";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../style/layout.css\">\n";
echo "<meta http-equiv=\"pragma\" content=\"no-cache\">\n";
echo "<meta http-equiv=\"cache-control\" content=\"no-cache\">\n";
echo "</head>\n";
echo "<body>\n";
// print message, if needed
@ -86,7 +82,7 @@ if (($_GET['action'] == "edit") || ($_GET['action'] == "new")) {
}
else echo "<input type=\"text\" name=\"dom_name\">\n";
echo "</td>\n";
echo ("<td><a href=\"help.php?HelpNumber=651\" target=\"lamhelp\">" . _("Help") . "</a></td></tr>\n");
echo ("<td><a href=\"help.php?HelpNumber=651\" target=\"lamhelp\">" . _("Help") . "</a></td>\n");
echo "</tr>\n";
echo "<tr>\n";
echo "<td>&nbsp;</td><td>&nbsp;</td>\n";
@ -102,7 +98,7 @@ if (($_GET['action'] == "edit") || ($_GET['action'] == "new")) {
}
else echo "<input type=\"text\" size=\"50\" name=\"dom_SID\">\n";
echo "</td>\n";
echo ("<td><a href=\"help.php?HelpNumber=653\" target=\"lamhelp\">" . _("Help") . "</a></td></tr>\n");
echo ("<td><a href=\"help.php?HelpNumber=653\" target=\"lamhelp\">" . _("Help") . "</a></td>\n");
echo "</tr>\n";
echo "<tr>\n";
echo "<td>&nbsp;</td><td>&nbsp;</td>\n";
@ -113,7 +109,7 @@ if (($_GET['action'] == "edit") || ($_GET['action'] == "new")) {
echo "<td>\n";
echo "<input type=\"text\" name=\"dom_nextRID\" value=\"" . $domain->nextRID . "\">\n";
echo "</td>\n";
echo ("<td><a href=\"help.php?HelpNumber=654\" target=\"lamhelp\">" . _("Help") . "</a></td></tr>\n");
echo ("<td><a href=\"help.php?HelpNumber=654\" target=\"lamhelp\">" . _("Help") . "</a></td>\n");
echo "</tr>\n";
// next user RID
echo "<tr>\n";
@ -121,7 +117,7 @@ if (($_GET['action'] == "edit") || ($_GET['action'] == "new")) {
echo "<td>\n";
echo "<input type=\"text\" name=\"dom_nextUserRID\" value=\"" . $domain->nextUserRID . "\">\n";
echo "</td>\n";
echo ("<td><a href=\"help.php?HelpNumber=655\" target=\"lamhelp\">" . _("Help") . "</a></td></tr>\n");
echo ("<td><a href=\"help.php?HelpNumber=655\" target=\"lamhelp\">" . _("Help") . "</a></td>\n");
echo "</tr>\n";
// next group RID
echo "<tr>\n";
@ -129,7 +125,7 @@ if (($_GET['action'] == "edit") || ($_GET['action'] == "new")) {
echo "<td>\n";
echo "<input type=\"text\" name=\"dom_nextGroupRID\" value=\"" . $domain->nextGroupRID . "\">\n";
echo "</td>\n";
echo ("<td><a href=\"help.php?HelpNumber=656\" target=\"lamhelp\">" . _("Help") . "</a></td></tr>\n");
echo ("<td><a href=\"help.php?HelpNumber=656\" target=\"lamhelp\">" . _("Help") . "</a></td>\n");
echo "</tr>\n";
echo "<tr>\n";
echo "<td>&nbsp;</td><td>&nbsp;</td>\n";
@ -141,7 +137,7 @@ if (($_GET['action'] == "edit") || ($_GET['action'] == "new")) {
if ($_GET['action'] == "edit") echo $domain->RIDbase . "\n";
else echo "<input type=\"text\" name=\"dom_RIDbase\" value=\"" . $domain->RIDbase . "\">\n";
echo "</td>\n";
echo ("<td><a href=\"help.php?HelpNumber=657\" target=\"lamhelp\">" . _("Help") . "</a></td></tr>\n");
echo ("<td><a href=\"help.php?HelpNumber=657\" target=\"lamhelp\">" . _("Help") . "</a></td>\n");
echo "</tr>\n";
echo "<tr>\n";
echo "<td>&nbsp;</td><td>&nbsp;</td>\n";
@ -159,7 +155,7 @@ if (($_GET['action'] == "edit") || ($_GET['action'] == "new")) {
}
echo "</select>";
echo "</td>\n";
echo ("<td><a href=\"help.php?HelpNumber=652\" target=\"lamhelp\">" . _("Help") . "</a></td></tr>\n");
echo ("<td><a href=\"help.php?HelpNumber=652\" target=\"lamhelp\">" . _("Help") . "</a></td>\n");
echo "</tr>\n";
echo "<tr>\n";
echo "<td>&nbsp;</td><td>&nbsp;</td>\n";
@ -192,8 +188,7 @@ elseif ($_GET['action'] == "delete") {
$DNs = str_replace("\\'", "", $_GET['DN']);
$DNs = explode(";", $DNs);
// display page
echo "<html>\n";
echo "<head>\n";
echo $_SESSION['header'];
echo "<title>Domain Management</title>\n";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../style/layout.css\">\n";
echo "</head>\n";
@ -219,8 +214,7 @@ elseif ($_GET['action'] == "delete") {
// save domain
elseif ($_POST['sub_save']) {
echo "<html>\n";
echo "<head>\n";
echo $_SESSION['header'];
echo "<title>Domain Management</title>\n";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../style/layout.css\">\n";
echo "</head>\n";
@ -297,8 +291,7 @@ elseif ($_POST['sub_back']) {
elseif ($_POST['sub_delete']) {
$DNs = explode(";", $_POST['delDN']);
// display page
echo "<html>\n";
echo "<head>\n";
echo $_SESSION['header'];
echo "<title>Domain Management</title>\n";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../style/layout.css\">\n";
echo "</head>\n";

View File

@ -125,8 +125,7 @@ if ($_POST['add_suff'] || $_POST['cancel']) {
}
}
echo $_SESSION['header'];
echo "<html>\n";
echo "<head><title>initsuff</title>\n";
echo "<title>initsuff</title>\n";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../style/layout.css\">\n";
echo "</head>\n<body>\n";
// print error/success messages
@ -177,7 +176,7 @@ $new_suff = str_replace("\\'", "", $new_suff);
$new_suff = explode(";", $new_suff);
echo $_SESSION['header'];
echo "<html><head><title>initsuff</title>\n";
echo "<title>initsuff</title>\n";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../style/layout.css\">\n";
echo "</head><body>\n";
echo "<p>&nbsp;</p>\n";

View File

@ -59,10 +59,8 @@ if ($_POST['new_domain'] || $_POST['del_domain']){
}
echo $_SESSION['header'];
echo "<html><head><title>listdomains</title>\n";
echo "<title>listdomains</title>\n";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n";
echo "<meta http-equiv=\"pragma\" content=\"no-cache\">\n";
echo "<meta http-equiv=\"cache-control\" content=\"no-cache\">\n";
echo "</head><body>\n";
echo "<script src=\"../../lib/functions.js\" type=\"text/javascript\" language=\"javascript\"></script>\n";

View File

@ -85,10 +85,8 @@ if ($_POST['new_group'] || $_POST['del_group'] || $_POST['pdf_group'] || $_POST[
}
echo $_SESSION['header'];
echo "<html><head><title>listgroups</title>\n";
echo "<title>listgroups</title>\n";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n";
echo "<meta http-equiv=\"pragma\" content=\"no-cache\">\n";
echo "<meta http-equiv=\"cache-control\" content=\"no-cache\">\n";
echo "</head><body>\n";
echo "<script src=\"../../lib/functions.js\" type=\"text/javascript\" language=\"javascript\"></script>\n";

View File

@ -79,10 +79,8 @@ if ($_POST['new_host'] || $_POST['del_host'] || $_POST['pdf_host'] || $_POST['pd
}
echo $_SESSION['header'];
echo "<html><head><title>listhosts</title>\n";
echo "<title>listhosts</title>\n";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n";
echo "<meta http-equiv=\"pragma\" content=\"no-cache\">\n";
echo "<meta http-equiv=\"cache-control\" content=\"no-cache\">\n";
echo "</head><body>\n";
echo "<script src=\"../../lib/functions.js\" type=\"text/javascript\" language=\"javascript\"></script>\n";

View File

@ -113,10 +113,8 @@ if ($_POST['new_user'] || $_POST['del_user'] || $_POST['pdf_user'] || $_POST['pd
echo $_SESSION['header'];
echo "<html><head><title>listusers</title>\n";
echo "<title>listusers</title>\n";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n";
echo "<meta http-equiv=\"pragma\" content=\"no-cache\">\n";
echo "<meta http-equiv=\"cache-control\" content=\"no-cache\">\n";
echo "</head><body>\n";
echo "<script src=\"../../lib/functions.js\" type=\"text/javascript\" language=\"javascript\"></script>\n";

View File

@ -47,10 +47,8 @@ if ($dn) {
else {
// print error message if user was not found
echo $_SESSION['header'];
echo "<html><head><title>userlink</title>\n";
echo "<title>userlink</title>\n";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n";
echo "<meta http-equiv=\"pragma\" content=\"no-cache\">\n";
echo "<meta http-equiv=\"cache-control\" content=\"no-cache\">\n";
echo "</head><body>\n";
StatusMessage("ERROR", "", _("This user was not found!") . " (" . $user . ")");
echo "<p>&nbsp;</p>";

View File

@ -48,8 +48,6 @@ unset($_SESSION);
// print logout message
?>
<html>
<head>
<title>
<?php echo _("Logout"); ?>
</title>

View File

@ -52,8 +52,6 @@ if ($_SESSION['config']->is_samba3()) {
}
echo $_SESSION['header'];
echo ("<html>\n");
echo ("<head>\n");
echo ("<title>LDAP Account Manager</title>\n");
echo ("<link rel=\"stylesheet\" type=\"text/css\" href=\"../style/layout.css\">");
echo ("</head>\n");

View File

@ -31,12 +31,8 @@ session_save_path("../sess");
setlanguage();
echo $_SESSION['header'];
?>
<html>
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="../style/layout.css">
</head>

View File

@ -297,8 +297,6 @@ if ($_POST['submit']) {
// print header
echo $_SESSION['header'];
echo ("<html>\n");
echo ("<head>\n");
echo ("<title>OU-Editor</title>\n");
echo ("<link rel=\"stylesheet\" type=\"text/css\" href=\"../style/layout.css\">\n");
echo ("</head>\n");
@ -330,12 +328,8 @@ function display_main() {
// display main page
echo $_SESSION['header'];
echo ("<html>\n");
echo ("<head>\n");
echo ("<title>OU-Editor</title>\n");
echo ("<link rel=\"stylesheet\" type=\"text/css\" href=\"../style/layout.css\">\n");
echo "<meta http-equiv=\"pragma\" content=\"no-cache\">\n";
echo "<meta http-equiv=\"cache-control\" content=\"no-cache\">\n";
echo ("</head>\n");
echo ("<body>\n");
echo ("<br>\n");

View File

@ -50,9 +50,7 @@ if (!$_SESSION['ldap'] || !$_SESSION['ldap']->server()) {
// print header
echo $_SESSION['header'];
echo "<html><head>\n<title></title>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n";
echo "<meta http-equiv=\"pragma\" content=\"no-cache\">\n";
echo "<meta http-equiv=\"cache-control\" content=\"no-cache\">\n";
echo "<title></title>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n";
echo "</head>\n<body>\n<br>\n";
// save user profile

View File

@ -41,11 +41,8 @@ if (!$_SESSION['ldap'] || !$_SESSION['ldap']->server()) {
// print standard header
echo $_SESSION['header'];
echo ("<html>\n");
echo ("<head><title>" . _("Delete User Profile") . "</title>\n");
echo ("<title>" . _("Delete User Profile") . "</title>\n");
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n";
echo "<meta http-equiv=\"pragma\" content=\"no-cache\">\n";
echo "<meta http-equiv=\"cache-control\" content=\"no-cache\">\n";
echo ("</head>\n<body>\n<p><br></p>\n");
// check if admin has submited delete operation

View File

@ -49,9 +49,7 @@ if ($_SESSION['config']->get_scriptPath()) {
// print header
echo $_SESSION['header'];
echo "<html><head>\n<title></title>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n";
echo "<meta http-equiv=\"pragma\" content=\"no-cache\">\n";
echo "<meta http-equiv=\"cache-control\" content=\"no-cache\">\n";
echo "<title></title>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n";
echo "</head><body><br>\n";
$acct = new Account();

View File

@ -42,9 +42,7 @@ if (!$_SESSION['ldap'] || !$_SESSION['ldap']->server()) {
// print header
echo $_SESSION['header'];
echo "<html><head>\n<title></title>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n";
echo "<meta http-equiv=\"pragma\" content=\"no-cache\">\n";
echo "<meta http-equiv=\"cache-control\" content=\"no-cache\">\n";
echo "<title></title>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n";
echo "</head><body><br>\n";
$acct = new Account();

View File

@ -115,12 +115,8 @@ for ($i = 0; $i < sizeof($hstprof); $i++) {
echo $_SESSION['header'];
?>
<html>
<head>
<title>LDAP Account Manager</title>
<link rel="stylesheet" type="text/css" href="../../style/layout.css">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
</head>
<body>
<p></p>

View File

@ -49,9 +49,7 @@ if ($_SESSION['config']->get_scriptPath()) {
// print header
echo $_SESSION['header'];
echo "<html><head>\n<title></title>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n";
echo "<meta http-equiv=\"pragma\" content=\"no-cache\">\n";
echo "<meta http-equiv=\"cache-control\" content=\"no-cache\">\n";
echo "<title></title>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n";
echo "</head><body><br>\n";
$acct = new Account();