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 | $count_ds = 0; |
||
8 | $count_o = 0; |
||
9 | |||
10 | foreach ($tabellen as $m1 => $m2) |
||
11 | { |
||
12 | if (isset($datenbanktabellen[$mysql_zugangsdaten['praefix'].$m2]['user'])) |
||
13 | { |
||
14 | $res = db_query("SELECT COUNT(`id`) AS `cid` FROM `".$mysql_zugangsdaten['praefix']."$m2` WHERE `user` = '".$benutzer['id']."'"); |
||
15 | $row = db_fetch($res); |
||
16 | if ($m2 == 'ordner') |
||
17 | $count_o += $row['cid']; |
||
18 | else |
||
19 | $count_ds += $row['cid']; |
||
20 | } |
||
21 | } |
||
22 | |||
23 | unset($m1); |
||
24 | unset($m2); |
||
25 | |||
26 | if ($modulueberschrift == '') $modulueberschrift = $modul; |
||
27 | echo '<h1>'.my_htmlentities($modulueberschrift).'</h1>'; |
||
28 | |||
29 | echo '<span style="font-size:1.2em"><b>Kundendaten</b></span><br><br>'; |
||
15 | daniel-mar | 30 | wb_draw_table_begin(); |
31 | wb_draw_table_content('40%', '<b>Kontoname</b>', '60%', $ib_user_username); |
||
32 | wb_draw_table_content('40%', '<b>Anmeldeserver</b>', '60%', $mysql_zugangsdaten['server']); |
||
33 | wb_draw_table_content('40%', '<b>Eigentümer</b>', '60%', $benutzer['personenname']); |
||
12 | daniel-mar | 34 | |
35 | if ($benutzer['email'] != '') |
||
36 | $addr = '<a href="mailto:'.$benutzer['email'].'" class="menu">'.$benutzer['email'].'</a>'; |
||
37 | else |
||
38 | $addr = 'Keine angegeben'; |
||
39 | |||
15 | daniel-mar | 40 | wb_draw_table_content('40%', '<b>E-Mail-Adresse</b>', '60%', $addr); |
41 | wb_draw_table_end(); |
||
12 | daniel-mar | 42 | echo '<span style="font-size:1.2em"><b>Datenbankereignisse</b></span><br><br>'; |
15 | daniel-mar | 43 | wb_draw_table_begin(); |
12 | daniel-mar | 44 | |
45 | foreach ($module as $m1 => $m2) |
||
46 | { |
||
47 | $modulueberschrift = ''; |
||
48 | $modulsekpos = ''; |
||
49 | $modulpos = ''; |
||
50 | $modulrechte = ''; |
||
51 | $autor = ''; |
||
52 | $version = ''; |
||
53 | $menuevisible = ''; |
||
54 | $license = ''; |
||
55 | $deaktiviere_zugangspruefung = 0; |
||
56 | |||
57 | if (file_exists('modules/'.wb_dir_escape($m2).'/var.inc.php')) |
||
58 | include 'modules/'.wb_dir_escape($m2).'/var.inc.php'; |
||
59 | |||
60 | if (file_exists('modules/'.wb_dir_escape($m2).'/crossover/'.wb_dir_escape($modul).'/main.inc.php')) |
||
61 | include 'modules/'.wb_dir_escape($m2).'/crossover/'.wb_dir_escape($modul).'/main.inc.php'; |
||
62 | } |
||
63 | |||
64 | unset($m1); |
||
65 | unset($m2); |
||
66 | |||
15 | daniel-mar | 67 | wb_draw_table_end(); |
12 | daniel-mar | 68 | echo '<span style="font-size:1.2em"><b>Datenbankstatistik</b></span><br><br>'; |
15 | daniel-mar | 69 | wb_draw_table_begin(); |
70 | wb_draw_table_content('40%', '<b>Erstellung der Datenbank</b>', '60%', de_convertmysqldatetime($benutzer['created_database'])); |
||
12 | daniel-mar | 71 | |
15 | daniel-mar | 72 | wb_draw_table_content('40%', '<b>Letzter Login</b>', '60%', de_convertmysqldatetime($_SESSION['last_login'])); |
12 | daniel-mar | 73 | |
74 | if ($_SESSION['last_login_ip'] == '') |
||
75 | $ueip = 'Unbekannt'; |
||
76 | else |
||
77 | $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']).')'; |
||
78 | |||
15 | daniel-mar | 79 | wb_draw_table_content('40%', '<b>Über IP</b>', '60%', $ueip); |
80 | wb_draw_table_content('40%', '<b>Datensätze der Datenbank</b>', '60%', $count_ds); |
||
81 | wb_draw_table_content('40%', '<b>Ordner der Datenbank</b>', '60%', $count_o); |
||
82 | wb_draw_table_end(); |
||
12 | daniel-mar | 83 | |
84 | echo '<span style="font-size:1.2em"><b>Installierte Module</b></span><br><br>'; |
||
85 | |||
86 | $i = -1; |
||
87 | foreach ($module as $m1 => $m2) |
||
88 | { |
||
89 | if (file_exists('modules/'.wb_dir_escape($m2).'/pages/inhalt.inc.php')) |
||
90 | { |
||
91 | $titel = $m2; |
||
92 | |||
93 | $modulueberschrift = ''; |
||
94 | $modulsekpos = ''; |
||
95 | $modulpos = ''; |
||
96 | $modulrechte = ''; |
||
97 | $autor = ''; |
||
98 | $version = ''; |
||
99 | $menuevisible = ''; |
||
100 | $license = ''; |
||
101 | $deaktiviere_zugangspruefung = 0; |
||
102 | |||
103 | if (file_exists('modules/'.wb_dir_escape($m2).'/var.inc.php')) |
||
104 | { |
||
105 | include('modules/'.wb_dir_escape($m2).'/var.inc.php'); |
||
106 | $titel = $modulueberschrift; |
||
107 | } |
||
108 | |||
109 | if (($modulrechte == 0) && ($menuevisible) && ($modul != $m2)) |
||
110 | { |
||
111 | $i++; |
||
112 | |||
113 | if ($i == 0) |
||
114 | echo '<center><table cellspacing="6" cellpadding="6" border="0" width="90%"><tr>'; |
||
115 | |||
116 | if (($i % 7 == 0) && ($i != 0)) |
||
117 | echo '</tr><tr>'; |
||
118 | |||
119 | echo '<td valign="middle" align="center" width="14%">'; |
||
120 | |||
121 | if (file_exists('modules/'.wb_dir_escape($m2).'/images/menu/32.png')) |
||
122 | $g = 'modules/'.wb_dir_escape($m2).'/images/menu/32.png'; |
||
123 | else if (file_exists('modules/'.wb_dir_escape($m2).'/images/menu/32.gif')) |
||
124 | $g = 'modules/'.wb_dir_escape($m2).'/images/menu/32.gif'; |
||
125 | else |
||
126 | $g = 'design/spacer.gif'; |
||
127 | |||
128 | echo '<a href="'.oop_link_to_modul($m2).'" class="menu">'; |
||
129 | echo '<img src="'.$g.'" border="0" width="32" height="32" alt="">'; |
||
130 | echo '<br>'.my_htmlentities($modulueberschrift).'</a></td>'; |
||
131 | } |
||
132 | } |
||
133 | } |
||
134 | |||
135 | unset($m1); |
||
136 | unset($m2); |
||
137 | |||
138 | if ($i > -1) |
||
139 | { |
||
140 | $i++; |
||
141 | for (;$i%7<>0;$i++) |
||
142 | { |
||
143 | echo '<td valign="middle" align="center"><img src="design/spacer.gif" width="32" height="32" alt=""></td>'; |
||
144 | } |
||
145 | echo '</tr></table><br></center>'; |
||
146 | } |
||
147 | else |
||
148 | echo 'Keine entsprechenden Module gefunden!<br><br>'; |
||
149 | |||
150 | echo $footer; |
||
151 | |||
152 | ?> |