-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
54 lines (44 loc) · 1.11 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
<?php
session_start();
$_SESSION["token"]=md5((string)mt_rand(0,1000));
//error_reporting(E_ALL);
//ini_set("display_errors", 1);
$page="home";
$page_path="home.php";
if(isset($_GET["page"]))
{$page=strtolower($_GET["page"]); }
switch($page)
{
case"home":
$page_path="home.php";
break;
case"hunt":
$page_path="hunt.php";
break;
case"area":
$page_path="area.php";
break;
case"species":
$page_path="species.php";
break;
case"about":
$page_path="about.php";
break;
case"imprint":
$page_path="imprint.php";
break;
default:
$page="404";
$page_path="404.php"; break;
}
//GenerateTemplateData
$template=array();
$template["title"]="explore your urban environment ― ($page)";
$template["desc"]="explore your urban environment!";
$template["motto"]="explore your urban environment!";
$template["copy"]="© 2015 - Karin Wannemacher";
$template["project"]="Project in cooperation with<br />Austrian Federal Environment Agency<br />Danube Hack 2016";
$template["maplist_numb"]=8;
$template["content_path"]=$page_path;
require_once(dirname(__FILE__) . '/tpl/index.php');
?>