-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
42 lines (37 loc) · 998 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
/**
* Setting Base Path for includes later on.
*/
include_once(__DIR__.'/includes/php/util/Util.php');
Util::setBaseDir(__DIR__);
$BASE_DIR = Util::getBaseDir();
$exploded_uri = explode('?', $_SERVER['REQUEST_URI']);
$FILE_URL = $exploded_uri[0];
?>
<html>
<head>
</head>
<body>
<?php /*============================================================*/ ?>
<?php
switch($_GET['bereich']) {
case 'profilsuche':
?>
<div id="mainmenulink"><a href="<?php print $FILE_URL; ?>">Zum Hauptmenü</a></div>
<?php
include_once($BASE_DIR.'/includes/php/profilsuche.php');
break;
case 'artikelsuche':
?>
<div id="mainmenulink"><a href="<?php print $FILE_URL; ?>">Zum Hauptmenü</a></div>
<?php
include_once($BASE_DIR.'/includes/php/artikelsuche.php');
break;
default:
include_once($BASE_DIR.'/includes/php/views/MainView.php');
break;
}
?>
<?php /*============================================================*/ ?>
</body>
</html>