bernd
"CGI-Aktivieren" ist jetzt in der bedeutung gedreht und heißt "Abgesicherter Modus"
bernd commited 0fd1a36 at 2011-02-02 08:56:34
<?php
require_once('inc/debug.php');
require_once('inc/security.php');
require_once('vhosts.php');
require_once('certs.php');
$section = 'vhosts_vhosts';
require_role(ROLE_SYSTEMUSER);
$id = (isset($_GET['vhost']) ? (int) $_GET['vhost'] : 0);
$vhost = empty_vhost();
if ($id != 0)
$vhost = get_vhost_details($id);
$have_v6 = false;
$server = (isset($vhost['server']) ? $vhost['server'] : $_SESSION['userinfo']['server']);
if (ipv6_possible($server))
$have_v6 = true;
DEBUG($vhost);
if ($id == 0) {
title("Neue Subdomain anlegen");
}
else {
title("Subdomain bearbeiten");
}
html_header("<script type=\"text/javascript\">
function selectedDomain() {
var selected;
selected=document.getElementById('domain').options.selectedIndex;
return document.getElementById('domain').options.item(selected).text;
}
function defaultDocumentRoot() {
var hostname;
if (document.getElementById('hostname').value == '')
hostname = selectedDomain();
else
hostname = document.getElementById('hostname').value + '.' + selectedDomain();
var default_docroot = hostname + '/htdocs';
useDefaultDocroot(default_docroot);
}
function useDefaultDocroot( default_docroot ) {
var do_it = (document.getElementById('use_default_docroot').checked == true);
 
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX