From c8b83035e7bd07227d4fbae29abf0acda903cd1f Mon Sep 17 00:00:00 2001 From: rsgrinko Date: Mon, 6 Dec 2021 22:10:39 +0300 Subject: [PATCH] replace document root to ___DIR__ --- board.php | 6 +++--- boardinfo.php | 2 +- boardlist.php | 6 +++--- control.php | 2 +- events.php | 6 +++--- firmware_list.php | 6 +++--- index.php | 2 +- login_as.php | 2 +- sql.php | 6 +++--- test.php | 2 +- users.php | 6 +++--- 11 files changed, 23 insertions(+), 23 deletions(-) diff --git a/board.php b/board.php index d7e659a..dfa7df5 100644 --- a/board.php +++ b/board.php @@ -1,6 +1,6 @@ update('configs', array('device' => $USER['deviceId']), array('ds_resolution' => $_REQUEST['ds_resolution'], 'sending_interval' => $_REQUEST['sending_interval'])); @@ -65,5 +65,5 @@ \ No newline at end of file diff --git a/boardinfo.php b/boardinfo.php index 837a738..8accd44 100644 --- a/boardinfo.php +++ b/boardinfo.php @@ -103,5 +103,5 @@ \ No newline at end of file diff --git a/boardlist.php b/boardlist.php index b62be1d..d8c330c 100644 --- a/boardlist.php +++ b/boardlist.php @@ -1,9 +1,9 @@ @@ -81,5 +81,5 @@ \ No newline at end of file diff --git a/control.php b/control.php index b1f685b..cbf8bee 100644 --- a/control.php +++ b/control.php @@ -112,5 +112,5 @@ \ No newline at end of file diff --git a/events.php b/events.php index 11ee836..1e63130 100644 --- a/events.php +++ b/events.php @@ -1,9 +1,9 @@ @@ -58,5 +58,5 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/header.php'; \ No newline at end of file diff --git a/firmware_list.php b/firmware_list.php index 9016f2b..a675622 100644 --- a/firmware_list.php +++ b/firmware_list.php @@ -1,6 +1,6 @@ @@ -62,5 +62,5 @@ \ No newline at end of file diff --git a/index.php b/index.php index ef5dce7..2263f78 100644 --- a/index.php +++ b/index.php @@ -140,5 +140,5 @@ if(CCache::checkCache($cacheId)) { \ No newline at end of file diff --git a/login_as.php b/login_as.php index 5b932d6..733705e 100644 --- a/login_as.php +++ b/login_as.php @@ -1,5 +1,5 @@
@@ -94,5 +94,5 @@
\ No newline at end of file diff --git a/test.php b/test.php index 5a718a0..f5080d6 100644 --- a/test.php +++ b/test.php @@ -2,7 +2,7 @@ /** * Файл для тестирования и отладки нового функционала */ -require_once $_SERVER['DOCUMENT_ROOT'].'/inc/bootstrap.php'; +require_once __DIR__.'/inc/bootstrap.php'; if(!CUser::is_admin()) { die('403 - Access denied'); } diff --git a/users.php b/users.php index 17b5fb4..26bcb20 100644 --- a/users.php +++ b/users.php @@ -1,9 +1,9 @@ @@ -60,5 +60,5 @@ \ No newline at end of file