Fix all include_once() call with __DIR__-based paths.

This commit is contained in:
Gea-Suan Lin 2019-07-31 14:22:37 +08:00
parent 99943002b5
commit b82d0c24b9
5 changed files with 14 additions and 14 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,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";
if ( $_POST['setup_admin_account'] ) { if ( $_POST['setup_admin_account'] ) {
$admin_setup = TRUE; $admin_setup = TRUE;

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,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(); render_header();

View File

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