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