removed frames

This commit is contained in:
Roland Gruber 2010-01-01 17:21:46 +00:00
parent 68e79b3991
commit 73d35c1826
25 changed files with 172 additions and 261 deletions

View File

@ -3,7 +3,7 @@
$Id$
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2003 - 2009 Roland Gruber
Copyright (C) 2003 - 2010 Roland Gruber
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -162,7 +162,7 @@ class lamList {
if (sizeof($filteredEntries) > 0) {
// buttons
$this->listPrintButtons(false);
echo ("<hr style=\"background-color: #999999;\">\n");
echo ("<br>\n");
// navigation bar
$this->listDrawNavigationBar(sizeof($filteredEntries));
echo ("<br>\n");
@ -174,7 +174,6 @@ class lamList {
// navigation bar
$this->listDrawNavigationBar(sizeof($filteredEntries));
echo ("<br>\n");
echo ("<hr style=\"background-color: #999999;\">\n");
// buttons
$this->listPrintButtons(false);
echo ("<br>\n");
@ -413,7 +412,7 @@ class lamList {
echo("<tr class=\"" . $this->type . "list\" onMouseOver=\"list_over(this, '" . $rowID . "', '" . $this->type . "')\"\n" .
" onMouseOut=\"list_out(this, '" . $rowID . "', '" . $this->type . "')\"\n" .
" onClick=\"list_click(this, '" . $rowID . "', '" . $this->type . "')\"\n" .
" onDblClick=\"parent.frames[1].location.href='../account/edit.php?type=" . $this->type . "&amp;DN=" . $info[$i]['dn'] . "'\">\n");
" onDblClick=\"parent.location.href='../account/edit.php?type=" . $this->type . "&amp;DN=" . $info[$i]['dn'] . "'\">\n");
if (isset($_GET['selectall'])) {
echo " <td align=\"center\"><input onClick=\"list_click(this, '" . $rowID . "', '" . $this->type . "')\"" .
" type=\"checkbox\" checked name=\"" . $rowID . "\"></td>\n";
@ -723,13 +722,7 @@ class lamList {
* Prints the HTML header.
*/
protected function listPrintHeader() {
echo $_SESSION['header'];
echo "<title>Account list</title>\n";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/type_" . $this->type . ".css\">\n";
echo "</head><body>\n";
echo "<script type=\"text/javascript\" src=\"list.js\"></script>\n";
echo "<script type=\"text/javascript\" src=\"../wz_tooltip.js\"></script>\n";
include '../main_header.php';
}
/**

View File

@ -3,7 +3,7 @@
$Id$
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2003 - 2009 Roland Gruber
Copyright (C) 2003 - 2010 Roland Gruber
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -1365,12 +1365,7 @@ class accountContainer {
* Prints the header of the account pages.
*/
private function printPageHeader() {
echo $_SESSION['header'];
echo "<title>LDAP Account Manager</title>\n";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/type_" . $this->type . ".css\">\n";
echo "</head><body>\n";
echo "<script type=\"text/javascript\" src=\"../wz_tooltip.js\"></script>\n";
include '../main_header.php';
echo "<form enctype=\"multipart/form-data\" action=\"edit.php\" method=\"post\">\n";
}

View File

@ -4,7 +4,7 @@
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2003 - 2006 Tilo Lutz
Copyright (C) 2007 - 2009 Roland Gruber
Copyright (C) 2007 - 2010 Roland Gruber
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -76,12 +76,7 @@ if (isset($_GET['type']) && isset($_SESSION['delete_dn'])) {
//load account
$_SESSION['account'] = new accountContainer($_GET['type'], 'account');
// Show HTML Page
echo $_SESSION['header'];
echo "<title>LDAP Account Manager</title>\n";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../style/layout.css\">\n";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../style/type_" . $_GET['type'] . ".css\">\n";
echo "</head><body>\n";
echo "<script type=\"text/javascript\" src=\"wz_tooltip.js\"></script>\n";
include 'main_header.php';
echo "<form action=\"delete.php\" method=\"post\">\n";
echo "<fieldset class=\"".$_GET['type']."edit\"><legend><b>";
echo _('Please confirm:');
@ -128,11 +123,7 @@ if ($_POST['cancel']) {
if ($_POST['delete']) {
// Show HTML Page
echo $_SESSION['header'];
echo "<title>LDAP Account Manager</title>\n";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../style/layout.css\">\n";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../style/type_" . $_POST['type'] . ".css\">\n";
echo "</head><body>\n";
include 'main_header.php';
echo "<form action=\"delete.php\" method=\"post\">\n";
echo "<input name=\"type\" type=\"hidden\" value=\"" . $_POST['type'] . "\">\n";
echo "<fieldset class=\"".$_POST['type']."edit\"><legend><b>";

View File

@ -3,7 +3,7 @@
$Id$
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2003 - 2006 Roland Gruber
Copyright (C) 2003 - 2010 Roland Gruber
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -142,10 +142,7 @@ if ($_POST['add_suff'] || $_POST['cancel']) {
}
}
}
echo $_SESSION['header'];
echo "<title>initsuff</title>\n";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../style/layout.css\">\n";
echo "</head>\n<body>\n";
include 'main_header.php';
// print error/success messages
if ($_POST['add_suff']) {
if (sizeof($fail) > 0) {
@ -175,10 +172,7 @@ $new_suff = str_replace("\\", "", $new_suff);
$new_suff = str_replace("'", "", $new_suff);
$new_suff = explode(";", $new_suff);
echo $_SESSION['header'];
echo "<title>initsuff</title>\n";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../style/layout.css\">\n";
echo "</head><body>\n";
include 'main_header.php';
echo "<p>&nbsp;</p>\n";
echo "<p><font color=\"red\"><b>" . _("The following suffix(es) are missing in LDAP. LAM can create them for you.") . "</b></font></p>\n";
echo "<p>&nbsp;</p>\n";

View File

@ -3,7 +3,7 @@
$Id$
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2007 Roland Gruber
Copyright (C) 2007 - 2010 Roland Gruber
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -55,11 +55,8 @@ if (isset($dn) && isset($type)) {
}
else {
// print error message if user was not found
echo $_SESSION['header'];
echo "<title>userlink</title>\n";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n";
echo "</head><body>\n";
// print error message if arguments are missing
include '../main_header.php';
StatusMessage("ERROR", "No account or type given.");
echo ("</body></html>\n");
}

View File

@ -3,7 +3,7 @@
$Id$
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2003 - 2006 Roland Gruber
Copyright (C) 2003 - 2010 Roland Gruber
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -57,10 +57,7 @@ if ($dn) {
}
else {
// print error message if user was not found
echo $_SESSION['header'];
echo "<title>userlink</title>\n";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n";
echo "</head><body>\n";
include '../main_header.php';
StatusMessage("ERROR", "", _("This user was not found!") . " (" . $user . ")");
echo "<p>&nbsp;</p>";
echo "<p><a href=\"list.php?type=group\">" . _("Back to group list") . "</a></p>";

View File

@ -3,7 +3,7 @@
$Id$
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2003 - 2006 Roland Gruber
Copyright (C) 2003 - 2010 Roland Gruber
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -58,34 +58,16 @@ for ($i = 0; $i < sizeof($types); $i++) {
$lang = explode(":",$_SESSION['language']);
$lang = $lang[1];
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Frameset//EN\" \"http://www.w3.org/TR/html4/frameset.dtd\">\n";
echo "<html>\n";
echo "<head>\n";
echo "<meta http-equiv=\"content-type\" content=\"text/html; charset=$lang\">\n";
echo "<meta http-equiv=\"pragma\" content=\"no-cache\">\n";
echo "<meta http-equiv=\"cache-control\" content=\"no-cache\">\n";
echo ("<title>LDAP Account Manager</title>\n");
echo ("<link rel=\"stylesheet\" type=\"text/css\" href=\"../style/layout.css\">");
echo "<link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"../graphics/favicon.ico\">\n";
echo ("</head>\n");
echo ("<frameset rows=\"150,*\">\n");
echo ("<frame src=\"./main_header.php\" name=\"head\" frameborder=\"0\">\n");
// display page to add suffixes, if needed
if ((sizeof($new_suffs) > 0) && checkIfWriteAccessIsAllowed()) {
echo ("<frame src=\"initsuff.php?suffs='" . implode(";", $new_suffs) . "'\" name=\"mainpart\" frameborder=\"0\">\n");
metaRefresh("initsuff.php?suffs='" . implode(";", $new_suffs));
}
else {
if (sizeof($types) > 0) {
echo ("<frame src=\"./lists/list.php?type=" . $types[0] . "\" name=\"mainpart\" frameborder=\"0\" scrolling=\"yes\">\n");
metaRefresh("lists/list.php?type=" . $types[0]);
}
else {
echo ("<frame src=\"./tree/tree_view.php\" name=\"mainpart\" frameborder=\"0\" scrolling=\"yes\">\n");
metaRefresh("tree/tree_view.php");
}
}
echo ("<noframes>\n");
echo ("This page requires a browser that can show frames!\n");
echo ("</noframes>\n");
echo ("</frameset>\n");
echo ("</html>\n");
?>

View File

@ -3,7 +3,7 @@
$Id$
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2003 - 2006 Roland Gruber
Copyright (C) 2003 - 2010 Roland Gruber
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -22,66 +22,71 @@ $Id$
*/
/**
* Head frame in main window, includes links to lists etc.
* Head part of page which includes links to lists etc.
*
* @package main
* @author Roland Gruber
*/
/** security functions */
include_once("../lib/security.inc");
/** access to configuration options */
include_once("../lib/config.inc");
/** self service functions */
include_once("../lib/selfService.inc");
// start session
startSecureSession();
setlanguage();
echo $_SESSION['header'];
// number of list views (users, groups, ...)
$types = $_SESSION['config']->get_ActiveTypes();
$headerPrefix = "";
if (is_file("../login.php")) $headerPrefix = "../";
elseif (is_file("../../login.php")) $headerPrefix = "../../";
// HTML header and title
echo $_SESSION['header'];
echo "<title>LDAP Account Manager</title>\n";
// include all CSS files
$cssDirName = dirname(__FILE__) . '/../style';
$cssDir = dir($cssDirName);
while ($cssEntry = $cssDir->read()) {
if (substr($cssEntry, strlen($cssEntry) - 4, 4) != '.css') continue;
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"" . $headerPrefix . "../style/" . $cssEntry . "\">\n";
}
echo "</head><body>\n";
// include all JavaScript files
$jsDirName = dirname(__FILE__) . '/lib';
$jsDir = dir($jsDirName);
while ($jsEntry = $jsDir->read()) {
if (substr($jsEntry, strlen($jsEntry) - 3, 3) != '.js') continue;
echo "<script type=\"text/javascript\" src=\"" . $headerPrefix . "lib/" . $jsEntry . "\"></script>\n";
}
?>
<title></title>
<link rel="stylesheet" type="text/css" href="../style/layout.css">
</head>
<body>
<table border=0 width="100%">
<tr>
<td width="200">
<?PHP
if (!isLAMProVersion()) {
echo "<a href=\"http://www.ldap-account-manager.org/lamcms/donations\" target=\"_blank\"><img alt=\"donations\" src=\"../graphics/smile.png\">&nbsp;" . _("Donate") . "</a>";
echo "<a href=\"http://www.ldap-account-manager.org/lamcms/donations\" target=\"_blank\"><img alt=\"donations\" src=\"" . $headerPrefix . "../graphics/smile.png\">&nbsp;" . _("Donate") . "</a>";
echo "<br><br>";
}
?>
<a href="tools.php" target="mainpart"><img alt="tools" src="../graphics/tools.png">&nbsp;<BIG><B><?php echo _("Tools") ?></B></BIG></a>
<a href="<?php echo $headerPrefix; ?>tools.php"><img alt="tools" src="<?php echo $headerPrefix; ?>../graphics/tools.png">&nbsp;<BIG><B><?php echo _("Tools") ?></B></BIG></a>
</td>
<td align="center">
<a href="http://www.ldap-account-manager.org/" target="new_window"><img src="../graphics/banner.jpg" border=1 alt="LDAP Account Manager"></a>
<a href="http://www.ldap-account-manager.org/" target="new_window"><img src="<?php echo $headerPrefix; ?>../graphics/banner.jpg" border=1 alt="LDAP Account Manager"></a>
</td>
<td width="200" align="right" height=20><a href="./logout.php" target="_top"><img alt="logout" src="../graphics/exit.png">&nbsp;<big><b><?php echo _("Logout") ?></b></big></a></td>
<td width="200" align="right" height=20><a href="<?php echo $headerPrefix; ?>logout.php" target="_top"><img alt="logout" src="<?php echo $headerPrefix; ?>../graphics/exit.png">&nbsp;<big><b><?php echo _("Logout") ?></b></big></a></td>
</tr>
</table>
<p align="center">
<?php
$linkList = array();
if ($_SESSION['config']->get_Suffix('tree') != "") {
$linkList[] = '<a href="./tree/tree_view.php" target="mainpart"><img alt="tree view" src="../graphics/process.png">&nbsp;<big>' . _("Tree view") . '</big></a>' . "\n";
$linkList[] = '<a href="' . $headerPrefix . 'tree/treeViewContainer.php"><img alt="tree view" src="' . $headerPrefix . '../graphics/process.png">&nbsp;<big>' . _("Tree view") . '</big></a>' . "\n";
}
for ($i = 0; $i < sizeof($types); $i++) {
$linkList[] = '<a href="./lists/list.php?type=' . $types[$i] . '" target="mainpart">' .
'<img alt="' . $types[$i] . '" src="../graphics/' . $types[$i] . '.png">&nbsp;' .
$linkList[] = '<a href="' . $headerPrefix . 'lists/list.php?type=' . $types[$i] . '">' .
'<img alt="' . $types[$i] . '" src="' . $headerPrefix . '../graphics/' . $types[$i] . '.png">&nbsp;' .
'<big>' . getTypeAlias($types[$i]) . '</big></a>';
}
echo implode('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;', $linkList);
echo implode("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n", $linkList);
?>
</p>
</body>
</html>
</p><hr><br>

View File

@ -3,7 +3,7 @@
$Id$
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2004 - 2006 Roland Gruber
Copyright (C) 2004 - 2010 Roland Gruber
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -83,11 +83,7 @@ if (isset($_GET['showldif'])) {
exit;
}
echo $_SESSION['header'];
echo "<title>account upload</title>\n";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../style/layout.css\">\n";
echo "</head>\n";
echo "<body>\n";
include 'main_header.php';
if ($_FILES['inputfile'] && ($_FILES['inputfile']['size'] > 0)) {
// check if input file is well formated

View File

@ -3,7 +3,7 @@
$Id$
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2004 - 2006 Roland Gruber
Copyright (C) 2004 - 2010 Roland Gruber
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -57,9 +57,7 @@ if (!isset($_SESSION['loggedIn']) || ($_SESSION['loggedIn'] !== true)) {
// Set correct language, codepages, ....
setlanguage();
echo $_SESSION['header'];
echo "<title>account upload</title>\n";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../style/layout.css\">\n";
include 'main_header.php';
// create accounts
$accounts = unserialize($_SESSION['ldap']->decrypt($_SESSION['mass_accounts']));
@ -69,8 +67,7 @@ if (($_SESSION['mass_counter'] < sizeof($accounts)) || !isset($_SESSION['mass_po
if ($maxTime > 60) $maxTime = 60;
if ($maxTime <= 0) $maxTime = 60;
$refreshTime = $maxTime + 7;
echo "<meta http-equiv=\"refresh\" content=\"" . $refreshTime . "; URL=massDoUpload.php\">\n";
echo "</head>\n<body>\n";
// TODO refresh with JavaScript to massDoUpload.php
echo "<h1>" . _("LDAP upload in progress. Please wait.") . "</h1>\n";
echo "<table align=\"center\" width=\"80%\" style=\"border-color: grey\" border=\"2\" cellspacing=\"0\" rules=\"none\">\n";
echo "<tr><td bgcolor=\"blue\" width=\"" . ($_SESSION['mass_counter'] * 100) / sizeof($accounts) . "%\">&nbsp;</td>";

View File

@ -3,7 +3,7 @@
$Id$
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2004 - 2006 Roland Gruber
Copyright (C) 2004 - 2010 Roland Gruber
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -69,23 +69,14 @@ if (isset($_GET['getCSV'])) {
$types = $_SESSION['config']->get_ActiveTypes();
echo $_SESSION['header'];
echo "<title>account upload</title>\n";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../style/layout.css\">\n";
for ($i = 0; $i < sizeof($types); $i++) {
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../style/type_" . $types[$i] . ".css\">\n";
}
echo "</head>\n";
echo "<body>\n";
echo "<script type=\"text/javascript\" src=\"wz_tooltip.js\"></script>\n";
include 'main_header.php';
// check if account specific page should be shown
if (isset($_POST['type'])) showMainPage($_POST['type']);
// show start page
else {
echo "<h1 align=\"center\">" . _("Account creation via file upload") . "</h1>\n";
echo "<p>&nbsp;</p>\n";
echo "<h1>" . _("Account creation via file upload") . "</h1>\n";
echo "<p>&nbsp;</p>\n";
echo "<p>\n";
@ -126,7 +117,7 @@ else {
* @param string $scope account type
*/
function showMainPage($scope) {
echo "<h1 align=\"center\">" . _("File upload") . "</h1>";
echo "<h1>" . _("File upload") . "</h1>";
echo "<p>\n";
echo _("Please provide a CSV formated file with your account data. The cells in the first row must be filled with the column identifiers. The following rows represent one account for each row.");
echo "<br>";

View File

@ -3,7 +3,7 @@
$Id$
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2003 - 2008 Roland Gruber
Copyright (C) 2003 - 2010 Roland Gruber
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -114,11 +114,7 @@ if (isset($_POST['createOU']) || isset($_POST['deleteOU'])) {
}
// print header
echo $_SESSION['header'];
echo ("<title>OU-Editor</title>\n");
echo ("<link rel=\"stylesheet\" type=\"text/css\" href=\"../style/layout.css\">\n");
echo ("</head>\n");
echo ("<body>\n");
include 'main_header.php';
// display messages
if ($error || $message || $text) {
if ($text) echo $text;
@ -144,13 +140,7 @@ display_main();
function display_main() {
$types = $_SESSION['config']->get_ActiveTypes();
// display main page
echo $_SESSION['header'];
echo ("<title>OU-Editor</title>\n");
echo ("<link rel=\"stylesheet\" type=\"text/css\" href=\"../style/layout.css\">\n");
echo ("<link rel=\"stylesheet\" type=\"text/css\" href=\"../style/type_user.css\">\n");
echo ("</head>\n");
echo ("<body>\n");
echo "<script type=\"text/javascript\" src=\"wz_tooltip.js\"></script>\n";
include 'main_header.php';
echo "<h1>" . _("OU editor") . "</h1>";
echo ("<br>\n");
echo ("<form action=\"ou_edit.php\" method=\"post\">\n");

View File

@ -4,7 +4,7 @@ $Id$
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2004 - 2006 Michael Duergner
Copyright (C) 2007 Roland Gruber
2007 - 2010 Roland Gruber
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -27,6 +27,7 @@ $Id$
*
* @package PDF
* @author Michael Duergner
* @author Roland Gruber
*/
/** security functions */
@ -49,11 +50,8 @@ if (!$_SESSION['ldap'] || !$_SESSION['ldap']->server()) {
}
// print standard header
echo $_SESSION['header'];
echo ("<title>" . _("Delete PDF structure") . "</title>\n");
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/type_" . $_POST['type'] . ".css\">\n";
echo ("</head>\n<body>\n<p><br></p>\n");
include '../main_header.php';
echo ("<p><br></p>\n");
// check if admin has submited delete operation
if ($_POST['submit']) {

View File

@ -3,7 +3,8 @@
$Id$
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2003 - 2006 Michael D<EFBFBD>rgner
Copyright (C) 2003 - 2006 Michael Duergner
2005 - 2010 Roland Gruber
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -24,7 +25,8 @@ $Id$
/**
* This is the main window of the pdf structure editor.
*
* @author Michael D<EFBFBD>rgner
* @author Michael Duergner
* @author Roland Gruber
* @package PDF
*/
@ -103,15 +105,8 @@ for ($i = 0; $i < sizeof($templateClasses); $i++) {
}
}
echo $_SESSION['header'];
include '../main_header.php';
?>
<title>LDAP Account Manager</title>
<link rel="stylesheet" type="text/css" href="../../style/layout.css">
<link rel="stylesheet" type="text/css" href="../../style/type_user.css">
</head>
<body>
<br>
<h1><?php echo _('PDF editor'); ?></h1>
<br>
<form action="pdfmain.php" method="post">

View File

@ -4,7 +4,7 @@ $Id$
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2003 - 2006 Michael Duergner
Copyright (C) 2007 Roland Gruber
2007 - 2010 Roland Gruber
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -85,12 +85,7 @@ if ((isset($_GET['headline'])) && ($_GET['headline'] != $_SESSION['currentPageDe
// Check if pdfname is valid, then save current structure to file and go to
// main pdf structure page
if(isset($_GET['submit'])) {
echo $_SESSION['header'];
echo "<title>LDAP Account Manager</title>";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/type_" . $_GET['type'] . ".css\">\n";
echo "</head>";
echo "<body>";
include '../main_header.php';
if(!isset($_GET['pdfname']) || !preg_match('/[a-zA-Z0-9\-\_]+/',$_GET['pdfname'])) {
StatusMessage('ERROR', _('PDF-structure name not valid'), _('The name for that PDF-structure you submitted is not valid. A valid name must constist at least of one of the following characters \'a-z\',\'A-Z\',\'0-9\',\'_\',\'-\',\'.\'.'));
}
@ -374,15 +369,9 @@ foreach($logoFiles as $logoFile) {
}
// print header
echo $_SESSION['header'];
include '../main_header.php';
// TODO Change enctype of form
?>
<title>LDAP Account Manager</title>
<link rel="stylesheet" type="text/css" href="../../style/layout.css">
<link rel="stylesheet" type="text/css" href="../../style/type_<?php echo $_GET['type']; ?>.css">
</head>
<body>
<script type="text/javascript" src="../wz_tooltip.js"></script>
<br>
<form action="pdfpage.php" method="post">
<table>

View File

@ -3,7 +3,7 @@
$Id$
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2003 - 2006 Roland Gruber
Copyright (C) 2003 - 2010 Roland Gruber
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -52,10 +52,8 @@ if (!$_SESSION['ldap'] || !$_SESSION['ldap']->server()) {
}
// print standard header
echo $_SESSION['header'];
echo ("<title>" . _("Delete profile") . "</title>\n");
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n";
echo ("</head>\n<body>\n<p><br></p>\n");
include '../main_header.php';
echo ("<p><br></p>\n");
// check if admin has submited delete operation
if ($_POST['submit']) {

View File

@ -3,7 +3,7 @@
$Id$
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2003 - 2008 Roland Gruber
Copyright (C) 2003 - 2010 Roland Gruber
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -93,18 +93,8 @@ for ($i = 0; $i < sizeof($profileClasses); $i++) {
$profileClasses[$i]['profiles'] = $profiles;
}
echo $_SESSION['header'];
include '../main_header.php';
echo "<title>LDAP Account Manager</title>\n";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n";
for ($i = 0; $i < sizeof($profileClasses); $i++) {
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/type_" . $profileClasses[$i]['scope'] . ".css\">\n";
}
echo "</head>\n";
echo "<body>\n";
echo "<br>\n";
echo "<h1>" . _('Profile editor') . "</h1>\n";
echo "<br>\n";

View File

@ -3,7 +3,7 @@
$Id$
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2003 - 2009 Roland Gruber
Copyright (C) 2003 - 2010 Roland Gruber
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -67,11 +67,7 @@ if (isset($_POST['abort'])) {
}
// print header
echo $_SESSION['header'];
echo "<title>Profile editor</title>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n";
echo "\n<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/type_" . $_GET['type'] . ".css\">\n";
echo "</head><body><br>\n";
echo "<script type=\"text/javascript\" src=\"../wz_tooltip.js\"></script>\n";
include '../main_header.php';
// save button was presed
if (isset($_POST['save'])) {

View File

@ -3,7 +3,7 @@
$Id$
Copyright (C) 2004 David Smith
modified to fit for LDAP Account Manager 2005 Roland Gruber
modified to fit for LDAP Account Manager 2005 - 2010 Roland Gruber
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -45,12 +45,7 @@ startSecureSession();
setlanguage();
echo $_SESSION['header'];
echo "<title>LDAP Account Manager</title>\n";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n";
echo "</head>\n";
include '../main_header.php';
$view = isset( $_GET['view'] ) ? $_GET['view'] : 'objectClasses';
@ -62,8 +57,6 @@ if( ! is_null( $viewvalue ) )
?>
<body>
<br />
<center><big>
<?php echo ( $view=='objectClasses' ?

View File

@ -3,7 +3,7 @@
$Id$
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2009 Roland Gruber
Copyright (C) 2009 - 2010 Roland Gruber
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -80,17 +80,9 @@ if ($result) {
}
}
echo $_SESSION['header'];
include 'main_header.php';
echo "<title></title>\n";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../style/layout.css\">\n";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../style/type_user.css\">\n";
echo "</head>";
echo "<body>\n";
echo "<h1 align=\"center\">" . _("Server information") . "</h1>\n";
echo "<h1>" . _("Server information") . "</h1>\n";
echo "<table class=\"userlist\" rules=\"none\">\n";

View File

@ -3,7 +3,7 @@
$Id$
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2006 Roland Gruber
Copyright (C) 2006 - 2010 Roland Gruber
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -41,17 +41,9 @@ if (!checkIfWriteAccessIsAllowed()) die();
setlanguage();
echo $_SESSION['header'];
include '../main_header.php';
echo "<title></title>\n";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/type_user.css\">\n";
echo "</head>";
echo "<body>\n";
echo "<h1 align=\"center\">" . _("LAM tests") . "</h1>\n";
echo "<h1>" . _("LAM tests") . "</h1>\n";
echo "<table class=\"userlist\" rules=\"none\">\n";

View File

@ -3,7 +3,7 @@
$Id$
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2006 - 2009 Roland Gruber
Copyright (C) 2006 - 2010 Roland Gruber
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -42,16 +42,9 @@ if (!checkIfWriteAccessIsAllowed()) die();
setlanguage();
echo $_SESSION['header'];
include '../main_header.php';
echo "<title></title>\n";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/type_user.css\">\n";
echo "</head>";
echo "<body>\n";
echo "<h1 align=\"center\">" . _("Lamdaemon test") . "</h1>\n";
echo "<h1>" . _("Lamdaemon test") . "</h1>\n";
$servers = explode(";", $_SESSION['config']->get_scriptServers());
$serverIDs = array();

View File

@ -3,7 +3,7 @@
$Id$
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2007 Roland Gruber
Copyright (C) 2007 - 2010 Roland Gruber
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -45,20 +45,9 @@ if (!checkIfWriteAccessIsAllowed()) die();
setlanguage();
echo $_SESSION['header'];
include '../main_header.php';
echo "<title></title>\n";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n";
$types = $_SESSION['config']->get_ActiveTypes();
for ($t = 0; $t < sizeof($types); $t++) {
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/type_" . $types[$t] . ".css\">\n";
}
echo "</head>";
echo "<body>\n";
echo "<h1 align=\"center\">" . _("Schema test") . "</h1>\n";
echo "<h1>" . _("Schema test") . "</h1>\n";
get_schema_objectclasses();
$classes = get_cached_schema('objectclasses');

View File

@ -3,7 +3,7 @@
$Id$
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2003 - 2009 Roland Gruber
Copyright (C) 2003 - 2010 Roland Gruber
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -40,15 +40,7 @@ startSecureSession();
setlanguage();
echo $_SESSION['header'];
echo "<title></title>\n";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../style/layout.css\">\n";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../style/type_user.css\">\n";
echo "</head>";
echo "<body>\n";
include 'main_header.php';
// get tool list
$availableTools = getTools();
@ -81,7 +73,10 @@ for ($i = 0; $i < sizeof($tools); $i++) {
echo "<tr class=\"userlist\">\n";
echo "<td>&nbsp;&nbsp;&nbsp;</td>\n";
echo "<td><br>";
echo "<a href=\"" . $tools[$i]->getLink() . "\"><img src=\"../graphics/" . $tools[$i]->getImageLink() . "\"> &nbsp;<b>" . $tools[$i]->getName() . "</b></a>";
echo "<a href=\"" . $tools[$i]->getLink() . "\">";
echo "<img src=\"../graphics/" . $tools[$i]->getImageLink() . "\" alt=\"" . $tools[$i]->getName() . "\">";
echo " &nbsp;<b>" . $tools[$i]->getName() . "</b>";
echo "</a>\n";
echo "<br><br></td>\n";
echo "<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>\n";
echo "<td>";

View File

@ -0,0 +1,63 @@
<?php
/*
$Id$
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2010 Roland Gruber
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/**
* Provides a container around the tree view frameset.
*
* @author Roland Gruber
* @package lists
* @subpackage tree
*/
/** security functions */
include_once("../../lib/security.inc");
/** access to configuration options */
include_once("../../lib/config.inc");
// start session
startSecureSession();
setlanguage();
include '../main_header.php';
?>
<iframe id="treeframe" style="width: 100%; height: 800px;" src="tree_view.php" frameborder="0"></iframe>
<script type="text/javascript">
function resizeIframe() {
var height = document.documentElement.clientHeight;
height -= document.getElementById('treeframe').offsetTop;
height -= 30;
document.getElementById('treeframe').style.height = height +"px";
};
document.getElementById('treeframe').onload = resizeIframe;
window.onresize = resizeIframe;
</script>
<?php
echo "</body>\n";
echo "</html>\n";
?>