forked from freuds/nconf
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.php
43 lines (37 loc) · 1.23 KB
/
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
35
36
37
38
39
40
41
42
43
<?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';
if ( !isset($_SESSION["group"]) ) {
require_once("include/login_form.php");
} else {
echo '<h2>Welcome to NEMS NConf</h2>';
echo '<p>This is where you can configure your monitoring. Once you have configured your server, press "';
if ($nemsver > 0) {
echo 'Generate NEMS Config';
} else {
echo 'Generate Nagios Config';
}
echo '" to make them take effect immediately. If there are errors in your configuration, you will be warned on the next screen and can take action to correct the issues.</p>';
}
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
###
?>