forked from Bonsaif/new-nconf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
34 lines (27 loc) · 811 Bytes
/
index.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
<?php
###
### WELCOME TO NConf, configuration files are located here : config/..
###
## do not change anything other
##
# look if configuration files exist
if (file_exists('config/nconf.php') ){
require_once 'main.php';
require_once 'include/head.php';
# for all pages show the login or if logged in only version info
require_once("include/login_form.php");
require_once 'include/foot.php';
}else{
# NConf not yet installed/configured
$nconfdir = dirname( $_SERVER["SCRIPT_FILENAME"] );
require_once('config.orig/authentication.php');
require_once('include/functions.php');
require_once('include/includeAllClasses.php');
require_once('config.orig/nconf.php');
require_once 'include/head.php';
}
###
### Finish
### anything is loaded until here
###
?>