Rev 7 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7 | Rev 8 | ||
---|---|---|---|
Line 10... | Line 10... | ||
10 | echo 'Folgende Module enthalten eine designte Konfigurationsmöglichkeit:<br><br>'; |
10 | echo 'Folgende Module enthalten eine designte Konfigurationsmöglichkeit:<br><br>'; |
11 | 11 | ||
12 | $i = -1; |
12 | $i = -1; |
13 | foreach ($module as $m1 => $m2) |
13 | foreach ($module as $m1 => $m2) |
14 | { |
14 | { |
15 | if (file_exists('modules/'.$m2.'/seite_konfig.inc.php')) |
15 | if (file_exists('modules/'.wb_dir_escape($m2).'/seite_konfig.inc.php')) |
16 | { |
16 | { |
17 | $titel = $m2; |
17 | $titel = $m2; |
18 | 18 | ||
19 | $modulueberschrift = ''; |
19 | $modulueberschrift = ''; |
20 | $modulsekpos = ''; |
20 | $modulsekpos = ''; |
Line 24... | Line 24... | ||
24 | $version = ''; |
24 | $version = ''; |
25 | $menuevisible = ''; |
25 | $menuevisible = ''; |
26 | $license = ''; |
26 | $license = ''; |
27 | $deaktiviere_zugangspruefung = 0; |
27 | $deaktiviere_zugangspruefung = 0; |
28 | 28 | ||
29 | if (file_exists('modules/'.$m2.'/var.inc.php')) |
29 | if (file_exists('modules/'.wb_dir_escape($m2).'/var.inc.php')) |
30 | { |
30 | { |
31 | include('modules/'.$m2.'/var.inc.php'); |
31 | include('modules/'.wb_dir_escape($m2).'/var.inc.php'); |
32 | $titel = $modulueberschrift; |
32 | $titel = $modulueberschrift; |
33 | } |
33 | } |
34 | 34 | ||
35 | $i++; |
35 | $i++; |
36 | 36 | ||
Line 39... | Line 39... | ||
39 | 39 | ||
40 | if (($i % 5 == 0) && ($i != 0)) |
40 | if (($i % 5 == 0) && ($i != 0)) |
41 | echo '</tr><tr>'; |
41 | echo '</tr><tr>'; |
42 | 42 | ||
43 | echo '<td valign="middle" align="center">'; |
43 | echo '<td valign="middle" align="center">'; |
44 | echo '<a href="'.$_SERVER['PHP_SELF'].'?seite=konfig&modul='.$m2.'&vonmodul='.$modul.'&vonseite='.$seite.'" class="menu">'; |
44 | echo '<a href="'.$_SERVER['PHP_SELF'].'?seite=konfig&modul='.urlencode($m2).'&vonmodul='.urlencode($modul).'&vonseite='.urlencode($seite).'" class="menu">'; |
45 | if (file_exists('modules/'.$m2.'/images/menu/32.png')) |
45 | if (file_exists('modules/'.wb_dir_escape($m2).'/images/menu/32.png')) |
46 | echo '<img src="modules/'.$m2.'/images/menu/32.png" border="0" width="32" height="32" alt="">'; |
46 | echo '<img src="modules/'.wb_dir_escape($m2).'/images/menu/32.png" border="0" width="32" height="32" alt="">'; |
47 | else if (file_exists('modules/'.$m2.'/images/menu/32.gif')) |
47 | else if (file_exists('modules/'.wb_dir_escape($m2).'/images/menu/32.gif')) |
48 | echo '<img src="modules/'.$m2.'/images/menu/32.gif" border="0" width="32" height="32" alt="">'; |
48 | echo '<img src="modules/'.wb_dir_escape($m2).'/images/menu/32.gif" border="0" width="32" height="32" alt="">'; |
49 | else |
49 | else |
50 | echo '<img src="design/spacer.gif" border="0" width="32" height="32" alt="">'; |
50 | echo '<img src="design/spacer.gif" border="0" width="32" height="32" alt="">'; |
51 | echo '<br>'.my_htmlentities($titel).'</a></td>'; |
51 | echo '<br>'.my_htmlentities($titel).'</a></td>'; |
52 | } |
52 | } |
53 | } |
53 | } |