- implemented 'Create vHost-Container' and 'Own vHost-Settings' for lighttpd

- implemented Froxlor-directory protection (apache and lighttpd), fixes #72
- enable `vhostcontainer` and `vhostcontainer_servername_statement` by default
This commit is contained in:
Michael Kaufmann (d00p)
2010-03-19 17:29:31 +00:00
parent 1db572e010
commit 660bede9c5
4 changed files with 56 additions and 11 deletions

View File

@@ -602,8 +602,11 @@ if(isset($_POST['installstep'])
// and lets insert the default ip and port
$query = 'INSERT INTO `%s` SET `ip` = \'%s\', `port` = \'80\' ';
$query = sprintf($query, TABLE_PANEL_IPSANDPORTS, $db->escape($serverip));
$query = "INSERT INTO `".TABLE_PANEL_IPSANDPORTS."`
SET `ip`= '".$db->escape($serverip)."',
`port` = '80',
`vhostcontainer` = '1',
`vhostcontainer_servername_statement` = '1'";
$db->query($query);
$defaultip = $db->insert_id();