added header from session

This commit is contained in:
Roland Gruber 2003-07-29 11:52:26 +00:00
parent 3edd9f4ab4
commit 8b2cd651db
20 changed files with 23 additions and 48 deletions

View File

@ -58,8 +58,7 @@ session_unregister('samba3');
session_unregister('domainSID'); session_unregister('domainSID');
session_unregister('filename'); session_unregister('filename');
echo ("<?xml version=\"1.0\" encoding=\"ISO-8859-15\"?>"); echo $_SESSION['header'];
echo ("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">");
?> ?>

View File

@ -101,8 +101,7 @@ if (!(($conf->get_Passwd()) == $passwd)) {
exit; exit;
} }
echo ("<?xml version=\"1.0\" encoding=\"ISO-8859-15\"?>\n"); echo $_SESSION['header'];
echo ("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n");
echo ("<html>\n"); echo ("<html>\n");
echo ("<head>\n"); echo ("<head>\n");

View File

@ -68,8 +68,7 @@ if ($passwd != $conf->get_Passwd()) {
exit; exit;
} }
echo ("<?xml version=\"1.0\" encoding=\"ISO-8859-15\"?>\n"); echo $_SESSION['header'];
echo ("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n");
echo "<html><head><title>listusers</title>\n"; echo "<html><head><title>listusers</title>\n";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n"; echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n";

View File

@ -32,8 +32,7 @@ session_save_path("../../sess");
setlanguage(); setlanguage();
echo ("<?xml version=\"1.0\" encoding=\"ISO-8859-15\"?>"); echo $_SESSION['header'];
echo ("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">");
?> ?>

View File

@ -31,9 +31,6 @@ session_save_path("../sess");
setlanguage(); setlanguage();
echo ("<?xml version=\"1.0\" encoding=\"ISO-8859-15\"?>\n");
echo ("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n");
// add/edit domain // add/edit domain
if (($_GET['action'] == "edit") || ($_GET['action'] == "new")) { if (($_GET['action'] == "edit") || ($_GET['action'] == "new")) {
@ -59,6 +56,7 @@ if (($_GET['action'] == "edit") || ($_GET['action'] == "new")) {
$domain_suffix = $_SESSION['config']->get_domainSuffix(); $domain_suffix = $_SESSION['config']->get_domainSuffix();
} }
// display page // display page
echo $_SESSION['header'];
echo "<html>\n"; echo "<html>\n";
echo "<head>\n"; echo "<head>\n";
echo "<title>Domain Management</title>\n"; echo "<title>Domain Management</title>\n";

View File

@ -88,8 +88,7 @@ $new_suff = $_GET['suffs'];
$new_suff = str_replace("\\'", "", $new_suff); $new_suff = str_replace("\\'", "", $new_suff);
$new_suff = explode(";", $new_suff); $new_suff = explode(";", $new_suff);
echo ("<?xml version=\"1.0\" encoding=\"ISO-8859-15\"?>\n"); echo $_SESSION['header'];
echo ("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n");
echo "<html><head><title>initsuff</title>\n"; echo "<html><head><title>initsuff</title>\n";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../style/layout.css\">\n"; echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../style/layout.css\">\n";
echo "</head><body>\n"; echo "</head><body>\n";

View File

@ -60,8 +60,7 @@ if ($_POST['new_domain'] || $_POST['del_domain']){
exit; exit;
} }
echo ("<?xml version=\"1.0\" encoding=\"ISO-8859-15\"?>\n"); echo $_SESSION['header'];
echo ("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n");
echo "<html><head><title>listdomains</title>\n"; echo "<html><head><title>listdomains</title>\n";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n"; echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n";
echo "</head><body>\n"; echo "</head><body>\n";

View File

@ -60,8 +60,7 @@ if ($_POST['new_group'] || $_POST['del_group']){
exit; exit;
} }
echo ("<?xml version=\"1.0\" encoding=\"ISO-8859-15\"?>\n"); echo $_SESSION['header'];
echo ("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n");
echo "<html><head><title>listgroups</title>\n"; echo "<html><head><title>listgroups</title>\n";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n"; echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n";
echo "</head><body>\n"; echo "</head><body>\n";

View File

@ -60,8 +60,7 @@ if ($_POST['new_host'] || $_POST['del_host']){
exit; exit;
} }
echo ("<?xml version=\"1.0\" encoding=\"ISO-8859-15\"?>\n"); echo $_SESSION['header'];
echo ("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n");
echo "<html><head><title>listhosts</title>\n"; echo "<html><head><title>listhosts</title>\n";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n"; echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n";
echo "</head><body>\n"; echo "</head><body>\n";

View File

@ -36,10 +36,6 @@ setlanguage();
// copy HTTP-GET variables to HTTP-POST // copy HTTP-GET variables to HTTP-POST
$_POST = $_POST + $_GET; $_POST = $_POST + $_GET;
// insert header for html file
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-15\"?>\n";
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n";
$usr_units = $_SESSION['usr_units']; $usr_units = $_SESSION['usr_units'];
session_register('usr_units'); session_register('usr_units');
@ -60,7 +56,7 @@ if ($_POST['new_user'] || $_POST['del_user']){
exit; exit;
} }
echo $_SESSION['header'];
echo "<html><head><title>listusers</title>\n"; echo "<html><head><title>listusers</title>\n";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n"; echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n";

View File

