all in the datastore.
[glcas.git] / lib / config.php
1 <?php
2
3 global $configured, $BASE_DIR, $DB_HANDLE;
4 $configured = false;
5 $DB_HANDLE = false;
6
7 $BASE_DIR = realpath(dirname(__FILE__)."/../");
8
9 global $BASE_DIR;
10
11
12 if(file_exists("../var/config.php")) {
13         require_once("../var/config.php");
14         $configured = true;
15 }
16
17 if(file_exists("/var/glcas/config.php")) {
18         require_once("/var/glcas/config.php");
19         $configured = true;
20 }
21
22 if(file_exists("/etc/glcas/config.php")) {
23         require_once("/etc/glcas/config.php");
24         $configured = true;
25 }
26 ?>