This commit is contained in:
Ulrich Block 2013-11-02 19:31:15 +01:00
parent 415ba6547d
commit ce5b56a5c2
2 changed files with 5 additions and 3 deletions

View File

@ -75,7 +75,7 @@
<versioncheck>Versionsüberprüfung</versioncheck>
<voiceserver>Voiceserver</voiceserver>
<vor>Vor</vor>
<welcome>Wilkommen: </welcome>
<welcome>Willkommen: </welcome>
<yes>Ja</yes>
<zurueck>Zurück</zurueck>
</sprache>

View File

@ -149,7 +149,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
$servertype = $row['servertype'];
}
if ($servertype == 'g') {
if (isset($servertype) and $servertype == 'g') {
$query = $sql->prepare("SELECT s.`switchID`,g.`rootID` FROM `serverlist` s INNER JOIN `gsswitch` g ON s.`switchID`=g.`id` WHERE s.`id`=? AND s.`resellerid`=? LIMIT 1");
$query->execute(array($id, $reseller_id));
@ -158,7 +158,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
ssh2_execute('gs', $row['rootID'], $cmds);
}
} else if ($servertype == 'v') {
} else if (isset($servertype) and $servertype == 'v') {
$query = $sql->prepare("SELECT v.`localserverid`,m.`ssh2ip`,m.`rootid`,m.`addedby`,m.`queryport`,AES_DECRYPT(m.`querypassword`,?) AS `decryptedquerypassword` FROM `voice_server` v LEFT JOIN `voice_masterserver` m ON v.`masterserver`=m.`id` WHERE v.`id`=? AND v.`resellerid`=? LIMIT 1");
$query->execute(array($aeskey, $id, $reseller_id));
@ -189,6 +189,8 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
$query = $sql->prepare("DELETE FROM `lendedserver` WHERE `id`=? AND `resellerid`=? LIMIT 1");
$query->execute(array($ui->id('id',19, 'post'), $reseller_id));
$template_file = ($query->rowCount() > 0) ? $spracheResponse->table_del : $spracheResponse->error_table;
} else {
$gscount = 0;