1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | | PHP-Quelltext <?php
# PHPKIT WCMS | Web Content Management System
#
#
# YOU ARE NOT AUTHORISED TO CREATE ILLEGAL COPIES OF THIS
# FILE AND/OR TO REMOVE THIS INFORMATION
#
# SIE SIND NICHT BERECHTIGT, UNRECHTMÄSSIGE KOPIEN DIESER
# DATEI ZU ERSTELLEN UND/ODER DIESE INFORMATIONEN ZU ENTFERNEN
#
# This file / the PHPKIT software is no freeware! For further
# information please visit our website or contact us via email:
#
# Diese Datei / die PHPKIT Software ist keine Freeware! Für weitere
# Informationen besuchen Sie bitte unsere Website oder kontaktieren uns per E-Mail:
#
# email : info@phpkit.com
# website : http://www.phpkit.com
# licence : http://www.phpkit.com/licence
# copyright : Copyright (c) 2002-2009 mxbyte gbr | http://www.mxbyte.com
if(!defined('pkFRONTEND') || pkFRONTEND!='public')
die('Direct access to this location is not permitted.');
pkLoadHtml('default');
$boxlinks=array();
$getuserinfo=$SQL->query("SELECT
user_id,
user_nick,
lastlog
FROM ".pkSQLTAB_USER."
WHERE user_activate=1 ".
(pkGetConfig('user_ghost') ? ' AND user_ghost<>1' : '')."
ORDER by logtime DESC
LIMIT 8");
while(list($id,$nick, $logtime)=$SQL->fetch_row($getuserinfo))
{
$onlinestatus=isonline($id) ? 'online' : 'offline';
$nick_cutted=pkEntities(pkStringCut($nick));
$nick=pkEntities($nick);
$logtime=formattime($logtime);
$onlineImage=pkHtmlImage('img_user_'.$onlinestatus).' ';
$onlineNick =pkHtmlLink(pkLink('userinfo','','id='.$id),$nick_cutted,'','pknidlastuseronline'.count($boxlinks),'pkcontent_a_'.$navalign,$logtime);
eval("\$boxlinks[]=\"".pkTpl('navigation/content_lastuser')."\";");
}
return $boxlinks;
?> |