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 | $my_str = ''; |
||
8 | $res = db_query("SELECT `id` FROM `".$mysql_zugangsdaten['praefix']."users`"); |
||
9 | while ($row = db_fetch($res)) |
||
10 | $my_str .= "'".$row['id']."', "; |
||
11 | $my_str = substr($my_str, 0, strlen($my_str)-2); |
||
12 | |||
13 | $count_ds = 0; |
||
14 | $count_o = 0; |
||
15 | |||
16 | foreach ($tabellen as $m1 => $m2) |
||
17 | { |
||
18 | if (($my_str != '') && (isset($datenbanktabellen[$mysql_zugangsdaten['praefix'].$m2]['user']))) |
||
19 | { |
||
20 | $res = db_query("SELECT COUNT(`id`) AS `cid` FROM `".$mysql_zugangsdaten['praefix']."$m2` WHERE `user` IN ($my_str)"); |
||
21 | $row = db_fetch($res); |
||
22 | if ($m2 == 'ordner') |
||
23 | $count_o += $row['cid']; |
||
24 | else |
||
25 | $count_ds += $row['cid']; |
||
26 | } |
||
27 | } |
||
28 | |||
29 | unset($m1); |
||
30 | unset($m2); |
||
31 | |||
32 | if ($modulueberschrift == '') $modulueberschrift = $modul; |
||
33 | echo '<h1>'.my_htmlentities($modulueberschrift).'</h1>'; |
||
34 | |||
35 | echo '<span style="font-size:1.2em"><b>Serverdaten</b></span><br><br>'; |
||
15 | daniel-mar | 36 | wb_draw_table_begin(); |
37 | wb_draw_table_content('40%', '<b>Anmeldeserver</b>', '60%', $mysql_zugangsdaten['server']); |
||
12 | daniel-mar | 38 | |
39 | if ($konfiguration['main_ueber']['admin_mail'] != '') |
||
40 | $addr = '<a href="mailto:'.$konfiguration['main_ueber']['admin_mail'].'" class="menu">'.$konfiguration['main_ueber']['admin_mail'].'</a>'; |
||
41 | else |
||
42 | $addr = 'Keine angegeben'; |
||
43 | |||
15 | daniel-mar | 44 | wb_draw_table_content('40%', '<b>Administrator E-Mail-Adresse</b>', '60%', $addr.' (<a href="'.$_SERVER['PHP_SELF'].'?seite=konfig&modul=main_ueber&vonmodul='.urlencode($modul).'&vonseite='.urlencode($seite).'" class="menu">Ändern</a>)'); |
12 | daniel-mar | 45 | |
46 | $rs = db_query("SELECT NOW()"); |
||
47 | $rw = db_fetch($rs); |
||
48 | |||
49 | if (date('Y-m-d H:i:s') != $rw[0]) |
||
50 | { |
||
51 | // Kann vorkommen, wenn MySQL-Server sich auf einem anderen System befindet |
||
15 | daniel-mar | 52 | wb_draw_table_content('40%', '<b>PHP-Zeit</b>', '60%', de_convertmysqldatetime(date('Y-m-d, H:i:s'), true)); |
53 | wb_draw_table_content('40%', '<b>MySQL-Zeit</b>', '60%', de_convertmysqldatetime($rw[0], true)); |
||
12 | daniel-mar | 54 | } |
55 | else |
||
15 | daniel-mar | 56 | wb_draw_table_content('40%', '<b>Serverzeit</b>', '60%', de_convertmysqldatetime(date('Y-m-d, H:i:s'), true)); |
12 | daniel-mar | 57 | |
15 | daniel-mar | 58 | wb_draw_table_end(); |
12 | daniel-mar | 59 | |
60 | echo '<span style="font-size:1.2em"><b>Datenbankstatistik</b></span><br><br>'; |
||
15 | daniel-mar | 61 | wb_draw_table_begin(); |
12 | daniel-mar | 62 | |
15 | daniel-mar | 63 | wb_draw_table_content('40%', '<b>Letzter Login</b>', '60%', de_convertmysqldatetime($_SESSION['last_login'])); |
12 | daniel-mar | 64 | |
65 | if ($_SESSION['last_login_ip'] == '') |
||
66 | $ueip = 'Unbekannt'; |
||
67 | else |
||
68 | $ueip = '<a href="http://www.ripe.net/fcgi-bin/whois?form_type=simple&full_query_string=&searchtext='.urlencode($_SESSION['last_login_ip']).'&submit.x=0&submit.y=0" target="_blank" class="menu">'.$_SESSION['last_login_ip'].'</a> (DNS: '.@gethostbyaddr($_SESSION['last_login_ip']).')'; |
||
69 | |||
15 | daniel-mar | 70 | wb_draw_table_content('40%', '<b>Über IP</b>', '60%', $ueip); |
71 | wb_draw_table_content('40%', '<b>Benutzer-Datensätze der Datenbank</b>', '60%', $count_ds); |
||
72 | wb_draw_table_content('40%', '<b>Benutzer-Ordner der Datenbank</b>', '60%', $count_o); |
||
73 | wb_draw_table_content('40%', '<b>Installierte Module</b>', '60%', count($module).' (<a href="'.oop_link_to_modul('admin_module').'" class="menu">Verwalten</a>)'); |
||
74 | wb_draw_table_content('40%', '<b>Angelegte Tabellen</b>', '60%', count($tabellen).' (<a href="'.oop_link_to_modul('admin_datenbank').'" class="menu">Verwalten</a>)'); |
||
75 | wb_draw_table_end(); |
||
12 | daniel-mar | 76 | |
77 | echo '<span style="font-size:1.2em"><b>Installierte Module</b></span><br><br>'; |
||
78 | |||
79 | $i = -1; |
||
80 | foreach ($module as $m1 => $m2) |
||
81 | { |
||
82 | if (file_exists('modules/'.wb_dir_escape($m2).'/pages/inhalt.inc.php')) |
||
83 | { |
||
84 | $titel = $m2; |
||
85 | |||
86 | $modulueberschrift = ''; |
||
87 | $modulsekpos = ''; |
||
88 | $modulpos = ''; |
||
89 | $modulrechte = ''; |
||
90 | $autor = ''; |
||
91 | $version = ''; |
||
92 | $menuevisible = ''; |
||
93 | $license = ''; |
||
94 | $deaktiviere_zugangspruefung = 0; |
||
95 | |||
96 | if (file_exists('modules/'.wb_dir_escape($m2).'/var.inc.php')) |
||
97 | { |
||
98 | include('modules/'.wb_dir_escape($m2).'/var.inc.php'); |
||
99 | $titel = $modulueberschrift; |
||
100 | } |
||
101 | |||
102 | if (($modulrechte == 2) && ($menuevisible) && ($modul != $m2)) |
||
103 | { |
||
104 | $i++; |
||
105 | |||
106 | if ($i == 0) |
||
107 | echo '<center><table cellspacing="6" cellpadding="6" border="0" width="90%"><tr>'; |
||
108 | |||
109 | if (($i % 7 == 0) && ($i != 0)) |
||
110 | echo '</tr><tr>'; |
||
111 | |||
112 | echo '<td valign="middle" align="center" width="14%">'; |
||
113 | |||
114 | if (file_exists('modules/'.wb_dir_escape($m2).'/images/menu/32.png')) |
||
115 | $g = 'modules/'.wb_dir_escape($m2).'/images/menu/32.png'; |
||
116 | else if (file_exists('modules/'.wb_dir_escape($m2).'/images/menu/32.gif')) |
||
117 | $g = 'modules/'.wb_dir_escape($m2).'/images/menu/32.gif'; |
||
118 | else |
||
119 | $g = 'design/spacer.gif'; |
||
120 | |||
121 | echo '<a href="'.oop_link_to_modul($m2).'" class="menu">'; |
||
122 | echo '<img src="'.$g.'" border="0" width="32" height="32" alt="">'; |
||
123 | echo '<br>'.my_htmlentities($modulueberschrift).'</a></td>'; |
||
124 | } |
||
125 | } |
||
126 | } |
||
127 | |||
128 | unset($m1); |
||
129 | unset($m2); |
||
130 | |||
131 | if ($i > -1) |
||
132 | { |
||
133 | $i++; |
||
134 | for (;$i%7<>0;$i++) |
||
135 | { |
||
136 | echo '<td valign="middle" align="center"><img src="design/spacer.gif" width="32" height="32" alt=""></td>'; |
||
137 | } |
||
138 | echo '</tr></table><br></center>'; |
||
139 | } |
||
140 | else |
||
141 | echo 'Keine entsprechenden Module gefunden!<br><br>'; |
||
142 | |||
143 | echo $footer; |
||
144 | |||
145 | ?> |