} } } else { if (isset($webMasterID, $dns) and $ui->st('d', 'get') == 'ri' and $ui->id('id', 10, 'get') and (!isset($_SESSION['sID']) or in_array($ui->id('id', 10, 'get'), $substituteAccess['ws']))) { $id = $ui->id('id', 10, 'get'); // Nothing submitted yet, display the delete form if (!$ui->st('action', 'post')) { // Check if we could find an entry and if not display 404 page $template_file = 'userpanel_web_vhost_ri.tpl'; // User submitted remove the entry } else { if ($ui->st('action', 'post') == 'ri') { $vhostObject = new HttpdManagement($webMasterID, $reseller_id); if ($vhostObject != false and $vhostObject->ssh2Connect() and $vhostObject->sftpConnect()) { $vhostObject->vhostReinstall($id); $vhostObject->restartHttpdServer(); $template_file = $spracheResponse->table_del; $loguseraction = '%ri% %webvhost% ' . $dns; $insertlog->execute(); } else { $template_file = $spracheResponse->error_table; } // Request did not add up. Display 404 error. } else { $template_file = 'userpanel_404.tpl'; } } } else { if (isset($dns) and $ui->st('d', 'get') == 'if' and $ui->id('id', 10, 'get') and (!isset($_SESSION['sID']) or in_array($ui->id('id', 10, 'get'), $substituteAccess['ws']))) { $hlCfg = 'sv_downloadurl "http://' . $dns . '/" sv_allowdownload "1"