bernd
eliminate .php extensions for URLs
bernd commited 63a0529 at 2008-08-08 19:32:32
<?php
require_once('inc/debug.php');
require_once('inc/security.php');
require_once('vhosts.php');
$title = "Subdomains";
$error = '';
require_role(ROLE_SYSTEMUSER);
global $prefix;
output("<h3>Subdomains</h3>
<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>
<p>Änderungen an Ihren Einstellungen werden im 5-Minuten-Takt auf dem Server übernommen.</p>
");
$vhosts = list_vhosts();
if (count($vhosts) > 0)
{
output("<table><tr><th>(Sub-)Domain</th><th></th><th>Zusätzliche Alias-Namen</th><th>Logfiles</th><th>PHP</th><th>Lokaler Pfad<sup>*</sup></th></tr>");
foreach ($vhosts as $vhost)
{
$fqdn = $vhost['fqdn'];
output("<tr><td>".internal_link('edit', $fqdn, "vhost={$vhost['id']}")."</td><td>".internal_link('save', "<img src=\"{$prefix}images/delete.png\" title=\"»{$vhost['fqdn']}« löschen\" alt=\"löschen\" />", 'action=delete&vhost='.$vhost['id'] )."</td><td>");
$aliases = get_all_aliases($vhost['id']);
foreach ($aliases as $alias)
{
output($alias['fqdn'].'<br />');
}
output(internal_link('aliases', 'Aliase verwalten', 'vhost='.$vhost['id']));
output('</td>');
$logfiles = 'keine';
if ($vhost['logtype'] == 'default')
$logfiles = 'normal';
elseif ($vhost['logtype'] == 'anonymous')
$logfiles = 'anonym';
if ($vhost['errorlog'] == 1)
{
if ($logfiles == 'keine')
$logfiles = 'nur Fehler';
else
$logfiles .= ', Fehler';
}
output("<td>{$logfiles}</td>");
if ($vhost['is_webapp'] == 1) {
output('<td colspan="2"><em>globale Webanwendung</em></td>');
 
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX