forked from chk1/eggtracker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
69 lines (64 loc) · 1.27 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
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
69
<?php
$action = "";
if(isset($_GET["action"])) $action = $_GET["action"];
$menu_entries = array(""=>"Karte",
"list" => "Ei Liste",
"diagram" => "Diagramm",
"more" => "Mehr",
"about" => "Info",
"contact" => "Kontakt");
/*
header
*/
if(is_file("inc/config.inc.php")) {
include("inc/header.inc.php");
} else {
die("It appears that you do not have set up your config file yet. Please check the installation manual (INSTALL).");
}
/*
content:
switch different pages:
index.php?action=about
index.php?action=list
etc.
*/
switch($action) {
default:
include("inc/home.inc.php");
break;
case "list":
include("inc/list_eggs.inc.php");
break;
case "diagram":
include("inc/diagram.inc.php");
break;
case "more":
include("inc/more.inc.php");
break;
case "about":
include("inc/about.inc.php");
break;
case "mobile_home":
include("inc/mobile_home.inc.php");
break;
case "export_form":
include("inc/export_form.inc.php");
break;
case "list_values":
include("inc/list_values_form.inc.php");
break;
case "list_values_table":
include("inc/list_values.inc.php");
break;
case "contact":
include("inc/contact.inc.php");
break;
case "blank":
include("inc/template.inc.php");
break;
}
/*
footer
*/
include("inc/footer.inc.php");
?>