replace document root to ___DIR__
This commit is contained in:
1 parent
471f24a736
commit
c8b83035e7
11 files changed
+23
-23
No files matched your search
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
require_once $_SERVER['DOCUMENT_ROOT'].'/inc/bootstrap.php';
|
||||
require_once $_SERVER['DOCUMENT_ROOT'].'/inc/header.php';
|
||||
require_once __DIR__.'/inc/bootstrap.php';
|
||||
require_once __DIR__.'/inc/header.php';
|
||||
|
||||
if(isset($_REQUEST['save']) and $_REQUEST['save'] == 'Y'):
|
||||
$DB->update('configs', array('device' => $USER['deviceId']), array('ds_resolution' => $_REQUEST['ds_resolution'], 'sending_interval' => $_REQUEST['sending_interval']));
|
||||
@@ -65,5 +65,5 @@
|
||||
</div>
|
||||
|
||||
<?php
|
||||
require_once $_SERVER['DOCUMENT_ROOT'].'/inc/footer.php';
|
||||
require_once __DIR__.'/inc/footer.php';
|
||||
?>
|
||||
Reference in new issue
Block a user