Ejemplo n.º 1
0
     $initialpassword = $row3['initialpassword'];
     $password = $row3['password'];
     $forcebanner = $row3['forcebanner'];
     $forcebutton = $row3['forcebutton'];
     $forceservertag = $row3['forceservertag'];
     $forcewelcome = $row3['forcewelcome'];
     $maxtraffic = $row3['maxtraffic'];
     $filetraffic = $row3['filetraffic'];
     $max_download_total_bandwidth = $row3['max_download_total_bandwidth'];
     $max_upload_total_bandwidth = $row3['max_upload_total_bandwidth'];
     $dns = $row3['dns'];
     $masterserver = $row3['masterserver'];
 }
 if ($row2['action'] == 'dl' and isid($localserverid, 30)) {
     $command = $gsprache->del . ' voiceserverID: ' . $row2['affectedID'] . ' name:' . $row2['name'];
     $connection->DelServer($localserverid);
     $query3 = $sql->prepare("DELETE FROM `voice_server` WHERE `id`=? AND `resellerid`=? LIMIT 1");
     $query3->execute(array($row2['affectedID'], $row['resellerID']));
     customColumns('T', $row2['affectedID'], 'del');
     $query3 = $sql->prepare("UPDATE `jobs` SET `status`='3' WHERE `jobID`=? AND `type`='vo' LIMIT 1");
     $query3->execute(array($row2['jobID']));
     if ($usedns == 'Y') {
         tsdns('dl', $queryip, $ssh2port, $ssh2user, $publickey, $keyname, $ssh2password, $mnotified, $serverdir, $bitversion, array($ip), array($port), array($dns), $row['resellerID']);
     }
     tsbackup('delete', $ssh2user, $serverdir, $masterserver, $localserverid, '*');
     $query3 = $sql->prepare("DELETE v.* FROM `voice_server_backup` v LEFT JOIN `userdata` u ON v.`uid`=u.`id` WHERE u.`id` IS NULL");
     $query3->execute();
 } else {
     if ($row2['action'] == 'ad' and isset($active)) {
         if (isid($localserverid, 30)) {
             $command = $gsprache->add . ' voiceserverID: ' . $row2['affectedID'] . '; Skipping, virtual ID already exists in Easy-WI DB: ' . $localserverid;