removed frames
This commit is contained in:
parent
68e79b3991
commit
73d35c1826
|
@ -3,7 +3,7 @@
|
||||||
$Id$
|
$Id$
|
||||||
|
|
||||||
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
|
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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -162,7 +162,7 @@ class lamList {
|
||||||
if (sizeof($filteredEntries) > 0) {
|
if (sizeof($filteredEntries) > 0) {
|
||||||
// buttons
|
// buttons
|
||||||
$this->listPrintButtons(false);
|
$this->listPrintButtons(false);
|
||||||
echo ("<hr style=\"background-color: #999999;\">\n");
|
echo ("<br>\n");
|
||||||
// navigation bar
|
// navigation bar
|
||||||
$this->listDrawNavigationBar(sizeof($filteredEntries));
|
$this->listDrawNavigationBar(sizeof($filteredEntries));
|
||||||
echo ("<br>\n");
|
echo ("<br>\n");
|
||||||
|
@ -174,7 +174,6 @@ class lamList {
|
||||||
// navigation bar
|
// navigation bar
|
||||||
$this->listDrawNavigationBar(sizeof($filteredEntries));
|
$this->listDrawNavigationBar(sizeof($filteredEntries));
|
||||||
echo ("<br>\n");
|
echo ("<br>\n");
|
||||||
echo ("<hr style=\"background-color: #999999;\">\n");
|
|
||||||
// buttons
|
// buttons
|
||||||
$this->listPrintButtons(false);
|
$this->listPrintButtons(false);
|
||||||
echo ("<br>\n");
|
echo ("<br>\n");
|
||||||
|
@ -413,7 +412,7 @@ class lamList {
|
||||||
echo("<tr class=\"" . $this->type . "list\" onMouseOver=\"list_over(this, '" . $rowID . "', '" . $this->type . "')\"\n" .
|
echo("<tr class=\"" . $this->type . "list\" onMouseOver=\"list_over(this, '" . $rowID . "', '" . $this->type . "')\"\n" .
|
||||||
" onMouseOut=\"list_out(this, '" . $rowID . "', '" . $this->type . "')\"\n" .
|
" onMouseOut=\"list_out(this, '" . $rowID . "', '" . $this->type . "')\"\n" .
|
||||||
" onClick=\"list_click(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 . "&DN=" . $info[$i]['dn'] . "'\">\n");
|
" onDblClick=\"parent.location.href='../account/edit.php?type=" . $this->type . "&DN=" . $info[$i]['dn'] . "'\">\n");
|
||||||
if (isset($_GET['selectall'])) {
|
if (isset($_GET['selectall'])) {
|
||||||
echo " <td align=\"center\"><input onClick=\"list_click(this, '" . $rowID . "', '" . $this->type . "')\"" .
|
echo " <td align=\"center\"><input onClick=\"list_click(this, '" . $rowID . "', '" . $this->type . "')\"" .
|
||||||
" type=\"checkbox\" checked name=\"" . $rowID . "\"></td>\n";
|
" type=\"checkbox\" checked name=\"" . $rowID . "\"></td>\n";
|
||||||
|
@ -723,13 +722,7 @@ class lamList {
|
||||||
* Prints the HTML header.
|
* Prints the HTML header.
|
||||||
*/
|
*/
|
||||||
protected function listPrintHeader() {
|
protected function listPrintHeader() {
|
||||||
echo $_SESSION['header'];
|
include '../main_header.php';
|
||||||
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";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
$Id$
|
$Id$
|
||||||
|
|
||||||
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
|
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
|
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
|
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.
|
* Prints the header of the account pages.
|
||||||
*/
|
*/
|
||||||
private function printPageHeader() {
|
private function printPageHeader() {
|
||||||
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";
|
|
||||||
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";
|
|
||||||
echo "<form enctype=\"multipart/form-data\" action=\"edit.php\" method=\"post\">\n";
|
echo "<form enctype=\"multipart/form-data\" action=\"edit.php\" method=\"post\">\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
|
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
|
||||||
Copyright (C) 2003 - 2006 Tilo Lutz
|
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
|
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
|
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
|
//load account
|
||||||
$_SESSION['account'] = new accountContainer($_GET['type'], 'account');
|
$_SESSION['account'] = new accountContainer($_GET['type'], 'account');
|
||||||
// Show HTML Page
|
// Show HTML Page
|
||||||
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";
|
|
||||||
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";
|
|
||||||
echo "<form action=\"delete.php\" method=\"post\">\n";
|
echo "<form action=\"delete.php\" method=\"post\">\n";
|
||||||
echo "<fieldset class=\"".$_GET['type']."edit\"><legend><b>";
|
echo "<fieldset class=\"".$_GET['type']."edit\"><legend><b>";
|
||||||
echo _('Please confirm:');
|
echo _('Please confirm:');
|
||||||
|
@ -128,11 +123,7 @@ if ($_POST['cancel']) {
|
||||||
|
|
||||||
if ($_POST['delete']) {
|
if ($_POST['delete']) {
|
||||||
// Show HTML Page
|
// Show HTML Page
|
||||||
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";
|
|
||||||
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../style/type_" . $_POST['type'] . ".css\">\n";
|
|
||||||
echo "</head><body>\n";
|
|
||||||
echo "<form action=\"delete.php\" method=\"post\">\n";
|
echo "<form action=\"delete.php\" method=\"post\">\n";
|
||||||
echo "<input name=\"type\" type=\"hidden\" value=\"" . $_POST['type'] . "\">\n";
|
echo "<input name=\"type\" type=\"hidden\" value=\"" . $_POST['type'] . "\">\n";
|
||||||
echo "<fieldset class=\"".$_POST['type']."edit\"><legend><b>";
|
echo "<fieldset class=\"".$_POST['type']."edit\"><legend><b>";
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
$Id$
|
$Id$
|
||||||
|
|
||||||
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
|
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
|
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
|
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'];
|
include 'main_header.php';
|
||||||
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
|
// print error/success messages
|
||||||
if ($_POST['add_suff']) {
|
if ($_POST['add_suff']) {
|
||||||
if (sizeof($fail) > 0) {
|
if (sizeof($fail) > 0) {
|
||||||
|
@ -175,10 +172,7 @@ $new_suff = str_replace("\\", "", $new_suff);
|
||||||
$new_suff = str_replace("'", "", $new_suff);
|
$new_suff = str_replace("'", "", $new_suff);
|
||||||
$new_suff = explode(";", $new_suff);
|
$new_suff = explode(";", $new_suff);
|
||||||
|
|
||||||
echo $_SESSION['header'];
|
include 'main_header.php';
|
||||||
echo "<title>initsuff</title>\n";
|
|
||||||
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../style/layout.css\">\n";
|
|
||||||
echo "</head><body>\n";
|
|
||||||
echo "<p> </p>\n";
|
echo "<p> </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><font color=\"red\"><b>" . _("The following suffix(es) are missing in LDAP. LAM can create them for you.") . "</b></font></p>\n";
|
||||||
echo "<p> </p>\n";
|
echo "<p> </p>\n";
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
$Id$
|
$Id$
|
||||||
|
|
||||||
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
|
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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -55,11 +55,8 @@ if (isset($dn) && isset($type)) {
|
||||||
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// print error message if user was not found
|
// print error message if arguments are missing
|
||||||
echo $_SESSION['header'];
|
include '../main_header.php';
|
||||||
echo "<title>userlink</title>\n";
|
|
||||||
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n";
|
|
||||||
echo "</head><body>\n";
|
|
||||||
StatusMessage("ERROR", "No account or type given.");
|
StatusMessage("ERROR", "No account or type given.");
|
||||||
echo ("</body></html>\n");
|
echo ("</body></html>\n");
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
$Id$
|
$Id$
|
||||||
|
|
||||||
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
|
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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -57,10 +57,7 @@ if ($dn) {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// print error message if user was not found
|
// print error message if user was not found
|
||||||
echo $_SESSION['header'];
|
include '../main_header.php';
|
||||||
echo "<title>userlink</title>\n";
|
|
||||||
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n";
|
|
||||||
echo "</head><body>\n";
|
|
||||||
StatusMessage("ERROR", "", _("This user was not found!") . " (" . $user . ")");
|
StatusMessage("ERROR", "", _("This user was not found!") . " (" . $user . ")");
|
||||||
echo "<p> </p>";
|
echo "<p> </p>";
|
||||||
echo "<p><a href=\"list.php?type=group\">" . _("Back to group list") . "</a></p>";
|
echo "<p><a href=\"list.php?type=group\">" . _("Back to group list") . "</a></p>";
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
$Id$
|
$Id$
|
||||||
|
|
||||||
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
|
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
|
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
|
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 = explode(":",$_SESSION['language']);
|
||||||
$lang = $lang[1];
|
$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
|
// display page to add suffixes, if needed
|
||||||
if ((sizeof($new_suffs) > 0) && checkIfWriteAccessIsAllowed()) {
|
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 {
|
else {
|
||||||
if (sizeof($types) > 0) {
|
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 {
|
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");
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
$Id$
|
$Id$
|
||||||
|
|
||||||
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
|
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
|
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
|
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
|
* @package main
|
||||||
* @author Roland Gruber
|
* @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, ...)
|
// number of list views (users, groups, ...)
|
||||||
$types = $_SESSION['config']->get_ActiveTypes();
|
$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%">
|
<table border=0 width="100%">
|
||||||
<tr>
|
<tr>
|
||||||
<td width="200">
|
<td width="200">
|
||||||
<?PHP
|
<?PHP
|
||||||
if (!isLAMProVersion()) {
|
if (!isLAMProVersion()) {
|
||||||
echo "<a href=\"http://www.ldap-account-manager.org/lamcms/donations\" target=\"_blank\"><img alt=\"donations\" src=\"../graphics/smile.png\"> " . _("Donate") . "</a>";
|
echo "<a href=\"http://www.ldap-account-manager.org/lamcms/donations\" target=\"_blank\"><img alt=\"donations\" src=\"" . $headerPrefix . "../graphics/smile.png\"> " . _("Donate") . "</a>";
|
||||||
echo "<br><br>";
|
echo "<br><br>";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<a href="tools.php" target="mainpart"><img alt="tools" src="../graphics/tools.png"> <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"> <BIG><B><?php echo _("Tools") ?></B></BIG></a>
|
||||||
</td>
|
</td>
|
||||||
<td align="center">
|
<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>
|
||||||
<td width="200" align="right" height=20><a href="./logout.php" target="_top"><img alt="logout" src="../graphics/exit.png"> <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"> <big><b><?php echo _("Logout") ?></b></big></a></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<?php
|
<?php
|
||||||
$linkList = array();
|
$linkList = array();
|
||||||
if ($_SESSION['config']->get_Suffix('tree') != "") {
|
if ($_SESSION['config']->get_Suffix('tree') != "") {
|
||||||
$linkList[] = '<a href="./tree/tree_view.php" target="mainpart"><img alt="tree view" src="../graphics/process.png"> <big>' . _("Tree view") . '</big></a>' . "\n";
|
$linkList[] = '<a href="' . $headerPrefix . 'tree/treeViewContainer.php"><img alt="tree view" src="' . $headerPrefix . '../graphics/process.png"> <big>' . _("Tree view") . '</big></a>' . "\n";
|
||||||
}
|
}
|
||||||
for ($i = 0; $i < sizeof($types); $i++) {
|
for ($i = 0; $i < sizeof($types); $i++) {
|
||||||
$linkList[] = '<a href="./lists/list.php?type=' . $types[$i] . '" target="mainpart">' .
|
$linkList[] = '<a href="' . $headerPrefix . 'lists/list.php?type=' . $types[$i] . '">' .
|
||||||
'<img alt="' . $types[$i] . '" src="../graphics/' . $types[$i] . '.png"> ' .
|
'<img alt="' . $types[$i] . '" src="' . $headerPrefix . '../graphics/' . $types[$i] . '.png"> ' .
|
||||||
'<big>' . getTypeAlias($types[$i]) . '</big></a>';
|
'<big>' . getTypeAlias($types[$i]) . '</big></a>';
|
||||||
}
|
}
|
||||||
echo implode(' ', $linkList);
|
echo implode(" \n", $linkList);
|
||||||
?>
|
?>
|
||||||
</p>
|
</p><hr><br>
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
$Id$
|
$Id$
|
||||||
|
|
||||||
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
|
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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -83,11 +83,7 @@ if (isset($_GET['showldif'])) {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
echo $_SESSION['header'];
|
include 'main_header.php';
|
||||||
echo "<title>account upload</title>\n";
|
|
||||||
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../style/layout.css\">\n";
|
|
||||||
echo "</head>\n";
|
|
||||||
echo "<body>\n";
|
|
||||||
|
|
||||||
if ($_FILES['inputfile'] && ($_FILES['inputfile']['size'] > 0)) {
|
if ($_FILES['inputfile'] && ($_FILES['inputfile']['size'] > 0)) {
|
||||||
// check if input file is well formated
|
// check if input file is well formated
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
$Id$
|
$Id$
|
||||||
|
|
||||||
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
|
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
|
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
|
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, ....
|
// Set correct language, codepages, ....
|
||||||
setlanguage();
|
setlanguage();
|
||||||
|
|
||||||
echo $_SESSION['header'];
|
include 'main_header.php';
|
||||||
echo "<title>account upload</title>\n";
|
|
||||||
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../style/layout.css\">\n";
|
|
||||||
|
|
||||||
// create accounts
|
// create accounts
|
||||||
$accounts = unserialize($_SESSION['ldap']->decrypt($_SESSION['mass_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 > 60) $maxTime = 60;
|
||||||
if ($maxTime <= 0) $maxTime = 60;
|
if ($maxTime <= 0) $maxTime = 60;
|
||||||
$refreshTime = $maxTime + 7;
|
$refreshTime = $maxTime + 7;
|
||||||
echo "<meta http-equiv=\"refresh\" content=\"" . $refreshTime . "; URL=massDoUpload.php\">\n";
|
// TODO refresh with JavaScript to massDoUpload.php
|
||||||
echo "</head>\n<body>\n";
|
|
||||||
echo "<h1>" . _("LDAP upload in progress. Please wait.") . "</h1>\n";
|
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 "<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) . "%\"> </td>";
|
echo "<tr><td bgcolor=\"blue\" width=\"" . ($_SESSION['mass_counter'] * 100) / sizeof($accounts) . "%\"> </td>";
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
$Id$
|
$Id$
|
||||||
|
|
||||||
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
|
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
|
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
|
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();
|
$types = $_SESSION['config']->get_ActiveTypes();
|
||||||
|
|
||||||
echo $_SESSION['header'];
|
include 'main_header.php';
|
||||||
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";
|
|
||||||
|
|
||||||
// check if account specific page should be shown
|
// check if account specific page should be shown
|
||||||
if (isset($_POST['type'])) showMainPage($_POST['type']);
|
if (isset($_POST['type'])) showMainPage($_POST['type']);
|
||||||
|
|
||||||
// show start page
|
// show start page
|
||||||
else {
|
else {
|
||||||
echo "<h1 align=\"center\">" . _("Account creation via file upload") . "</h1>\n";
|
echo "<h1>" . _("Account creation via file upload") . "</h1>\n";
|
||||||
echo "<p> </p>\n";
|
|
||||||
echo "<p> </p>\n";
|
echo "<p> </p>\n";
|
||||||
|
|
||||||
echo "<p>\n";
|
echo "<p>\n";
|
||||||
|
@ -126,7 +117,7 @@ else {
|
||||||
* @param string $scope account type
|
* @param string $scope account type
|
||||||
*/
|
*/
|
||||||
function showMainPage($scope) {
|
function showMainPage($scope) {
|
||||||
echo "<h1 align=\"center\">" . _("File upload") . "</h1>";
|
echo "<h1>" . _("File upload") . "</h1>";
|
||||||
echo "<p>\n";
|
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 _("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>";
|
echo "<br>";
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
$Id$
|
$Id$
|
||||||
|
|
||||||
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
|
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
|
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
|
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
|
// print header
|
||||||
echo $_SESSION['header'];
|
include 'main_header.php';
|
||||||
echo ("<title>OU-Editor</title>\n");
|
|
||||||
echo ("<link rel=\"stylesheet\" type=\"text/css\" href=\"../style/layout.css\">\n");
|
|
||||||
echo ("</head>\n");
|
|
||||||
echo ("<body>\n");
|
|
||||||
// display messages
|
// display messages
|
||||||
if ($error || $message || $text) {
|
if ($error || $message || $text) {
|
||||||
if ($text) echo $text;
|
if ($text) echo $text;
|
||||||
|
@ -144,13 +140,7 @@ display_main();
|
||||||
function display_main() {
|
function display_main() {
|
||||||
$types = $_SESSION['config']->get_ActiveTypes();
|
$types = $_SESSION['config']->get_ActiveTypes();
|
||||||
// display main page
|
// display main page
|
||||||
echo $_SESSION['header'];
|
include 'main_header.php';
|
||||||
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";
|
|
||||||
echo "<h1>" . _("OU editor") . "</h1>";
|
echo "<h1>" . _("OU editor") . "</h1>";
|
||||||
echo ("<br>\n");
|
echo ("<br>\n");
|
||||||
echo ("<form action=\"ou_edit.php\" method=\"post\">\n");
|
echo ("<form action=\"ou_edit.php\" method=\"post\">\n");
|
||||||
|
|
|
@ -4,7 +4,7 @@ $Id$
|
||||||
|
|
||||||
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
|
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
|
||||||
Copyright (C) 2004 - 2006 Michael Duergner
|
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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -27,6 +27,7 @@ $Id$
|
||||||
*
|
*
|
||||||
* @package PDF
|
* @package PDF
|
||||||
* @author Michael Duergner
|
* @author Michael Duergner
|
||||||
|
* @author Roland Gruber
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** security functions */
|
/** security functions */
|
||||||
|
@ -49,11 +50,8 @@ if (!$_SESSION['ldap'] || !$_SESSION['ldap']->server()) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// print standard header
|
// print standard header
|
||||||
echo $_SESSION['header'];
|
include '../main_header.php';
|
||||||
echo ("<title>" . _("Delete PDF structure") . "</title>\n");
|
echo ("<p><br></p>\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");
|
|
||||||
|
|
||||||
// check if admin has submited delete operation
|
// check if admin has submited delete operation
|
||||||
if ($_POST['submit']) {
|
if ($_POST['submit']) {
|
||||||
|
|
|
@ -3,7 +3,8 @@
|
||||||
$Id$
|
$Id$
|
||||||
|
|
||||||
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
|
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
|
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
|
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.
|
* This is the main window of the pdf structure editor.
|
||||||
*
|
*
|
||||||
* @author Michael D<EFBFBD>rgner
|
* @author Michael Duergner
|
||||||
|
* @author Roland Gruber
|
||||||
* @package PDF
|
* @package PDF
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -103,15 +105,8 @@ for ($i = 0; $i < sizeof($templateClasses); $i++) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
include '../main_header.php';
|
||||||
echo $_SESSION['header'];
|
|
||||||
?>
|
?>
|
||||||
<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>
|
<h1><?php echo _('PDF editor'); ?></h1>
|
||||||
<br>
|
<br>
|
||||||
<form action="pdfmain.php" method="post">
|
<form action="pdfmain.php" method="post">
|
||||||
|
|
|
@ -4,7 +4,7 @@ $Id$
|
||||||
|
|
||||||
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
|
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
|
||||||
Copyright (C) 2003 - 2006 Michael Duergner
|
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
|
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
|
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
|
// Check if pdfname is valid, then save current structure to file and go to
|
||||||
// main pdf structure page
|
// main pdf structure page
|
||||||
if(isset($_GET['submit'])) {
|
if(isset($_GET['submit'])) {
|
||||||
echo $_SESSION['header'];
|
include '../main_header.php';
|
||||||
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>";
|
|
||||||
if(!isset($_GET['pdfname']) || !preg_match('/[a-zA-Z0-9\-\_]+/',$_GET['pdfname'])) {
|
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\',\'_\',\'-\',\'.\'.'));
|
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
|
// print header
|
||||||
echo $_SESSION['header'];
|
include '../main_header.php';
|
||||||
// TODO Change enctype of form
|
// 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>
|
<br>
|
||||||
<form action="pdfpage.php" method="post">
|
<form action="pdfpage.php" method="post">
|
||||||
<table>
|
<table>
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
$Id$
|
$Id$
|
||||||
|
|
||||||
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
|
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
|
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
|
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
|
// print standard header
|
||||||
echo $_SESSION['header'];
|
include '../main_header.php';
|
||||||
echo ("<title>" . _("Delete profile") . "</title>\n");
|
echo ("<p><br></p>\n");
|
||||||
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n";
|
|
||||||
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']) {
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
$Id$
|
$Id$
|
||||||
|
|
||||||
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
|
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
|
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
|
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;
|
$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 "<h1>" . _('Profile editor') . "</h1>\n";
|
||||||
echo "<br>\n";
|
echo "<br>\n";
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
$Id$
|
$Id$
|
||||||
|
|
||||||
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
|
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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -67,11 +67,7 @@ if (isset($_POST['abort'])) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// print header
|
// print header
|
||||||
echo $_SESSION['header'];
|
include '../main_header.php';
|
||||||
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";
|
|
||||||
|
|
||||||
// save button was presed
|
// save button was presed
|
||||||
if (isset($_POST['save'])) {
|
if (isset($_POST['save'])) {
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
$Id$
|
$Id$
|
||||||
|
|
||||||
Copyright (C) 2004 David Smith
|
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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -45,12 +45,7 @@ startSecureSession();
|
||||||
|
|
||||||
setlanguage();
|
setlanguage();
|
||||||
|
|
||||||
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";
|
|
||||||
echo "</head>\n";
|
|
||||||
|
|
||||||
|
|
||||||
$view = isset( $_GET['view'] ) ? $_GET['view'] : 'objectClasses';
|
$view = isset( $_GET['view'] ) ? $_GET['view'] : 'objectClasses';
|
||||||
|
@ -62,8 +57,6 @@ if( ! is_null( $viewvalue ) )
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
<center><big>
|
<center><big>
|
||||||
<?php echo ( $view=='objectClasses' ?
|
<?php echo ( $view=='objectClasses' ?
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
$Id$
|
$Id$
|
||||||
|
|
||||||
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
|
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
|
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
|
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 "<h1>" . _("Server information") . "</h1>\n";
|
||||||
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 "<table class=\"userlist\" rules=\"none\">\n";
|
echo "<table class=\"userlist\" rules=\"none\">\n";
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
$Id$
|
$Id$
|
||||||
|
|
||||||
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
|
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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -41,17 +41,9 @@ if (!checkIfWriteAccessIsAllowed()) die();
|
||||||
|
|
||||||
setlanguage();
|
setlanguage();
|
||||||
|
|
||||||
echo $_SESSION['header'];
|
include '../main_header.php';
|
||||||
|
|
||||||
|
echo "<h1>" . _("LAM tests") . "</h1>\n";
|
||||||
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 "<table class=\"userlist\" rules=\"none\">\n";
|
echo "<table class=\"userlist\" rules=\"none\">\n";
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
$Id$
|
$Id$
|
||||||
|
|
||||||
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
|
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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -42,16 +42,9 @@ if (!checkIfWriteAccessIsAllowed()) die();
|
||||||
|
|
||||||
setlanguage();
|
setlanguage();
|
||||||
|
|
||||||
echo $_SESSION['header'];
|
include '../main_header.php';
|
||||||
|
|
||||||
echo "<title></title>\n";
|
echo "<h1>" . _("Lamdaemon test") . "</h1>\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";
|
|
||||||
|
|
||||||
$servers = explode(";", $_SESSION['config']->get_scriptServers());
|
$servers = explode(";", $_SESSION['config']->get_scriptServers());
|
||||||
$serverIDs = array();
|
$serverIDs = array();
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
$Id$
|
$Id$
|
||||||
|
|
||||||
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
|
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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -45,20 +45,9 @@ if (!checkIfWriteAccessIsAllowed()) die();
|
||||||
|
|
||||||
setlanguage();
|
setlanguage();
|
||||||
|
|
||||||
echo $_SESSION['header'];
|
include '../main_header.php';
|
||||||
|
|
||||||
|
echo "<h1>" . _("Schema test") . "</h1>\n";
|
||||||
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";
|
|
||||||
|
|
||||||
get_schema_objectclasses();
|
get_schema_objectclasses();
|
||||||
$classes = get_cached_schema('objectclasses');
|
$classes = get_cached_schema('objectclasses');
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
$Id$
|
$Id$
|
||||||
|
|
||||||
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
|
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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -40,15 +40,7 @@ startSecureSession();
|
||||||
|
|
||||||
setlanguage();
|
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";
|
|
||||||
|
|
||||||
// get tool list
|
// get tool list
|
||||||
$availableTools = getTools();
|
$availableTools = getTools();
|
||||||
|
@ -81,7 +73,10 @@ for ($i = 0; $i < sizeof($tools); $i++) {
|
||||||
echo "<tr class=\"userlist\">\n";
|
echo "<tr class=\"userlist\">\n";
|
||||||
echo "<td> </td>\n";
|
echo "<td> </td>\n";
|
||||||
echo "<td><br>";
|
echo "<td><br>";
|
||||||
echo "<a href=\"" . $tools[$i]->getLink() . "\"><img src=\"../graphics/" . $tools[$i]->getImageLink() . "\"> <b>" . $tools[$i]->getName() . "</b></a>";
|
echo "<a href=\"" . $tools[$i]->getLink() . "\">";
|
||||||
|
echo "<img src=\"../graphics/" . $tools[$i]->getImageLink() . "\" alt=\"" . $tools[$i]->getName() . "\">";
|
||||||
|
echo " <b>" . $tools[$i]->getName() . "</b>";
|
||||||
|
echo "</a>\n";
|
||||||
echo "<br><br></td>\n";
|
echo "<br><br></td>\n";
|
||||||
echo "<td> </td>\n";
|
echo "<td> </td>\n";
|
||||||
echo "<td>";
|
echo "<td>";
|
||||||
|
|
|
@ -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";
|
||||||
|
|
||||||
|
?>
|
Loading…
Reference in New Issue