Use __DIR__ to avoid include_path dependency.

This commit is contained in:
Gea-Suan Lin 2019-07-31 14:08:53 +08:00
parent 79ac66c96f
commit 99943002b5
8 changed files with 17 additions and 17 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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