Zeige Erstellungsdatum von Datenbanken an
bernd

bernd commited on 2009-07-16 09:16:53
Zeige 2 geänderte Dateien mit 4 Einfügungen und 4 Löschungen.


git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1413 87cf0b9e-d624-0410-a070-f6ee81989793
... ...
@@ -134,7 +134,7 @@ if ($output_something)
134 134
 
135 135
   foreach ($users as $user)
136 136
   {
137
-    $desc = ($user['description'] ? $user['description'] : '');
137
+    $desc = ($user['description'] ? $user['description'].' (Erstellt: '.$user['created'].')' : 'Erstellt: '.$user['created']);
138 138
     $form .= "<th><span title=\"{$desc}\">{$user['username']}</span><br />".internal_link("", "<img src=\"{$prefix}images/delete.png\" title=\"Benutzer »{$user['username']}« löschen\" alt=\"löschen\" />", "action=delete_user&user={$user['username']}")."</th>";
139 139
   }
140 140
   $form .= '<th><input type="text" name="new_user" size="10" value="" /></th></tr>
... ...
@@ -144,7 +144,7 @@ if ($output_something)
144 144
 
145 145
   foreach($dbs as $db)
146 146
   {
147
-    $desc = ($db['description'] ? $db['description'] : '');
147
+    $desc = ($db['description'] ? $db['description'].' (Erstellt: '.$db['created'].')' : 'Erstellt: '.$db['created']);
148 148
     $form .= "<tr><td style=\"border: 0px; font-weight: bold; text-align: right;\"><span title=\"{$desc}\">{$db['name']}</span>&#160;".internal_link("", "<img src=\"{$prefix}images/delete.png\" title=\"Datenbank »{$db['name']}« löschen\" alt=\"löschen\" />", "action=delete_db&db={$db['name']}")."</td>";
149 149
     foreach ($users as $user)
150 150
       $form .= '<td style="text-align: center;"><input type="checkbox" id="'.$db['name'].'_'.$user['username'].'" name="access['.$db['name'].'][]" value="'.$user['username'].'" '.(get_mysql_access($db['name'], $user['username']) ? 'checked="checked" ' : '')." /></td>";
... ...
@@ -3,7 +3,7 @@
3 3
 function get_mysql_accounts($UID)
4 4
 {
5 5
   $UID = (int) $UID;
6
-  $result = db_query("SELECT username, description FROM misc.mysql_accounts WHERE useraccount=$UID");
6
+  $result = db_query("SELECT username, description, created FROM misc.mysql_accounts WHERE useraccount=$UID");
7 7
   if (mysql_num_rows($result) == 0)
8 8
     return array();
9 9
   $list = array();
... ...
@@ -17,7 +17,7 @@ function get_mysql_accounts($UID)
17 17
 function get_mysql_databases($UID)
18 18
 {
19 19
   $UID = (int) $UID;
20
-  $result = db_query("SELECT name, description FROM misc.mysql_database WHERE useraccount=$UID");
20
+  $result = db_query("SELECT name, description, created FROM misc.mysql_database WHERE useraccount=$UID");
21 21
   if (mysql_num_rows($result) == 0)
22 22
     return array();
23 23
   $list = array();
24 24