mirror of
https://github.com/easy-wi/developer.git
synced 2025-02-20 11:23:28 +08:00
#17: Partial
This commit is contained in:
parent
9071e2a5bd
commit
4148746a4d
@ -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')) {
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user