add PT-Gen api point setting

This commit is contained in:
xiaomlove
2021-01-19 17:35:05 +08:00
parent 84cf49ec40
commit a5eaad9036
39 changed files with 66 additions and 6977 deletions

View File

@@ -36,9 +36,9 @@ if (get_user_class() >= UC_MODERATOR || $CURUSER["guard"] == "yes")
$uc++;
while($arr = mysql_fetch_assoc($ros))
{
if ($arr['added'] == '0000-00-00 00:00:00')
if ($arr['added'] == '0000-00-00 00:00:00' || $arr['added'] == null)
$arr['added'] = '-';
if ($arr['last_access'] == '0000-00-00 00:00:00')
if ($arr['last_access'] == '0000-00-00 00:00:00' || $arr['last_access'] == null)
$arr['last_access'] = '-';
if($arr["downloaded"] != 0)
$ratio = number_format($arr["uploaded"] / $arr["downloaded"], 3);