|
0) { $ssl = true; } else { $ssl = false; } } $x++; } //delete vhosts entry unset($a_vhosts[$_GET['id']]); //delete the SSL service if ($ssl) { unlink_if_exists("/var/etc/lighty-vhosts-".$ipaddress."-".$port."-ssl.conf"); unlink_if_exists("/usr/local/etc/rc.d/vhosts-".$ipaddress."-".$port."-ssl.sh"); $service_id = get_service_id ($a_service, 'rcfile', "vhosts-".$ipaddress."-".$port."-ssl.sh"); if (is_int($service_id)) { unset($a_service[$service_id]); } } write_config(); header("Location: vhosts_php.php"); exit; } } } include("head.inc"); ?>
vHosts: Web Server
|