$template_file = 'userpanel_404.tpl'; } } } 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 . '/"
$vhostObject->vhostDelete($row2['affectedID']); } $query3->execute(array($row2['affectedID'])); } else { if ($row2['action'] == 'ad') { $vhostObject->vhostCreate($row2['affectedID']); } else { if ($row2['action'] == 'md') { $query4->execute(array($row2['affectedID'])); $active = $query4->fetchColumn(); if ($active == 'N' or property_exists($extraData, 'newActive') and $extraData->newActive == 'N') { $vhostObject->setInactive($row2['affectedID']); } else { $vhostObject->vhostMod($row2['affectedID']); } } else { if ($row2['action'] == 'ri') { $vhostObject->vhostReinstall($row2['affectedID']); } } } } $query5->execute(array($row2['jobID'])); $query6->execute(array($row2['affectedID'])); } $vhostObject->restartHttpdServer(); } else { $theOutput->printGraph('cannot connect to web host with ID: ' . $row['hostID']); $query7->execute(array($row['hostID'])); } }