moved files

This commit is contained in:
Roland Gruber 2018-08-28 20:19:49 +02:00
parent 5a15f29418
commit f0b3b548de
6 changed files with 23 additions and 25 deletions

View File

@ -60,7 +60,7 @@ class toolMultiEdit implements \LAMTool {
* @return string link * @return string link
*/ */
function getLink() { function getLink() {
return "multiEdit.php"; return "tools/multiEdit.php";
} }
/** /**

View File

@ -60,7 +60,7 @@ class toolOUEditor implements \LAMTool {
* @return string link * @return string link
*/ */
function getLink() { function getLink() {
return "ou_edit.php"; return "tools/ou_edit.php";
} }
/** /**

View File

@ -60,7 +60,7 @@ class toolServerInformation implements \LAMTool {
* @return string link * @return string link
*/ */
function getLink() { function getLink() {
return "serverInfo.php"; return "tools/serverInfo.php";
} }
/** /**

View File

@ -4,10 +4,8 @@ use \htmlTable;
use \htmlTitle; use \htmlTitle;
use \htmlSelect; use \htmlSelect;
use \htmlOutputText; use \htmlOutputText;
use \htmlHelpLink;
use \htmlInputField; use \htmlInputField;
use \htmlSubTitle; use \htmlSubTitle;
use \htmlTableExtendedInputField;
use \htmlButton; use \htmlButton;
use \htmlStatusMessage; use \htmlStatusMessage;
use \htmlSpacer; use \htmlSpacer;
@ -50,13 +48,13 @@ use \htmlResponsiveTable;
*/ */
/** security functions */ /** security functions */
include_once("../lib/security.inc"); include_once("../../lib/security.inc");
/** access to configuration data */ /** access to configuration data */
include_once("../lib/config.inc"); include_once("../../lib/config.inc");
/** access LDAP server */ /** access LDAP server */
include_once("../lib/ldap.inc"); include_once("../../lib/ldap.inc");
/** used to print status messages */ /** used to print status messages */
include_once("../lib/status.inc"); include_once("../../lib/status.inc");
// start session // start session
startSecureSession(); startSecureSession();
@ -95,7 +93,7 @@ else {
*/ */
function displayStartPage() { function displayStartPage() {
// display main page // display main page
include '../lib/adminHeader.inc'; include '../../lib/adminHeader.inc';
echo '<div class="user-bright smallPaddingContent">'; echo '<div class="user-bright smallPaddingContent">';
echo "<form action=\"multiEdit.php\" method=\"post\">\n"; echo "<form action=\"multiEdit.php\" method=\"post\">\n";
$errors = array(); $errors = array();
@ -205,7 +203,7 @@ function displayStartPage() {
parseHtml(null, $container, array(), false, $tabindex, 'user'); parseHtml(null, $container, array(), false, $tabindex, 'user');
echo ("</form>\n"); echo ("</form>\n");
echo '</div>'; echo '</div>';
include '../lib/adminFooter.inc'; include '../../lib/adminFooter.inc';
} }
/** /**
@ -465,10 +463,10 @@ function dryRun() {
$container->addVerticalSpace('20px'); $container->addVerticalSpace('20px');
// store LDIF // store LDIF
$filename = 'ldif' . getRandomNumber() . '.ldif'; $filename = 'ldif' . getRandomNumber() . '.ldif';
$out = @fopen(dirname(__FILE__) . '/../tmp/' . $filename, "wb"); $out = @fopen(dirname(__FILE__) . '/../../tmp/' . $filename, "wb");
fwrite($out, $ldif); fwrite($out, $ldif);
$container->addElement(new htmlOutputText(_('LDIF file')), true); $container->addElement(new htmlOutputText(_('LDIF file')), true);
$ldifLink = new htmlLink($filename, '../tmp/' . $filename); $ldifLink = new htmlLink($filename, '../../tmp/' . $filename);
$ldifLink->setTargetWindow('_blank'); $ldifLink->setTargetWindow('_blank');
$container->addElement($ldifLink, true); $container->addElement($ldifLink, true);
$container->addVerticalSpace('20px'); $container->addVerticalSpace('20px');

View File

@ -40,13 +40,13 @@ use \htmlGroup;
*/ */
/** security functions */ /** security functions */
include_once("../lib/security.inc"); include_once("../../lib/security.inc");
/** access to configuration data */ /** access to configuration data */
include_once("../lib/config.inc"); include_once("../../lib/config.inc");
/** access LDAP server */ /** access LDAP server */
include_once("../lib/ldap.inc"); include_once("../../lib/ldap.inc");
/** used to print status messages */ /** used to print status messages */
include_once("../lib/status.inc"); include_once("../../lib/status.inc");
// start session // start session
startSecureSession(); startSecureSession();
@ -118,7 +118,7 @@ if (isset($_POST['createOU']) || isset($_POST['deleteOU'])) {
$info = ldap_get_entries($_SESSION['ldap']->server(), $sr); $info = ldap_get_entries($_SESSION['ldap']->server(), $sr);
if ($sr && $info['count'] == 0) { if ($sr && $info['count'] == 0) {
// print header // print header
include 'main_header.php'; include '../main_header.php';
echo '<div class="user-bright smallPaddingContent">'; echo '<div class="user-bright smallPaddingContent">';
echo "<form action=\"ou_edit.php\" method=\"post\">\n"; echo "<form action=\"ou_edit.php\" method=\"post\">\n";
$tabindex = 1; $tabindex = 1;
@ -142,7 +142,7 @@ if (isset($_POST['createOU']) || isset($_POST['deleteOU'])) {
parseHtml(null, $container, array(), false, $tabindex, 'user'); parseHtml(null, $container, array(), false, $tabindex, 'user');
echo "</form>"; echo "</form>";
echo '</div>'; echo '</div>';
include 'main_footer.php'; include '../main_footer.php';
exit(); exit();
} }
else { else {
@ -161,7 +161,7 @@ display_main($message, $error);
*/ */
function display_main($message, $error) { function display_main($message, $error) {
// display main page // display main page
include '../lib/adminHeader.inc'; include '../../lib/adminHeader.inc';
echo '<div class="user-bright smallPaddingContent">'; echo '<div class="user-bright smallPaddingContent">';
echo "<form action=\"ou_edit.php\" method=\"post\">\n"; echo "<form action=\"ou_edit.php\" method=\"post\">\n";
@ -230,5 +230,5 @@ function display_main($message, $error) {
parseHtml(null, $container, array(), false, $tabindex, 'user'); parseHtml(null, $container, array(), false, $tabindex, 'user');
echo ("</form>\n"); echo ("</form>\n");
echo '</div>'; echo '</div>';
include '../lib/adminFooter.inc'; include '../../lib/adminFooter.inc';
} }

View File

@ -28,9 +28,9 @@
*/ */
/** security functions */ /** security functions */
include_once("../lib/security.inc"); include_once("../../lib/security.inc");
/** access to configuration options */ /** access to configuration options */
include_once("../lib/config.inc"); include_once("../../lib/config.inc");
// start session // start session
startSecureSession(); startSecureSession();
@ -94,7 +94,7 @@ foreach ($monitorResults as $monitorResult) {
} }
$monitorEntries = array_change_key_case($monitorEntries, CASE_LOWER); $monitorEntries = array_change_key_case($monitorEntries, CASE_LOWER);
include '../lib/adminHeader.inc'; include '../../lib/adminHeader.inc';
echo '<div class="user-bright smallPaddingContent">'; echo '<div class="user-bright smallPaddingContent">';
$tabindex = 1; $tabindex = 1;
$container = new htmlResponsiveRow(); $container = new htmlResponsiveRow();
@ -364,6 +364,6 @@ elseif (isset($monitorEntries['cn=monitor']['opsinitiated'])) {
parseHtml(null, $container, array(), true, $tabindex, 'user'); parseHtml(null, $container, array(), true, $tabindex, 'user');
echo '</div>'; echo '</div>';
include '../lib/adminFooter.inc'; include '../../lib/adminFooter.inc';
?> ?>