ill remove the mod from my site theres no theme css for it and its not cleaning up as well
Users Online Today
Users Online Today
Parse error: syntax error, unexpected '=', expecting T_STRING in /home/pimp4003/public_html/index.php on line 197
this is line 197
class='searchlite'>class='searchlite'>class='searchlite'>class='searchlite'>class='prettyprint'>// Utilisateurs en ligne aujourd_hui
<?php
if ( get_user_class() >= 7 ) {
begin_block(T_("ONLINE_USERS"));
$expires = 1200; // Cache time in seconds
if (($rows = $TTCache->Get("usersonline_block", $expires)) === false) {
$res = SQL_Query_exec("SELECT id, username FROM users WHERE enabled = 'yes' AND status = 'confirmed' AND privacy !='strong' AND UNIX_TIMESTAMP('".get_date_time()."') - UNIX_TIMESTAMP(users.last_access) <= 1200");
$rows = array();
while ($row = mysqli_fetch_assoc($res)) {
$rows[] = $row;
}
$TTCache->Set("usersonline_block", $rows, $expires);
}
if (!$rows) {
echo T_("NO_USERS_ONLINE");
} else {
echo "<div id='uOnline' class='bMenu'><ul>\n";;
for ($i = 0, $cnt = count($rows), $n = $cnt - 1; $i < $cnt; $i++) {
$row = &$rows[$i];
echo "<centeer><a href='account-details.php?id=$row[id]'>
" . class_user($row[username]) . "
</a>".($i < $n ? ", " : "")."</center>\n";;
}
echo "
</div>\n";;
}
end_block();
}
?>
SELECT COUNT(id) AS totalcount, username FROM users WHERE last_access >= DATE_SUB(NOW(), INTERVAL 15 MINUTE)
<?php
if (get_user_class() >= 7) {
begin_block(T_("ONLINE_USERS"));
$expires = 1200;
if (($rows = $TTCache->Get("usersonline_block", $expires)) === false) {
$res = SQL_Query_exec("SELECT COUNT(id) AS totalcount, id, username FROM users WHERE enabled = 'yes' AND status = 'confirmed' AND privacy !='strong' AND last_access >= DATE_SUB(NOW(), INTERVAL 15 MINUTE)");
foreach (mysqli_fetch_assoc($res) as $row) {
$rows = $row;
if (array_key_exists('id', $row)) {
print("<div id='uOnline' class='bMenu'> - Total: " . $row['totalcount']); // Count the total online
print("<span style='text-align:center'><a href='account-details.php?id=$row[id]'>" . class_user($row['username']) . "</a></span>");
} else {
echo T_("NO_USERS_ONLINE");
}
}
$TTCache->Set("usersonline_block", $rows, $expires);
}
end_block();
}
?>
No users online
Torrents
Members
Online