Moved include also out from htdocs
This commit is contained in:
parent
7cc30fe5af
commit
e96ef04f09
13 changed files with 2 additions and 3 deletions
1
utils/tests/htdocs/include/.gitignore
vendored
1
utils/tests/htdocs/include/.gitignore
vendored
|
@ -1 +0,0 @@
|
|||
config.php
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
$root_dir = './';
|
||||
|
||||
require_once('include/config.php');
|
||||
require_once($root_dir . '../include/config.php');
|
||||
|
||||
$header = new Header('index');
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ error_reporting(E_ALL | E_STRICT);
|
|||
function __autoload($class)
|
||||
{
|
||||
global $root_dir;
|
||||
require_once($root_dir . 'include/'.$class .'.php');
|
||||
require_once($root_dir . '../include/'.$class .'.php');
|
||||
}
|
||||
|
||||
// initialize database connection
|
Loading…
Add table
Reference in a new issue