Browse code

VHost-Löschen als icon

git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@822 87cf0b9e-d624-0410-a070-f6ee81989793

bernd authored on30/11/2007 19:49:26
Showing2 changed files
... ...
@@ -10,3 +10,5 @@ RewriteRule ^go/(.*)$  dispatch.php?go=$1&%{QUERY_STRING}
10 10
 #Order deny,allow
11 11
 #Allow from 2001:8d8:81:1310:1:1:2:42
12 12
 #Deny from all
13
+
14
+php_value display_errors On
... ...
@@ -9,6 +9,7 @@ $error = '';
9 9
 
10 10
 require_role(ROLE_SYSTEMUSER);
11 11
 
12
+global $prefix;
12 13
 
13 14
 output("<h3>Subdomains</h3>
14 15
 <p>Mit dieser Funktion legen Sie fest, welche Domains und Subdomains als Webserver-Ressource verfügbar sein sollen und welches Verzeichnis die Dateien enthalten soll.</p>
... ...
@@ -20,12 +21,12 @@ $vhosts = list_vhosts();
20 21
 
21 22
 if (count($vhosts) > 0)
22 23
 {
23
-  output("<table><tr><th>(Sub-)Domain</th><th>Zusätzliche Alias-Namen</th><th>Lokaler Pfad<sup>*</sup></th><th>PHP</th></tr>");
24
+  output("<table><tr><th>(Sub-)Domain</th><th></th><th>Zusätzliche Alias-Namen</th><th>Lokaler Pfad<sup>*</sup></th><th>PHP</th></tr>");
24 25
 
25 26
   foreach ($vhosts as $vhost)
26 27
   {
27 28
     $fqdn = $vhost['fqdn'];
28
-    output("<tr><td>".internal_link('edit.php', $fqdn, "vhost={$vhost['id']}")."</td><td>");
29
+    output("<tr><td>".internal_link('edit.php', $fqdn, "vhost={$vhost['id']}")."</td><td>".internal_link('save.php', "<img src=\"{$prefix}images/delete.png\" title=\"»{$vhost['fqdn']}« löschen\" alt=\"löschen\" />", 'action=delete&vhost='.$vhost['id'] )."</td><td>");
29 30
     $aliases = get_all_aliases($vhost['id']);
30 31
     foreach ($aliases as $alias)
31 32
     {
... ...
@@ -51,7 +52,6 @@ if (count($vhosts) > 0)
51 52
         break;
52 53
     }
53 54
     output("<td>{$php}</td>
54
-    <td>".internal_link('save.php', 'Subdomain löschen', 'action=delete&vhost='.$vhost['id'] )."</td>
55 55
     </tr>");
56 56
   }
57 57
   output('</table>');