added header from session
This commit is contained in:
parent
3edd9f4ab4
commit
8b2cd651db
|
@ -58,8 +58,7 @@ session_unregister('samba3');
|
|||
session_unregister('domainSID');
|
||||
session_unregister('filename');
|
||||
|
||||
echo ("<?xml version=\"1.0\" encoding=\"ISO-8859-15\"?>");
|
||||
echo ("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">");
|
||||
echo $_SESSION['header'];
|
||||
|
||||
?>
|
||||
|
||||
|
|
|
@ -101,8 +101,7 @@ if (!(($conf->get_Passwd()) == $passwd)) {
|
|||
exit;
|
||||
}
|
||||
|
||||
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");
|
||||
echo $_SESSION['header'];
|
||||
|
||||
echo ("<html>\n");
|
||||
echo ("<head>\n");
|
||||
|
|
|
@ -68,8 +68,7 @@ if ($passwd != $conf->get_Passwd()) {
|
|||
exit;
|
||||
}
|
||||
|
||||
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");
|
||||
echo $_SESSION['header'];
|
||||
|
||||
echo "<html><head><title>listusers</title>\n";
|
||||
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n";
|
||||
|
|
|
@ -32,8 +32,7 @@ session_save_path("../../sess");
|
|||
|
||||
setlanguage();
|
||||
|
||||
echo ("<?xml version=\"1.0\" encoding=\"ISO-8859-15\"?>");
|
||||
echo ("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">");
|
||||
echo $_SESSION['header'];
|
||||
|
||||
?>
|
||||
|
||||
|
|
|
@ -31,9 +31,6 @@ session_save_path("../sess");
|
|||
|
||||
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
|
||||
if (($_GET['action'] == "edit") || ($_GET['action'] == "new")) {
|
||||
|
@ -59,6 +56,7 @@ if (($_GET['action'] == "edit") || ($_GET['action'] == "new")) {
|
|||
$domain_suffix = $_SESSION['config']->get_domainSuffix();
|
||||
}
|
||||
// display page
|
||||
echo $_SESSION['header'];
|
||||
echo "<html>\n";
|
||||
echo "<head>\n";
|
||||
echo "<title>Domain Management</title>\n";
|
||||
|
|
|
@ -88,8 +88,7 @@ $new_suff = $_GET['suffs'];
|
|||
$new_suff = str_replace("\\'", "", $new_suff);
|
||||
$new_suff = explode(";", $new_suff);
|
||||
|
||||
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");
|
||||
echo $_SESSION['header'];
|
||||
echo "<html><head><title>initsuff</title>\n";
|
||||
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../style/layout.css\">\n";
|
||||
echo "</head><body>\n";
|
||||
|
|
|
@ -60,8 +60,7 @@ if ($_POST['new_domain'] || $_POST['del_domain']){
|
|||
exit;
|
||||
}
|
||||
|
||||
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");
|
||||
echo $_SESSION['header'];
|
||||
echo "<html><head><title>listdomains</title>\n";
|
||||
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n";
|
||||
echo "</head><body>\n";
|
||||
|
|
|
@ -60,8 +60,7 @@ if ($_POST['new_group'] || $_POST['del_group']){
|
|||
exit;
|
||||
}
|
||||
|
||||
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");
|
||||
echo $_SESSION['header'];
|
||||
echo "<html><head><title>listgroups</title>\n";
|
||||
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n";
|
||||
echo "</head><body>\n";
|
||||
|
|
|
@ -60,8 +60,7 @@ if ($_POST['new_host'] || $_POST['del_host']){
|
|||
exit;
|
||||
}
|
||||
|
||||
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");
|
||||
echo $_SESSION['header'];
|
||||
echo "<html><head><title>listhosts</title>\n";
|
||||
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n";
|
||||
echo "</head><body>\n";
|
||||
|
|
|
@ -36,10 +36,6 @@ setlanguage();
|
|||
// copy HTTP-GET variables to HTTP-POST
|
||||
$_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'];
|
||||
session_register('usr_units');
|
||||
|
||||
|
@ -60,7 +56,7 @@ if ($_POST['new_user'] || $_POST['del_user']){
|
|||
exit;
|
||||
}
|
||||
|
||||
|
||||
echo $_SESSION['header'];
|
||||
|
||||
echo "<html><head><title>listusers</title>\n";
|
||||
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n";
|
||||
|
|
|
@ -46,8 +46,7 @@ if ($dn) {
|
|||
}
|
||||
else {
|
||||
// print error message if user was not found
|
||||
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");
|
||||
echo $_SESSION['header'];
|
||||
echo "<html><head><title>userlink</title>\n";
|
||||
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n";
|
||||
echo "</head><body>\n";
|
||||
|
|
|
@ -42,8 +42,7 @@ session_destroy();
|
|||
|
||||
// print logout message
|
||||
|
||||
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");
|
||||
echo $_SESSION['header'];
|
||||
|
||||
?>
|
||||
|
||||
|
|
|
@ -52,8 +52,7 @@ if ($conf->Suff_map && ($conf->Suff_map != "")) {
|
|||
if (!$res) $new_suffs[] = $conf->Suff_map;
|
||||
}
|
||||
|
||||
echo ("<?xml version=\"1.0\" encoding=\"ISO-8859-15\"?>\n");
|
||||
echo ("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Frameset//EN\" \"http://www.w3.org/TR/frameset.dtd\">\n");
|
||||
echo $_SESSION['header'];
|
||||
echo ("<html>\n");
|
||||
echo ("<head>\n");
|
||||
echo ("<title>LDAP Account Manager</title>\n");
|
||||
|
|
|
@ -30,8 +30,7 @@ session_save_path("../sess");
|
|||
|
||||
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");
|
||||
echo $_SESSION['header'];
|
||||
|
||||
?>
|
||||
|
||||
|
|
|
@ -231,8 +231,7 @@ if ($_POST['submit']) {
|
|||
}
|
||||
|
||||
// print header
|
||||
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");
|
||||
echo $_SESSION['header'];
|
||||
echo ("<html>\n");
|
||||
echo ("<head>\n");
|
||||
echo ("<title>OU-Editor</title>\n");
|
||||
|
@ -264,8 +263,7 @@ function display_main() {
|
|||
$hst_units = $_SESSION['ldap']->search_units($_SESSION["config"]->get_HostSuffix());
|
||||
|
||||
// display main page
|
||||
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");
|
||||
echo $_SESSION['header'];
|
||||
echo ("<html>\n");
|
||||
echo ("<head>\n");
|
||||
echo ("<title>OU-Editor</title>\n");
|
||||
|
|
|
@ -46,8 +46,7 @@ if (!$_SESSION['ldap'] || !$_SESSION['ldap']->server()) {
|
|||
}
|
||||
|
||||
// print header
|
||||
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");
|
||||
echo $_SESSION['header'];
|
||||
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
|
||||
|
|
|
@ -37,12 +37,11 @@ if (!$_SESSION['ldap'] || !$_SESSION['ldap']->server()) {
|
|||
}
|
||||
|
||||
// print standard header
|
||||
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");
|
||||
echo ("<html>");
|
||||
echo $_SESSION['header'];
|
||||
echo ("<html>\n");
|
||||
echo ("<head><title>" . _("Delete User Profile") . "</title>\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
|
||||
if ($_POST['submit']) {
|
||||
|
|
|
@ -38,8 +38,7 @@ if (!$_SESSION['ldap'] || !$_SESSION['ldap']->server()) {
|
|||
}
|
||||
|
||||
// print header
|
||||
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");
|
||||
echo $_SESSION['header'];
|
||||
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();
|
||||
|
|
|
@ -86,8 +86,7 @@ for ($i = 0; $i < sizeof($hstprof); $i++) {
|
|||
$hostprofiles = $hostprofiles . "<option>" . $hstprof[$i] . "</option>\n";
|
||||
}
|
||||
|
||||
echo ("<?xml version=\"1.0\" encoding=\"ISO-8859-15\"?>\n");
|
||||
echo ("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Strict//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\n");
|
||||
echo $_SESSION['header'];
|
||||
?>
|
||||
|
||||
<html>
|
||||
|
|
|
@ -38,8 +38,7 @@ if (!$_SESSION['ldap'] || !$_SESSION['ldap']->server()) {
|
|||
}
|
||||
|
||||
// print header
|
||||
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");
|
||||
echo $_SESSION['header'];
|
||||
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();
|
||||
|
|
Loading…
Reference in New Issue