Rev 7 | Rev 12 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7 | Rev 8 | ||
---|---|---|---|
1 | <?php |
1 | <?php |
2 | 2 | ||
3 | require 'includes/main.inc.php'; |
3 | require 'includes/main.inc.php'; |
4 | 4 | ||
5 | echo $header_navi; |
5 | echo $header_navi; |
6 | 6 | ||
7 | ?><table cellspacing="0" cellpadding="2" border="0" width="100%" style="height:100%"> |
7 | ?><table cellspacing="0" cellpadding="2" border="0" width="100%" style="height:100%"> |
8 | <tr class="area_bar"> |
8 | <tr class="area_bar"> |
9 | <td valign="middle" align="center" colspan="5"> |
9 | <td valign="middle" align="center" colspan="5"> |
10 | 10 | ||
11 | <b><?php |
11 | <b><?php |
12 | 12 | ||
13 | $ueberschrift = ''; |
13 | $ueberschrift = ''; |
14 | $menue = ''; |
14 | $menue = ''; |
15 | if (isset($modul) && (file_exists('modules/'.$modul.'/area_'.$area.'.inc.php'))) |
15 | if (isset($modul) && (file_exists('modules/'.wb_dir_escape($modul).'/area_'.wb_dir_escape($area).'.inc.php'))) |
16 | include('modules/'.$modul.'/area_'.$area.'.inc.php'); |
16 | include('modules/'.wb_dir_escape($modul).'/area_'.wb_dir_escape($area).'.inc.php'); |
17 | 17 | ||
18 | if (!isset($prv_seite)) $prv_seite = 'inhalt'; |
18 | if (!isset($prv_seite)) $prv_seite = 'inhalt'; |
19 | 19 | ||
20 | if ($ueberschrift != '') |
20 | if ($ueberschrift != '') |
21 | { |
21 | { |
22 | echo $ueberschrift; |
22 | echo $ueberschrift; |
23 | } |
23 | } |
24 | else |
24 | else |
25 | { |
25 | { |
26 | if ($ib_user_type == '0') |
26 | if ($ib_user_type == '0') |
27 | echo 'Gastzugang'; |
27 | echo 'Gastzugang'; |
28 | else if ($ib_user_type == '1') |
28 | else if ($ib_user_type == '1') |
29 | echo 'Benutzermenü'; |
29 | echo 'Benutzermenü'; |
30 | else if ($ib_user_type == '2') |
30 | else if ($ib_user_type == '2') |
31 | echo 'Verwaltung'; |
31 | echo 'Verwaltung'; |
32 | else |
32 | else |
33 | echo 'Hauptmenü'; |
33 | echo 'Hauptmenü'; |
34 | } |
34 | } |
35 | 35 | ||
36 | ?></b><img src="design/spacer.gif" alt="" width="1" height="14"></td> |
36 | ?></b><img src="design/spacer.gif" alt="" width="1" height="14"></td> |
37 | </tr> |
37 | </tr> |
38 | 38 | ||
39 | <?php |
39 | <?php |
40 | 40 | ||
41 | echo gfx_zeichnemenueplatzhalter(); |
41 | echo gfx_zeichnemenueplatzhalter(); |
42 | 42 | ||
43 | $startgefunden = false; |
43 | $startgefunden = false; |
44 | if ($menue == '') |
44 | if ($menue == '') |
45 | { |
45 | { |
46 | $men = array(); |
46 | $men = array(); |
47 | foreach ($module as $m1 => $m2) |
47 | foreach ($module as $m1 => $m2) |
48 | { |
48 | { |
49 | if (file_exists('modules/'.$m2.'/var.inc.php')) |
49 | if (file_exists('modules/'.wb_dir_escape($m2).'/var.inc.php')) |
50 | { |
50 | { |
51 | $modulueberschrift = $m2; // Wenn keine Überschrift in var.inc.php, dann wird das Modul nicht benannt |
51 | $modulueberschrift = $m2; // Wenn keine Überschrift in var.inc.php, dann wird das Modul nicht benannt |
52 | $modulsekpos = ''; |
52 | $modulsekpos = ''; |
53 | $modulpos = ''; |
53 | $modulpos = ''; |
54 | $modulrechte = ''; |
54 | $modulrechte = ''; |
55 | $autor = ''; |
55 | $autor = ''; |
56 | $version = ''; |
56 | $version = ''; |
57 | $menuevisible = ''; |
57 | $menuevisible = ''; |
58 | $license = ''; |
58 | $license = ''; |
59 | $deaktiviere_zugangspruefung = 0; |
59 | $deaktiviere_zugangspruefung = 0; |
60 | 60 | ||
61 | include('modules/'.$m2.'/var.inc.php'); |
61 | include('modules/'.wb_dir_escape($m2).'/var.inc.php'); |
62 | if (((($ib_user_type == 0) || ($ib_user_type == 1)) && ($modulrechte == 0)) || ($ib_user_type == $modulrechte)) |
62 | if (((($ib_user_type == 0) || ($ib_user_type == 1)) && ($modulrechte == 0)) || ($ib_user_type == $modulrechte)) |
63 | { |
63 | { |
64 | if (($menuevisible) && (file_exists('modules/'.$m2.'/seite_inhalt.inc.php'))) |
64 | if (($menuevisible) && (file_exists('modules/'.wb_dir_escape($m2).'/seite_inhalt.inc.php'))) |
65 | { |
65 | { |
66 | if (file_exists('modules/'.$m2.'/images/menu/32.png')) |
66 | if (file_exists('modules/'.wb_dir_escape($m2).'/images/menu/32.png')) |
67 | $g = 'modules/'.$m2.'/images/menu/32.png'; |
67 | $g = 'modules/'.wb_dir_escape($m2).'/images/menu/32.png'; |
68 | else if (file_exists('modules/'.$m2.'/images/menu/32.gif')) |
68 | else if (file_exists('modules/'.wb_dir_escape($m2).'/images/menu/32.gif')) |
69 | $g = 'modules/'.$m2.'/images/menu/32.gif'; |
69 | $g = 'modules/'.wb_dir_escape($m2).'/images/menu/32.gif'; |
70 | else |
70 | else |
71 | $g = 'design/spacer.gif'; |
71 | $g = 'design/spacer.gif'; |
72 | 72 | ||
73 | if (file_exists('modules/'.$m2.'/images/menu/16.png')) |
73 | if (file_exists('modules/'.wb_dir_escape($m2).'/images/menu/16.png')) |
74 | $k = 'modules/'.$m2.'/images/menu/16.png'; |
74 | $k = 'modules/'.wb_dir_escape($m2).'/images/menu/16.png'; |
75 | else if (file_exists('modules/'.$m2.'/images/menu/16.gif')) |
75 | else if (file_exists('modules/'.wb_dir_escape($m2).'/images/menu/16.gif')) |
76 | $k = 'modules/'.$m2.'/images/menu/16.gif'; |
76 | $k = 'modules/'.wb_dir_escape($m2).'/images/menu/16.gif'; |
77 | else |
77 | else |
78 | $k = 'design/spacer.gif'; |
78 | $k = 'design/spacer.gif'; |
79 | 79 | ||
80 | if (!isset($men[$modulpos][$modulsekpos])) $men[$modulpos][$modulsekpos] = ''; |
80 | if (!isset($men[$modulpos][$modulsekpos])) $men[$modulpos][$modulsekpos] = ''; |
81 | $men[$modulpos][$modulsekpos] .= gfx_zeichnemenuepunkt($m2, 'inhalt', my_htmlentities($modulueberschrift), $k, $g); |
81 | $men[$modulpos][$modulsekpos] .= gfx_zeichnemenuepunkt($m2, 'inhalt', my_htmlentities($modulueberschrift), $k, $g); |
82 | } |
82 | } |
83 | if (isset($prv_modul) && ($m2 == $prv_modul) && (file_exists('modules/'.$m2.'/seite_inhalt.inc.php'))) |
83 | if (isset($prv_modul) && ($m2 == $prv_modul) && (file_exists('modules/'.wb_dir_escape($m2).'/seite_inhalt.inc.php'))) |
84 | { |
84 | { |
85 | if (file_exists('modules/'.$m2.'/images/menu/32.png')) |
85 | if (file_exists('modules/'.wb_dir_escape($m2).'/images/menu/32.png')) |
86 | $g = 'modules/'.$m2.'/images/menu/32.png'; |
86 | $g = 'modules/'.wb_dir_escape($m2).'/images/menu/32.png'; |
87 | else if (file_exists('modules/'.$m2.'/images/menu/32.gif')) |
87 | else if (file_exists('modules/'.wb_dir_escape($m2).'/images/menu/32.gif')) |
88 | $g = 'modules/'.$m2.'/images/menu/32.gif'; |
88 | $g = 'modules/'.wb_dir_escape($m2).'/images/menu/32.gif'; |
89 | else |
89 | else |
90 | $g = 'design/spacer.gif'; |
90 | $g = 'design/spacer.gif'; |
91 | 91 | ||
92 | $endjs = '<script language="JavaScript" type="text/javascript"> |
92 | $endjs = '<script language="JavaScript" type="text/javascript"> |
93 | <!-- |
93 | <!-- |
94 | oop(\''.$m2.'\', \''.$prv_seite.'\', \''.my_htmlentities($modulueberschrift).'\', \''.$g.'\'); |
94 | oop(\''.$m2.'\', \''.$prv_seite.'\', \''.my_htmlentities($modulueberschrift).'\', \''.$g.'\'); |
95 | // --> |
95 | // --> |
96 | </script>'."\n\n"; |
96 | </script>'."\n\n"; |
97 | $startgefunden = true; |
97 | $startgefunden = true; |
98 | } |
98 | } |
99 | else |
99 | else |
100 | { |
100 | { |
101 | if (($modulpos == 0) && ($modulsekpos == 0) && (!$startgefunden) && (file_exists('modules/'.$m2.'/seite_inhalt.inc.php'))) |
101 | if (($modulpos == 0) && ($modulsekpos == 0) && (!$startgefunden) && (file_exists('modules/'.wb_dir_escape($m2).'/seite_inhalt.inc.php'))) |
102 | { |
102 | { |
103 | if (file_exists('modules/'.$m2.'/images/menu/32.png')) |
103 | if (file_exists('modules/'.wb_dir_escape($m2).'/images/menu/32.png')) |
104 | $g = 'modules/'.$m2.'/images/menu/32.png'; |
104 | $g = 'modules/'.wb_dir_escape($m2).'/images/menu/32.png'; |
105 | else if (file_exists('modules/'.$m2.'/images/menu/32.gif')) |
105 | else if (file_exists('modules/'.wb_dir_escape($m2).'/images/menu/32.gif')) |
106 | $g = 'modules/'.$m2.'/images/menu/32.gif'; |
106 | $g = 'modules/'.wb_dir_escape($m2).'/images/menu/32.gif'; |
107 | else |
107 | else |
108 | $g = 'design/spacer.gif'; |
108 | $g = 'design/spacer.gif'; |
109 | 109 | ||
110 | $endjs = '<script language="JavaScript" type="text/javascript"> |
110 | $endjs = '<script language="JavaScript" type="text/javascript"> |
111 | <!-- |
111 | <!-- |
112 | oop(\''.$m2.'\', \'inhalt\', \''.my_htmlentities($modulueberschrift).'\', \''.$g.'\'); |
112 | oop(\''.$m2.'\', \'inhalt\', \''.my_htmlentities($modulueberschrift).'\', \''.$g.'\'); |
113 | // --> |
113 | // --> |
114 | </script>'."\n\n"; |
114 | </script>'."\n\n"; |
115 | $startgefunden = true; |
115 | $startgefunden = true; |
116 | } |
116 | } |
117 | } |
117 | } |
118 | } |
118 | } |
119 | } |
119 | } |
120 | } |
120 | } |
121 | 121 | ||
122 | unset($m1); |
122 | unset($m1); |
123 | unset($m2); |
123 | unset($m2); |
124 | 124 | ||
125 | ksort($men); |
125 | ksort($men); |
126 | $first = true; |
126 | $first = true; |
127 | foreach ($men as $m1 => $m2) |
127 | foreach ($men as $m1 => $m2) |
128 | { |
128 | { |
129 | if ($first) |
129 | if ($first) |
130 | $first = false; |
130 | $first = false; |
131 | else |
131 | else |
132 | echo gfx_zeichnemenueplatzhalter(); |
132 | echo gfx_zeichnemenueplatzhalter(); |
133 | ksort($men[$m1]); |
133 | ksort($men[$m1]); |
134 | foreach ($men[$m1] as $x1 => $x2) |
134 | foreach ($men[$m1] as $x1 => $x2) |
135 | echo $x2; |
135 | echo $x2; |
136 | } |
136 | } |
137 | 137 | ||
138 | unset($m1); |
138 | unset($m1); |
139 | unset($m2); |
139 | unset($m2); |
140 | } |
140 | } |
141 | else |
141 | else |
142 | echo $menue; |
142 | echo $menue; |
143 | 143 | ||
144 | ?> |
144 | ?> |
145 | 145 | ||
146 | <tr> |
146 | <tr> |
147 | <td colspan="5" height="100%"><img src="design/spacer.gif" alt="" width="1" height="1"></td> |
147 | <td colspan="5" height="100%"><img src="design/spacer.gif" alt="" width="1" height="1"></td> |
148 | </tr> |
148 | </tr> |
149 | </table> |
149 | </table> |
150 | 150 | ||
151 | <?php echo $endjs; |
151 | <?php echo $endjs; |
152 | 152 | ||
153 | echo $footer; |
153 | echo $footer; |
154 | 154 | ||
155 | ?> |
155 | ?> |
156 | 156 |