-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
42 lines (36 loc) · 974 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
35
36
37
38
39
40
41
42
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
echo mysql_error();
# Import Configuration
$cfgFile = "conf/ReefDB.json";
$_CFG = json_decode(file_get_contents($cfgFile), true);
# Import usefull stuff
require_once("lib/stuff.lib.php");
require_once("lib/html.lib.php");
# Import Grapher
# require_once("lib/grapher.class.php");
# $g = new Grapher($_CFG['Grafana']);
require_once("html/head.html");
if(!empty($_GET["event"])) {
$e = $_GET["event"];
switch($e) {
case "newData":
require_once("php/newData.php");
break;
case "newLab":
require_once("php/newLab.php");
break;
case "about":
require_once("html/about.html");
break;
default:
require_once("php/newData.php");
}
}
else {
require_once("php/newData.php");
}
require_once("html/modals.html");
require_once("html/foot.html");
?>