This commit is contained in:
Ulrich Block 2014-02-01 15:08:20 +01:00
parent 9071e2a5bd
commit 4148746a4d
2 changed files with 12 additions and 1 deletions

View File

@ -59,9 +59,13 @@ if ($reseller_id != 0 and $admin_id != $reseller_id) {
$reseller_id = $admin_id;
}
if ($ui->st('d', 'get') == 'ad' and is_numeric($licenceDetails['lVo']) and $licenceDetails['lVo']>0 and $licenceDetails['left']>0 and !is_numeric($licenceDetails['left'])) {
$template_file = $gsprache->licence;
} else if ($ui->w('action', 4, 'post') and !token(true)) {
$template_file = $spracheResponse->token;
} else if ($ui->st('d', 'get') == 'ad' and (!is_numeric($licenceDetails['lVo']) or $licenceDetails['lVo']>0) and ($licenceDetails['left']>0 or !is_numeric($licenceDetails['left']))) {
if (!$ui->w('action',3, 'post')) {

View File

@ -327,19 +327,26 @@ if ($ui->w('action',4, 'post') and !token(true)) {
if ($ssh2Check !== true) {
if ($ssh2Check == 'ipport') {
$errors['ip'] = $sprache->ssh_ip;
$errors['port'] = $sprache->ssh_port;
} else {
$errors['user'] = $sprache->ssh_user;
$errors['publickey'] = $sprache->keyuse;
if (!$ui->active('publickey', 'post') == 'N') {
$errors['pass'] = $sprache->ssh_pass;
} else if (!$ui->active('publickey', 'post') == 'B') {
$errors['pass'] = $sprache->ssh_pass;
$errors['publickey'] = $sprache->keyuse;
$errors['keyname'] = $sprache->keyname;
} else {
$errors['publickey'] = $sprache->keyuse;
$errors['keyname'] = $sprache->keyname;
}
}