git.schokokeks.org
Repositories
Help
Report an Issue
webinterface.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
8d92bc6
Branches
Tags
master
ticket
webinterface.git
modules
vhosts
vhosts.php
VHosts können bearbeitet werden (ohne Aliases)
bernd
commited
8d92bc6
at 2007-08-08 13:03:25
vhosts.php
Blame
History
Raw
<?php require_once('inc/debug.php'); require_once('inc/security.php'); require_once('vhosts.php'); $title = "Webserver VHosts"; $error = ''; require_role(ROLE_SYSTEMUSER); output("<h3>Webserver (VHosts)</h3> <p>Mit dieser Funtkion legen Sie fest, welche Domains und Subdomains verfügbar sein sollen und welches Verzeichnis die Dateien enthalten soll.</p>"); $vhosts = list_vhosts(); if (count($vhosts) > 0) { output("<table><tr><th>(Sub-)Domain</th><th>Zusätzliche Alias-Namen</th><th>Lokaler Pfad</th><th>PHP</th></tr>"); foreach ($vhosts as $vhost) { $fqdn = $vhost['fqdn']; output("<tr><td>".internal_link('edit.php', $fqdn, "vhost={$vhost['id']}")."</td><td>"); $aliases = get_aliases($vhost['id']); if (strstr($vhost['options'], 'aliaswww')) output('www.'.$vhost['fqdn'].'<br />'); foreach ($aliases as $alias) { if (strstr($alias['options'], 'aliaswww')) output('www.'.$alias['fqdn'].'<br />'); output($alias['fqdn'].'<br />'); } output('</td>'); if ($vhost['docroot_is_default'] == 1) output("<td><span style=\"color:#777;\">{$vhost['docroot']}</span></td>"); else output("<td><strong>{$vhost['docroot']}</strong></td>"); $php = $vhost['php']; switch ($php) { case NULL: $php = 'kein PHP'; break; case 'mod_php': $php = 'Apache-Modul'; break; case 'fastcgi': $php = 'FastCGI'; break; } output("<td>{$php}</td> <td>".internal_link('save.php', 'Subdomain löschen', 'action=delete&vhost='.$vhost['id'] )."</td> </tr>"); } output('</table> <p><a href="edit.php">Neue Subdomain anlegen</a></p> <br />'); } ?>