mirror of
https://github.com/easy-wi/developer.git
synced 2025-02-20 11:23:28 +08:00
FIX #1069
This commit is contained in:
parent
6e5db39f52
commit
1f42c4fa90
@ -52,11 +52,12 @@ if (!$pa['user'] and !$pa['gserver'] and !$pa['root']) {
|
|||||||
die('No access');
|
die('No access');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($reseller_id != 0 and isset($admin_id) and $admin_id != $reseller_id) {
|
if (isset($reseller_id) and $reseller_id != 0 and isset($admin_id) and $admin_id != $reseller_id) {
|
||||||
$reseller_id = $admin_id;
|
$reseller_id = $admin_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($ui->id('id', 19, 'get')) {
|
if ($ui->id('id', 19, 'get')) {
|
||||||
|
|
||||||
$referrer = explode('/', str_replace(array('http://','https://'), '', strtolower($ui->escaped('HTTP_REFERER', 'server'))));
|
$referrer = explode('/', str_replace(array('http://','https://'), '', strtolower($ui->escaped('HTTP_REFERER', 'server'))));
|
||||||
$refstring = explode('?', $referrer[1]);
|
$refstring = explode('?', $referrer[1]);
|
||||||
|
|
||||||
@ -70,7 +71,7 @@ if ($ui->id('id', 19, 'get')) {
|
|||||||
|
|
||||||
$sql = null;
|
$sql = null;
|
||||||
|
|
||||||
if ($row['accounttype'] == 'u' && $row['resellerid'] == $reseller_id) {
|
if ($row['accounttype'] == 'u' and $row['resellerid'] == $reseller_id) {
|
||||||
|
|
||||||
$_SESSION['userid'] = $ui->id('id', 19, 'get');
|
$_SESSION['userid'] = $ui->id('id', 19, 'get');
|
||||||
|
|
||||||
@ -102,5 +103,7 @@ if ($ui->id('id', 19, 'get')) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$sql = null;
|
$sql = null;
|
||||||
|
|
||||||
redirect('login.php');
|
redirect('login.php');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user