Merge pull request #5 from gslin/master

Avoid `include_path` dependency.
This commit is contained in:
Brian Lycett 2019-09-09 10:00:36 +01:00 committed by GitHub
commit c3244bdd7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 29 additions and 29 deletions

View File

@ -1,8 +1,8 @@
<?php
include_once("web_functions.inc.php");
include_once("ldap_functions.inc.php");
include_once("module_functions.inc.php");
include_once __DIR__ . "/../includes/web_functions.inc.php";
include_once __DIR__ . "/../includes/ldap_functions.inc.php";
include_once __DIR__ . "/../includes/module_functions.inc.php";
set_page_access("admin");
render_header("LDAP manager");

View File

@ -1,8 +1,8 @@
<?php
include_once("web_functions.inc.php");
include_once("ldap_functions.inc.php");
include_once("module_functions.inc.php");
include_once __DIR__ . "/../includes/web_functions.inc.php";
include_once __DIR__ . "/../includes/ldap_functions.inc.php";
include_once __DIR__ . "/../includes/module_functions.inc.php";
set_page_access("admin");
render_header("LDAP manager");

View File

@ -1,8 +1,8 @@
<?php
include_once("web_functions.inc.php");
include_once("ldap_functions.inc.php");
include_once("module_functions.inc.php");
include_once __DIR__ . "/../includes/web_functions.inc.php";
include_once __DIR__ . "/../includes/ldap_functions.inc.php";
include_once __DIR__ . "/../includes/module_functions.inc.php";
if ( $_POST['setup_admin_account'] ) {
$admin_setup = TRUE;

View File

@ -1,8 +1,8 @@
<?php
include_once("web_functions.inc.php");
include_once("ldap_functions.inc.php");
include_once("module_functions.inc.php");
include_once __DIR__ . "/../includes/web_functions.inc.php";
include_once __DIR__ . "/../includes/ldap_functions.inc.php";
include_once __DIR__ . "/../includes/module_functions.inc.php";
set_page_access("admin");
render_header("LDAP manager");

View File

@ -1,8 +1,8 @@
<?php
include_once("web_functions.inc.php");
include_once("ldap_functions.inc.php");
include_once("module_functions.inc.php");
include_once __DIR__ . "/../includes/web_functions.inc.php";
include_once __DIR__ . "/../includes/ldap_functions.inc.php";
include_once __DIR__ . "/../includes/module_functions.inc.php";
set_page_access("admin");
render_header();

View File

@ -1,7 +1,7 @@
<?php
include_once("web_functions.inc.php");
include_once("ldap_functions.inc.php");
include_once __DIR__ . "/../includes/web_functions.inc.php";
include_once __DIR__ . "/../includes/ldap_functions.inc.php";
set_page_access("user");

View File

@ -1,6 +1,6 @@
<?php
include_once("web_functions.inc.php");
include_once __DIR__ . "/includes/web_functions.inc.php";
render_header();
if (isset($_GET['logged_out'])) {

View File

@ -1,7 +1,7 @@
<?php
include("web_functions.inc.php");
include("ldap_functions.inc.php");
include __DIR__ . "/../includes/web_functions.inc.php";
include __DIR__ . "/../includes/ldap_functions.inc.php";
if (isset($_POST["user_id"]) and isset($_POST["password"])) {

View File

@ -1,4 +1,4 @@
<?php
include("web_functions.inc.php");
include __DIR__ . "/../includes/web_functions.inc.php";
log_out();
?>

View File

@ -1,7 +1,7 @@
<?php
include("web_functions.inc.php");
include("ldap_functions.inc.php");
include __DIR__ . "/../includes/web_functions.inc.php";
include __DIR__ . "/../includes/ldap_functions.inc.php";
if (isset($_POST["admin_password"])) {

View File

@ -1,8 +1,8 @@
<?php
include_once("web_functions.inc.php");
include_once("ldap_functions.inc.php");
include_once("module_functions.inc.php");
include_once __DIR__ . "/../includes/web_functions.inc.php";
include_once __DIR__ . "/../includes/ldap_functions.inc.php";
include_once __DIR__ . "/../includes/module_functions.inc.php";
validate_setup_cookie();
set_page_access("setup");

View File

@ -1,8 +1,8 @@
<?php
include_once("web_functions.inc.php");
include_once("ldap_functions.inc.php");
include_once("module_functions.inc.php");
include_once __DIR__ . "/../includes/web_functions.inc.php";
include_once __DIR__ . "/../includes/ldap_functions.inc.php";
include_once __DIR__ . "/../includes/module_functions.inc.php";
validate_setup_cookie();
set_page_access("setup");