refactoring
This commit is contained in:
parent
e43b106c95
commit
36b91b2785
|
@ -40,13 +40,13 @@ use \htmlSubTitle;
|
|||
|
||||
|
||||
/** security functions */
|
||||
include_once("../../lib/security.inc");
|
||||
include_once(__DIR__ . "/../../lib/security.inc");
|
||||
/** access to LDAP server */
|
||||
include_once("../../lib/ldap.inc");
|
||||
include_once(__DIR__ . "/../../lib/ldap.inc");
|
||||
/** access to configuration options */
|
||||
include_once("../../lib/config.inc");
|
||||
include_once(__DIR__ . "/../../lib/config.inc");
|
||||
/** schema functions */
|
||||
require_once("../../lib/schema.inc");
|
||||
require_once(__DIR__ . "/../../lib/schema.inc");
|
||||
|
||||
// start session
|
||||
startSecureSession();
|
||||
|
@ -56,7 +56,7 @@ checkIfToolIsActive('toolSchemaBrowser');
|
|||
|
||||
setlanguage();
|
||||
|
||||
include '../../lib/adminHeader.inc';
|
||||
include __DIR__ . '/../../lib/adminHeader.inc';
|
||||
echo "<div class=\"user-bright smallPaddingContent\">\n";
|
||||
|
||||
$availableViews = array('objectClass', 'attribute', 'syntax', 'rule');
|
||||
|
@ -93,7 +93,7 @@ elseif( $selectedView == 'objectClass' ) {
|
|||
parseHtml(null, $row, array(), false, $tabindex, 'user');
|
||||
|
||||
echo '</div>';
|
||||
include '../../lib/adminFooter.inc';
|
||||
include __DIR__ . '/../../lib/adminFooter.inc';
|
||||
|
||||
/**
|
||||
* Displays the syntax list.
|
||||
|
|
|
@ -47,15 +47,15 @@ use LAM\TYPES\TypeManager;
|
|||
*/
|
||||
|
||||
/** security functions */
|
||||
include_once("../../lib/security.inc");
|
||||
include_once(__DIR__ . "/../../lib/security.inc");
|
||||
/** access to configuration data */
|
||||
include_once("../../lib/config.inc");
|
||||
include_once(__DIR__ . "/../../lib/config.inc");
|
||||
/** access LDAP server */
|
||||
include_once("../../lib/ldap.inc");
|
||||
include_once(__DIR__ . "/../../lib/ldap.inc");
|
||||
/** used to print status messages */
|
||||
include_once("../../lib/status.inc");
|
||||
include_once(__DIR__ . "/../../lib/status.inc");
|
||||
/** import class */
|
||||
include_once("../../lib/import.inc");
|
||||
include_once(__DIR__ . "/../../lib/import.inc");
|
||||
|
||||
// start session
|
||||
startSecureSession();
|
||||
|
@ -85,7 +85,7 @@ if (isset($_SESSION[Importer::SESSION_KEY_STOP_ON_ERROR])) {
|
|||
unset($_SESSION[Importer::SESSION_KEY_STOP_ON_ERROR]);
|
||||
}
|
||||
|
||||
include '../../lib/adminHeader.inc';
|
||||
include __DIR__ . '/../../lib/adminHeader.inc';
|
||||
$tabindex = 1;
|
||||
$activeTab = 0;
|
||||
if (!empty($_GET['tab']) && ($_GET['tab'] === 'export')) {
|
||||
|
@ -396,4 +396,4 @@ function checkExportData() {
|
|||
}
|
||||
}
|
||||
|
||||
include '../../lib/adminFooter.inc';
|
||||
include __DIR__ . '/../../lib/adminFooter.inc';
|
||||
|
|
|
@ -48,13 +48,13 @@ use \htmlResponsiveTable;
|
|||
*/
|
||||
|
||||
/** security functions */
|
||||
include_once("../../lib/security.inc");
|
||||
include_once(__DIR__ . "/../../lib/security.inc");
|
||||
/** access to configuration data */
|
||||
include_once("../../lib/config.inc");
|
||||
include_once(__DIR__ . "/../../lib/config.inc");
|
||||
/** access LDAP server */
|
||||
include_once("../../lib/ldap.inc");
|
||||
include_once(__DIR__ . "/../../lib/ldap.inc");
|
||||
/** used to print status messages */
|
||||
include_once("../../lib/status.inc");
|
||||
include_once(__DIR__ . "/../../lib/status.inc");
|
||||
|
||||
// start session
|
||||
startSecureSession();
|
||||
|
@ -93,7 +93,7 @@ else {
|
|||
*/
|
||||
function displayStartPage() {
|
||||
// display main page
|
||||
include '../../lib/adminHeader.inc';
|
||||
include __DIR__ . '/../../lib/adminHeader.inc';
|
||||
echo '<div class="user-bright smallPaddingContent">';
|
||||
echo "<form action=\"multiEdit.php\" method=\"post\">\n";
|
||||
$errors = array();
|
||||
|
@ -203,7 +203,7 @@ function displayStartPage() {
|
|||
parseHtml(null, $container, array(), false, $tabindex, 'user');
|
||||
echo "</form>\n";
|
||||
echo '</div>';
|
||||
include '../../lib/adminFooter.inc';
|
||||
include __DIR__ . '/../../lib/adminFooter.inc';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -40,13 +40,13 @@ use \htmlGroup;
|
|||
*/
|
||||
|
||||
/** security functions */
|
||||
include_once("../../lib/security.inc");
|
||||
include_once(__DIR__ . "/../../lib/security.inc");
|
||||
/** access to configuration data */
|
||||
include_once("../../lib/config.inc");
|
||||
include_once(__DIR__ . "/../../lib/config.inc");
|
||||
/** access LDAP server */
|
||||
include_once("../../lib/ldap.inc");
|
||||
include_once(__DIR__ . "/../../lib/ldap.inc");
|
||||
/** used to print status messages */
|
||||
include_once("../../lib/status.inc");
|
||||
include_once(__DIR__ . "/../../lib/status.inc");
|
||||
|
||||
// start session
|
||||
startSecureSession();
|
||||
|
@ -161,7 +161,7 @@ display_main($message, $error);
|
|||
*/
|
||||
function display_main($message, $error) {
|
||||
// display main page
|
||||
include '../../lib/adminHeader.inc';
|
||||
include __DIR__ . '/../../lib/adminHeader.inc';
|
||||
echo '<div class="user-bright smallPaddingContent">';
|
||||
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');
|
||||
echo "</form>\n";
|
||||
echo '</div>';
|
||||
include '../../lib/adminFooter.inc';
|
||||
include __DIR__ . '/../../lib/adminFooter.inc';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue