__FILE__, __LINE__);
if (SQL_NUMROWS($result) > 0) {
// List all online users
- $OUT = ''; $SW = 2;
+ $OUT = '';
while ($row = SQL_FETCHARRAY($result)) {
if ($row['is_admin'] == 'Y') {
// Is an administrator
}
// Add more content
- $row['sw'] = $SW;
$row['timestamp'] = generateDateTime($row['timestamp'], 2);
// Load row template and switch color
$OUT .= loadTemplate('admin_list_online_row', true, $row);
- $SW = 3 - $SW;
} // END - while
// Free memory