forked from nconf/nconf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.php
68 lines (56 loc) · 1.06 KB
/
main.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?php
##
## main CONFIG FILE,
##
## all config files will be loaded here
## also the functions will be loaded
##
# get this dirname
$config_dir = dirname(__FILE__).'/config/';
#
# NConf Specific configuration
#
require_once($config_dir.'/nconf.php');
# now we can use NCONFDIR as "PATH"
#
# NConf Version info
#
require_once(NCONFDIR.'/include/version.php');
#
# Authentication / login
#
require_once(NCONFDIR.'/config/authentication.php');
#
# NConf classes
#
require_once(NCONFDIR.'/include/includeAllClasses.php');
#
# mysql-DB settings
#
require_once(NCONFDIR.'/config/mysql.php');
#
# mysql Initiate connection
#
$dbh = mysql_connect(DBHOST,DBUSER,DBPASS);
mysql_select_db(DBNAME);
#
# some misc gui things
#
require_once(NCONFDIR.'/include/gui.php');
#
# part for messages
#
require_once(NCONFDIR.'/include/messages.php');
##
## LOAD Functions
##
require_once(NCONFDIR.'/include/functions.php');
##
## start debug info
##
NConf_DEBUG::set('', 'DEBUG', 'Header / ACL / navigation debugging');
##
## LOAD Modules
##
require_once(NCONFDIR.'/include/modules.php');
?>