Rev 3 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1 | daniel-mar | 1 | <?php |
2 | |||
3 | require 'includes/main.inc.php'; |
||
4 | require 'includes/modulinit.inc.php'; |
||
5 | |||
10 | daniel-mar | 6 | $modul = isset($_REQUEST['modul']) ? $_REQUEST['modul'] : ''; |
7 | $seite = isset($_REQUEST['seite']) ? $_REQUEST['seite'] : ''; |
||
8 | $aktion = isset($_REQUEST['aktion']) ? $_REQUEST['aktion'] : ''; |
||
9 | $category = isset($_REQUEST['category']) ? $_REQUEST['category'] : ''; |
||
1 | daniel-mar | 10 | |
11 | $module_information = WBModuleHandler::get_module_information($modul); |
||
12 | |||
13 | if (!$module_information) { |
||
14 | die($header.'<b>Fehler beim Laden der Seite</b><br><br>Das Modul ist nicht installiert.'.$footer); |
||
15 | } |
||
16 | |||
17 | if (((isset($wb_user_type)) && ($wb_user_type >= $module_information->rights)) || ($module_information->no_security == '1')) |
||
18 | { |
||
19 | $m2 = 'common_debugger'; |
||
20 | if (file_exists('modules/'.$m2.'/static_core/page_start.inc.php')) { |
||
21 | include('modules/'.$m2.'/static_core/page_start.inc.php'); |
||
22 | } |
||
23 | unset($m2); |
||
24 | |||
25 | // Nun die Modulseite laden |
||
26 | if (file_exists('modules/'.$modul.'/page/'.$seite.'.inc.php')) |
||
27 | { |
||
28 | include('modules/'.$modul.'/page/'.$seite.'.inc.php'); |
||
29 | } |
||
30 | else |
||
31 | { |
||
32 | echo $header.'<b>Fehler beim Laden der Seite</b><br><br>Die angefragte Seite wurde im Modulverzeichnis nicht gefunden.'.$footer; |
||
33 | } |
||
34 | |||
35 | $m2 = 'common_debugger'; |
||
36 | if (file_exists('modules/'.$m2.'/static_core/page_end.inc.php')) { |
||
37 | include('modules/'.$m2.'/static_core/page_end.inc.php'); |
||
38 | } |
||
39 | unset($m2); |
||
40 | } |
||
41 | else |
||
42 | { |
||
43 | @session_unset(); |
||
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); |
||
46 | } |
||
47 | |||
48 | ?> |