Rev 3 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3 | Rev 10 | ||
---|---|---|---|
1 | <?php |
1 | <?php |
2 | 2 | ||
3 | require 'includes/main.inc.php'; |
3 | require 'includes/main.inc.php'; |
4 | require 'includes/modulinit.inc.php'; |
4 | require 'includes/modulinit.inc.php'; |
5 | 5 | ||
6 | if (!isset($modul)) $modul = ''; |
6 | $modul = isset($_REQUEST['modul']) ? $_REQUEST['modul'] : ''; |
7 | if (!isset($seite)) $seite = ''; |
7 | $seite = isset($_REQUEST['seite']) ? $_REQUEST['seite'] : ''; |
8 | if (!isset($aktion)) $aktion = ''; |
8 | $aktion = isset($_REQUEST['aktion']) ? $_REQUEST['aktion'] : ''; |
9 | if (!isset($category)) $category = ''; |
9 | $category = isset($_REQUEST['category']) ? $_REQUEST['category'] : ''; |
10 | 10 | ||
11 | $module_information = WBModuleHandler::get_module_information($modul); |
11 | $module_information = WBModuleHandler::get_module_information($modul); |
12 | 12 | ||
13 | if (!$module_information) { |
13 | if (!$module_information) { |
14 | die($header.'<b>Fehler beim Laden der Seite</b><br><br>Das Modul ist nicht installiert.'.$footer); |
14 | die($header.'<b>Fehler beim Laden der Seite</b><br><br>Das Modul ist nicht installiert.'.$footer); |
15 | } |
15 | } |
16 | 16 | ||
17 | if (((isset($wb_user_type)) && ($wb_user_type >= $module_information->rights)) || ($module_information->no_security == '1')) |
17 | if (((isset($wb_user_type)) && ($wb_user_type >= $module_information->rights)) || ($module_information->no_security == '1')) |
18 | { |
18 | { |
19 | $m2 = 'common_debugger'; |
19 | $m2 = 'common_debugger'; |
20 | if (file_exists('modules/'.$m2.'/static_core/page_start.inc.php')) { |
20 | if (file_exists('modules/'.$m2.'/static_core/page_start.inc.php')) { |
21 | include('modules/'.$m2.'/static_core/page_start.inc.php'); |
21 | include('modules/'.$m2.'/static_core/page_start.inc.php'); |
22 | } |
22 | } |
23 | unset($m2); |
23 | unset($m2); |
24 | 24 | ||
25 | // Nun die Modulseite laden |
25 | // Nun die Modulseite laden |
26 | if (file_exists('modules/'.$modul.'/page/'.$seite.'.inc.php')) |
26 | if (file_exists('modules/'.$modul.'/page/'.$seite.'.inc.php')) |
27 | { |
27 | { |
28 | include('modules/'.$modul.'/page/'.$seite.'.inc.php'); |
28 | include('modules/'.$modul.'/page/'.$seite.'.inc.php'); |
29 | } |
29 | } |
30 | else |
30 | else |
31 | { |
31 | { |
32 | echo $header.'<b>Fehler beim Laden der Seite</b><br><br>Die angefragte Seite wurde im Modulverzeichnis nicht gefunden.'.$footer; |
32 | echo $header.'<b>Fehler beim Laden der Seite</b><br><br>Die angefragte Seite wurde im Modulverzeichnis nicht gefunden.'.$footer; |
33 | } |
33 | } |
34 | 34 | ||
35 | $m2 = 'common_debugger'; |
35 | $m2 = 'common_debugger'; |
36 | if (file_exists('modules/'.$m2.'/static_core/page_end.inc.php')) { |
36 | if (file_exists('modules/'.$m2.'/static_core/page_end.inc.php')) { |
37 | include('modules/'.$m2.'/static_core/page_end.inc.php'); |
37 | include('modules/'.$m2.'/static_core/page_end.inc.php'); |
38 | } |
38 | } |
39 | unset($m2); |
39 | unset($m2); |
40 | } |
40 | } |
41 | else |
41 | else |
42 | { |
42 | { |
43 | @session_unset(); |
43 | @session_unset(); |
44 | @session_destroy(); |
44 | @session_destroy(); |
45 | die($header.'<h1>Session abgelaufen</h1>Ihre Session ist abgelaufen oder ungütig geworden. Bitte loggen Sie sich neu ein.<br><br><a href="index.php" target="_parent">Zum Hauptmenü</a>'.$footer); |
45 | die($header.'<h1>Session abgelaufen</h1>Ihre Session ist abgelaufen oder ungütig geworden. Bitte loggen Sie sich neu ein.<br><br><a href="index.php" target="_parent">Zum Hauptmenü</a>'.$footer); |
46 | } |
46 | } |
47 | 47 | ||
48 | ?> |
48 | ?> |