Rev 14 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
12 | daniel-mar | 1 | <?php |
2 | |||
14 | daniel-mar | 3 | if (!defined('WBLEGAL')) die('Kann nicht ohne Personal WebBase ausgeführt werden.'); |
12 | daniel-mar | 4 | |
5 | echo $header; |
||
6 | |||
7 | if ($modulueberschrift == '') $modulueberschrift = $modul; |
||
8 | echo '<h1>'.my_htmlentities($modulueberschrift).'</h1>'; |
||
9 | echo 'Hier sind alle Datenbanken der Module aufgelistet.<br><br>'; |
||
10 | |||
15 | daniel-mar | 11 | wb_draw_table_begin(); |
12 | daniel-mar | 12 | $res = db_query("SELECT * FROM `".$mysql_zugangsdaten['praefix']."module` ORDER BY `id`"); |
15 | daniel-mar | 13 | wb_draw_table_content('', '<b>Tabellenname</b>', '', '<b>Modul</b>', '', '<b>Datensätze</b>', '', '<b>Aktionen</b>'); |
12 | daniel-mar | 14 | while ($row = db_fetch($res)) |
15 | { |
||
16 | if (isset($only) && ($row['modul'] == $only)) |
||
17 | { |
||
18 | $s1 = '<font color="#FF0000">'; |
||
19 | $s2 = '</font>'; |
||
20 | } |
||
21 | else |
||
22 | { |
||
23 | $s1 = ''; |
||
24 | $s2 = ''; |
||
25 | } |
||
26 | $ars = db_query("SELECT COUNT(*) AS `ct` FROM `".$mysql_zugangsdaten['praefix'].$row['table']."`"); |
||
27 | $arw = db_fetch($ars); |
||
28 | if (!is_dir('modules/'.wb_dir_escape($row['modul']))) |
||
29 | { |
||
30 | $z = ' (Nicht mehr installiert)'; |
||
31 | $x = 'Tabelle entfernen'; |
||
32 | } |
||
33 | else |
||
34 | { |
||
35 | $z = ''; |
||
36 | $x = 'Tabelle neu anlegen'; |
||
37 | } |
||
15 | daniel-mar | 38 | wb_draw_table_content('', $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>'); |
12 | daniel-mar | 39 | } |
15 | daniel-mar | 40 | wb_draw_table_end(); |
12 | daniel-mar | 41 | |
42 | echo '<b>Schnittstellen</b><ul>'; |
||
43 | $welchegefunden = false; |
||
44 | foreach ($module as $m1 => $m2) |
||
45 | { |
||
46 | $modulueberschrift = ''; |
||
47 | $modulsekpos = ''; |
||
48 | $modulpos = ''; |
||
49 | $modulrechte = ''; |
||
50 | $autor = ''; |
||
51 | $version = ''; |
||
52 | $menuevisible = ''; |
||
53 | $license = ''; |
||
54 | $deaktiviere_zugangspruefung = 0; |
||
55 | |||
56 | // Damit die Modulseiten auch auf ihre eigenen Modulvariablen zugreifen können, var.inc.php einbinden |
||
57 | if (file_exists('modules/'.wb_dir_escape($m2).'/var.inc.php')) |
||
58 | include('modules/'.wb_dir_escape($m2).'/var.inc.php'); |
||
59 | |||
60 | // Nun die Modulcrons laden |
||
61 | if (file_exists('modules/'.wb_dir_escape($m2).'/crossover/'.wb_dir_escape($modul).'/main.inc.php')) |
||
62 | { |
||
63 | include('modules/'.wb_dir_escape($m2).'/crossover/'.wb_dir_escape($modul).'/main.inc.php'); |
||
64 | $welchegefunden = true; |
||
65 | } |
||
66 | } |
||
67 | |||
68 | unset($m1); |
||
69 | unset($m2); |
||
70 | |||
71 | if (!$welchegefunden) |
||
72 | echo '<li>Keine gefunden!</li>'; |
||
73 | echo '</ul>'; |
||
74 | |||
75 | if ((isset($vonmodul)) && (isset($vonseite)) && ($vonmodul != '') && ($vonseite != '')) |
||
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 | |||
78 | echo '<br>'; |
||
79 | |||
80 | echo $footer; |
||
81 | |||
82 | ?> |