@ -46,8 +46,7 @@ if ($dn) {
} }
else { else {
// print error message if user was not found // print error message if user was not found
echo ("<?xml version=\"1.0\" encoding=\"ISO-8859-15\"?>\n"); echo $_SESSION['header'];
echo ("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n");
echo "<html><head><title>userlink</title>\n"; echo "<html><head><title>userlink</title>\n";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n"; echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n";
echo "</head><body>\n"; echo "</head><body>\n";

View File

@ -42,8 +42,7 @@ session_destroy();
// print logout message // print logout message
echo ("<?xml version=\"1.0\" encoding=\"ISO-8859-15\"?>\n"); echo $_SESSION['header'];
echo ("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n");
?> ?>

View File

@ -52,8 +52,7 @@ if ($conf->Suff_map && ($conf->Suff_map != "")) {
if (!$res) $new_suffs[] = $conf->Suff_map; if (!$res) $new_suffs[] = $conf->Suff_map;
} }
echo ("<?xml version=\"1.0\" encoding=\"ISO-8859-15\"?>\n"); echo $_SESSION['header'];
echo ("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Frameset//EN\" \"http://www.w3.org/TR/frameset.dtd\">\n");
echo ("<html>\n"); echo ("<html>\n");
echo ("<head>\n"); echo ("<head>\n");
echo ("<title>LDAP Account Manager</title>\n"); echo ("<title>LDAP Account Manager</title>\n");

View File

@ -30,8 +30,7 @@ session_save_path("../sess");
setlanguage(); setlanguage();
echo ("<?xml version=\"1.0\" encoding=\"ISO-8859-15\"?>\n"); echo $_SESSION['header'];
echo ("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n");
?> ?>

View File

@ -231,8 +231,7 @@ if ($_POST['submit']) {
} }
// print header // print header
echo ("<?xml version=\"1.0\" encoding=\"ISO-8859-15\"?>\n"); echo $_SESSION['header'];
echo ("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n");
echo ("<html>\n"); echo ("<html>\n");
echo ("<head>\n"); echo ("<head>\n");
echo ("<title>OU-Editor</title>\n"); echo ("<title>OU-Editor</title>\n");
@ -264,8 +263,7 @@ function display_main() {
$hst_units = $_SESSION['ldap']->search_units($_SESSION["config"]->get_HostSuffix()); $hst_units = $_SESSION['ldap']->search_units($_SESSION["config"]->get_HostSuffix());
// display main page // display main page
echo ("<?xml version=\"1.0\" encoding=\"ISO-8859-15\"?>\n"); echo $_SESSION['header'];
echo ("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n");
echo ("<html>\n"); echo ("<html>\n");
echo ("<head>\n"); echo ("<head>\n");
echo ("<title>OU-Editor</title>\n"); echo ("<title>OU-Editor</title>\n");

View File

@ -46,8 +46,7 @@ if (!$_SESSION['ldap'] || !$_SESSION['ldap']->server()) {
} }
// print header // print header
echo ("<?xml version=\"1.0\" encoding=\"ISO-8859-15\"?>\n"); echo $_SESSION['header'];
echo ("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n");
echo ("<html><head>\n<title></title>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n</head><body><br>\n"); echo ("<html><head>\n<title></title>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n</head><body><br>\n");
// save user profile // save user profile

View File

@ -37,12 +37,11 @@ if (!$_SESSION['ldap'] || !$_SESSION['ldap']->server()) {
} }
// print standard header // print standard header
echo ("<?xml version=\"1.0\" encoding=\"ISO-8859-15\"?>\n"); echo $_SESSION['header'];
echo ("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n"); echo ("<html>\n");
echo ("<html>");
echo ("<head><title>" . _("Delete User Profile") . "</title>\n"); echo ("<head><title>" . _("Delete User Profile") . "</title>\n");
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n"; echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n";
echo ("</head>\n<body>\n<p><br></p>"); echo ("</head>\n<body>\n<p><br></p>\n");
// check if admin has submited delete operation // check if admin has submited delete operation
if ($_POST['submit']) { if ($_POST['submit']) {

View File

@ -38,8 +38,7 @@ if (!$_SESSION['ldap'] || !$_SESSION['ldap']->server()) {
} }
// print header // print header
echo ("<?xml version=\"1.0\" encoding=\"ISO-8859-15\"?>\n"); echo $_SESSION['header'];
echo ("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n");
echo ("<html><head>\n<title></title>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n</head><body><br>\n"); echo ("<html><head>\n<title></title>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n</head><body><br>\n");
$acct = new Account(); $acct = new Account();

View File

@ -86,8 +86,7 @@ for ($i = 0; $i < sizeof($hstprof); $i++) {
$hostprofiles = $hostprofiles . "<option>" . $hstprof[$i] . "</option>\n"; $hostprofiles = $hostprofiles . "<option>" . $hstprof[$i] . "</option>\n";
} }
echo ("<?xml version=\"1.0\" encoding=\"ISO-8859-15\"?>\n"); echo $_SESSION['header'];
echo ("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Strict//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\n");
?> ?>
<html> <html>

View File

@ -38,8 +38,7 @@ if (!$_SESSION['ldap'] || !$_SESSION['ldap']->server()) {
} }
// print header // print header
echo ("<?xml version=\"1.0\" encoding=\"ISO-8859-15\"?>\n"); echo $_SESSION['header'];
echo ("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n");
echo ("<html><head>\n<title></title>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n</head><body><br>\n"); echo ("<html><head>\n<title></title>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n</head><body><br>\n");
$acct = new Account(); $acct = new Account();