SUPPORT ( topics) | BUGS ( topics) | GENERAL ( topics) | HORSES ( topics) | GAME ( topics) | MOD
'); else echo(' |
');
echo(' |
TOPIC | POSTS | ORIGINAL POST |
---|---|---|
'); echo(htmlspecialchars($threads[$i]['title']).''); if($threads[$i]['locked']) echo(' [lock]'); echo(' | '); echo(''.count_replies($threads[$i]['id']).' (last by '.get_last_reply_author($threads[$i]['id']).' '); $createTime = get_last_reply_time($threads[$i]['id']); $minsAgo = 0; $current_time = time(); $difference = $current_time - $createTime; $secsAgo = $difference; $minsAgo = $difference/60; $daysAgo = $difference/86400; if($secsAgo <= 60) echo(''.number_format((float)$secsAgo, 0, '.', '').' sec ago'); else if($minsAgo <= 1440) echo(''.number_format((float)$minsAgo, 0, '.', '').' min ago'); else echo(number_format((float)$daysAgo, 0, '.', '').' days ago'); echo(') | '.date("M j g:ia", get_first_reply_time($threads[$i]['id'])).' by '.get_first_reply_author($threads[$i]['id']).' |