mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-22 02:47:27 +08:00
Merge branch '1.7' into php8
This commit is contained in:
+10
-3
@@ -523,9 +523,16 @@ if ($action == "exchange") {
|
||||
}
|
||||
//=== trade for upload
|
||||
if($art == "traffic") {
|
||||
if ($CURUSER['uploaded'] > $dlamountlimit_bonus * 1073741824)//uploaded amount reach limit
|
||||
$ratio = $CURUSER['uploaded']/$CURUSER['downloaded'];
|
||||
else $ratio = 0;
|
||||
if ($CURUSER['uploaded'] > $dlamountlimit_bonus * 1073741824) {
|
||||
//uploaded amount reach limit
|
||||
if ($CURUSER['downloaded'] > 0) {
|
||||
$ratio = $CURUSER['uploaded']/$CURUSER['downloaded'];
|
||||
} else {
|
||||
$ratio = PHP_INT_MAX;
|
||||
}
|
||||
} else {
|
||||
$ratio = 0;
|
||||
}
|
||||
if ($ratiolimit_bonus > 0 && $ratio > $ratiolimit_bonus)
|
||||
die($lang_mybonus['text_cheat_alert']);
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user