db_Select("user", "user_id, user_name, user_currentvisit", "ORDER BY user_currentvisit DESC LIMIT 0,".intval($num), "nowhere"); $lslist = $sql -> db_getList(); $text = $tp -> parseTemplate($TEMPLATE_LASTSEEN['START'], FALSE, $online_shortcodes); foreach($lslist as $row) { $text .= $tp -> parseTemplate($TEMPLATE_LASTSEEN['ITEM'], FALSE, $online_shortcodes); } $text .= $tp -> parseTemplate($TEMPLATE_LASTSEEN['END'], FALSE, $online_shortcodes); $caption = varsettrue($menu_pref['online_ls_caption'],LAN_LASTSEEN_1); $ns->tablerender($caption, $text, 'lastseen'); ?>