refactoring

This commit is contained in:
Roland Gruber 2018-12-23 17:45:01 +01:00
parent 615e0f4947
commit 19858a03f5
4 changed files with 22 additions and 22 deletions

View File

@ -36,9 +36,9 @@ use \htmlButton;
*/
/** security functions */
include_once("../../lib/security.inc");
include_once(__DIR__ . "/../../lib/security.inc");
/** LDIF import */
include_once("../../lib/import.inc");
include_once(__DIR__ . "/../../lib/import.inc");
// start session
if (isset($_GET['selfservice'])) {

View File

@ -48,15 +48,15 @@ use \LAM\TYPES\TypeManager;
*/
/** security functions */
include_once("../../lib/security.inc");
include_once(__DIR__ . "/../../lib/security.inc");
/** access to PDF configuration files */
include_once("../../lib/pdfstruct.inc");
include_once(__DIR__ . "/../../lib/pdfstruct.inc");
/** LDAP object */
include_once("../../lib/ldap.inc");
include_once(__DIR__ . "/../../lib/ldap.inc");
/** for language settings */
include_once("../../lib/config.inc");
include_once(__DIR__ . "/../../lib/config.inc");
/** module functions */
include_once("../../lib/modules.inc");
include_once(__DIR__ . "/../../lib/modules.inc");
// start session
startSecureSession();
@ -202,7 +202,7 @@ foreach ($templateClasses as $templateClass) {
exit;
}
}
include '../../lib/adminHeader.inc';
include __DIR__ . '/../../lib/adminHeader.inc';
?>
<div class="user-bright smallPaddingContent">
@ -409,7 +409,7 @@ echo '<div id="deleteProfileDialog" class="hidden"><form id="deleteProfileForm"
echo '<input type="hidden" name="' . getSecurityTokenName() . '" value="' . getSecurityTokenValue() . '">';
echo '</form></div>';
include '../../lib/adminFooter.inc';
include __DIR__ . '/../../lib/adminFooter.inc';
/**

View File

@ -50,15 +50,15 @@ use LAM\PDF\PDFStructureWriter;
*/
/** security functions */
include_once("../../lib/security.inc");
include_once(__DIR__ . "/../../lib/security.inc");
/** access to PDF configuration files */
include_once('../../lib/pdfstruct.inc');
include_once(__DIR__ . '/../../lib/pdfstruct.inc');
/** LDAP object */
include_once('../../lib/ldap.inc');
include_once(__DIR__ . '/../../lib/ldap.inc');
/** LAM configuration */
include_once('../../lib/config.inc');
include_once(__DIR__ . '/../../lib/config.inc');
/** module functions */
include_once('../../lib/modules.inc');
include_once(__DIR__ . '/../../lib/modules.inc');
// start session
startSecureSession();
@ -180,7 +180,7 @@ foreach($sortedModules as $module => $title) {
$modules = join(',',$modules);
// print header
include '../../lib/adminHeader.inc';
include __DIR__ . '/../../lib/adminHeader.inc';
?>
<div class="user-bright smallPaddingContent">
<?php
@ -465,7 +465,7 @@ if ((sizeof($saveErrors) == 0) && isset($_POST['scrollPositionTop']) && isset($_
}
echo '</form></div>';
include '../../lib/adminFooter.inc';
include __DIR__ . '/../../lib/adminFooter.inc';
/**

View File

@ -45,13 +45,13 @@ use \LAM\TYPES\TypeManager;
*/
/** security functions */
include_once("../../lib/security.inc");
include_once(__DIR__ . "/../../lib/security.inc");
/** helper functions for profiles */
include_once("../../lib/profiles.inc");
include_once(__DIR__ . "/../../lib/profiles.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");
// start session
startSecureSession();
@ -182,7 +182,7 @@ foreach ($profileClasses as $profileClass) {
}
}
include '../../lib/adminHeader.inc';
include __DIR__ . '/../../lib/adminHeader.inc';
echo "<div class=\"user-bright smallPaddingContent\">\n";
echo "<form name=\"profilemainForm\" action=\"profilemain.php\" method=\"post\">\n";
echo '<input type="hidden" name="' . getSecurityTokenName() . '" value="' . getSecurityTokenValue() . '">';
@ -361,7 +361,7 @@ echo '<div id="deleteProfileDialog" class="hidden"><form id="deleteProfileForm"
echo '<input type="hidden" name="' . getSecurityTokenName() . '" value="' . getSecurityTokenValue() . '">';
echo '</form></div>';
include '../../lib/adminFooter.inc';
include __DIR__ . '/../../lib/adminFooter.inc';
/**
* Imports the selected account profiles.