Rev 4 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4 | Rev 8 | ||
---|---|---|---|
Line 23... | Line 23... | ||
23 | $s1 = ''; |
23 | $s1 = ''; |
24 | $s2 = ''; |
24 | $s2 = ''; |
25 | } |
25 | } |
26 | $ars = db_query("SELECT COUNT(*) AS `ct` FROM `".$mysql_zugangsdaten['praefix'].$row['table']."`"); |
26 | $ars = db_query("SELECT COUNT(*) AS `ct` FROM `".$mysql_zugangsdaten['praefix'].$row['table']."`"); |
27 | $arw = db_fetch($ars); |
27 | $arw = db_fetch($ars); |
28 | if (!is_dir('modules/'.$row['modul'])) |
28 | if (!is_dir('modules/'.wb_dir_escape($row['modul']))) |
29 | { |
29 | { |
30 | $z = ' (Nicht mehr installiert)'; |
30 | $z = ' (Nicht mehr installiert)'; |
31 | $x = 'Tabelle entfernen'; |
31 | $x = 'Tabelle entfernen'; |
32 | } |
32 | } |
33 | else |
33 | else |
34 | { |
34 | { |
35 | $z = ''; |
35 | $z = ''; |
36 | $x = 'Tabelle neu anlegen'; |
36 | $x = 'Tabelle neu anlegen'; |
37 | } |
37 | } |
38 | gfx_tablecontent('', $s1.$mysql_zugangsdaten['praefix'].$row['table'].$s2, '', $s1.$row['modul'].$z.$s2, '', $s1.$arw['ct'].$s2, '', '<a href="javascript:abfrage(\''.$_SERVER['PHP_SELF'].'?seite=kraftsetzung&modul='.$modul.'&aktion=delete&id='.$row['id'].'\');" class="menu">'.$x.'</a>'); |
38 | gfx_tablecontent('', $s1.$mysql_zugangsdaten['praefix'].$row['table'].$s2, '', $s1.$row['modul'].$z.$s2, '', $s1.$arw['ct'].$s2, '', '<a href="javascript:abfrage(\''.$_SERVER['PHP_SELF'].'?seite=kraftsetzung&modul='.urlencode($modul).'&aktion=delete&id='.urlencode($row['id']).'\');" class="menu">'.$x.'</a>'); |
39 | } |
39 | } |
40 | gfx_endtable(); |
40 | gfx_endtable(); |
41 | 41 | ||
42 | echo '<b>Schnittstellen</b><ul>'; |
42 | echo '<b>Schnittstellen</b><ul>'; |
43 | $welchegefunden = false; |
43 | $welchegefunden = false; |
Line 52... | Line 52... | ||
52 | $menuevisible = ''; |
52 | $menuevisible = ''; |
53 | $license = ''; |
53 | $license = ''; |
54 | $deaktiviere_zugangspruefung = 0; |
54 | $deaktiviere_zugangspruefung = 0; |
55 | 55 | ||
56 | // Damit die Modulseiten auch auf ihre eigenen Modulvariablen zugreifen können, var.inc.php einbinden |
56 | // Damit die Modulseiten auch auf ihre eigenen Modulvariablen zugreifen können, var.inc.php einbinden |
57 | if (file_exists('modules/'.$m2.'/var.inc.php')) |
57 | if (file_exists('modules/'.wb_dir_escape($m2).'/var.inc.php')) |
58 | include('modules/'.$m2.'/var.inc.php'); |
58 | include('modules/'.wb_dir_escape($m2).'/var.inc.php'); |
59 | 59 | ||
60 | // Nun die Modulcrons laden |
60 | // Nun die Modulcrons laden |
61 | if (file_exists('modules/'.$m2.'/crossover/'.$modul.'/main.inc.php')) |
61 | if (file_exists('modules/'.wb_dir_escape($m2).'/crossover/'.wb_dir_escape($modul).'/main.inc.php')) |
62 | { |
62 | { |
63 | include('modules/'.$m2.'/crossover/'.$modul.'/main.inc.php'); |
63 | include('modules/'.wb_dir_escape($m2).'/crossover/'.wb_dir_escape($modul).'/main.inc.php'); |
64 | $welchegefunden = true; |
64 | $welchegefunden = true; |
65 | } |
65 | } |
66 | } |
66 | } |
67 | 67 | ||
68 | unset($m1); |
68 | unset($m1); |
Line 71... | Line 71... | ||
71 | if (!$welchegefunden) |
71 | if (!$welchegefunden) |
72 | echo '<li>Keine gefunden!</li>'; |
72 | echo '<li>Keine gefunden!</li>'; |
73 | echo '</ul>'; |
73 | echo '</ul>'; |
74 | 74 | ||
75 | if ((isset($vonmodul)) && (isset($vonseite)) && ($vonmodul != '') && ($vonseite != '')) |
75 | if ((isset($vonmodul)) && (isset($vonseite)) && ($vonmodul != '') && ($vonseite != '')) |
76 | echo '<input type="button" onclick="document.location.href=\''.$_SERVER['PHP_SELF'].'?modul='.$vonmodul.'&seite='.$vonseite.'\';" class="button" onmouseover="this.className=\'button_act\';" onmouseout="this.className=\'button\';" value="Zurück">'; |
76 | echo '<input type="button" onclick="document.location.href=\''.$_SERVER['PHP_SELF'].'?modul='.urlencode($vonmodul).'&seite='.urlencode($vonseite).'\';" class="button" onmouseover="this.className=\'button_act\';" onmouseout="this.className=\'button\';" value="Zurück">'; |
77 | 77 | ||
78 | echo '<br>'; |
78 | echo '<br>'; |
79 | 79 | ||
80 | echo $footer; |
80 | echo $footer; |
81 | 81 |