Catalog News Guides Community For contributors
Everything for CS 1.6 / CSS / CS:GO servers - Plugins | Builds | Models | Maps » Web add-ons » Many Administrators encounter a problem displaying the server in CSBANS 1.3

Many Administrators encounter a problem displaying the server in CSBANS 1.3

18.01.2020, 01:11adminViews: 1 572Comments: 0
Many Administrators encounter a problem displaying the server in CSBANS 1.3

About this content


1. The server does not load in the CSBANS 1.3 ban list monitoring
2. The server is not displayed in the web part of CSBANS 1.3
3. Undefined index: amx_timeleft

SOLUTION
1.
Go to:
Code:  
protected/models/Serverinfo.php
C++Copy
2. Find the line:
Code:  
$info['timeleft'] = isset($s['mp_timeleft']) ? $s['mp_timeleft'] : isset($s['amx_timeleft'])?$s['amx_timeleft']:false;
C++Copy
3. Replace with:
Code:  
 if (isset($s["mp_timeleft"]) && $s["mp_timeleft"] != "0")
 $info["timeleft"] = $s["mp_timeleft"];
else if (isset($s["amx_timeleft"]))
 $info["timeleft"] = $s["amx_timeleft"];
else
 $info["timeleft"] = "0";


Comments (0)

Add comment

Leave a comment

New content by email

Subscription with email confirmation. No more than one email per day. Unsubscribe via the link in any email.

Join the community

Register · Reset password