Moved include also out from htdocs

This commit is contained in:
Pauli Nieminen 2008-08-08 17:39:25 +00:00
parent 7cc30fe5af
commit e96ef04f09
13 changed files with 2 additions and 3 deletions

View file

@ -1 +0,0 @@
config.php

View file

@ -1,7 +1,7 @@
<?php
$root_dir = './';
require_once('include/config.php');
require_once($root_dir . '../include/config.php');
$header = new Header('index');

View file

@ -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