|
|
PHP-Quelltext |
1 2 3 4 5 6 7 8 9 10 |
function parse($userid, $username, $useronlinemarking, $invisible) {
global $tpl, $SID_ARG_1ST, $SID_ARG_2ND, $SID_ARG_2ND_UN, $lang;
if (is_array($this->buddies) && in_array($userid, $this->buddies)) eval("\$username = \"".$tpl->get("useronline_buddy")."\";");
if ($useronlinemarking != '') $username = sprintf($useronlinemarking, $username);
eval("\$useronlinebit = \"".$tpl->get("index_useronline")."\";");
return $useronlinebit;
}
|
|
|
PHP-Quelltext |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
function parse($userid, $username, $useronlinemarking, $invisible, $visited=false) {
global $tpl, $SID_ARG_1ST, $SID_ARG_2ND, $SID_ARG_2ND_UN, $lang;
if (is_array($this->buddies) && in_array($userid, $this->buddies)) eval("\$username = \"".$tpl->get("useronline_buddy")."\";");
if ($useronlinemarking != '') $username = sprintf($useronlinemarking, $username);
if($visited) {
global $row, $wbbuserdata, $showuservisitedmode;
switch($showuservisitedmode) {
case 0:
eval("\$useronlinebit = \"".$tpl->get("index_useronline")."\";");
break;
case 1:
$time = strftime("%H:%M", $row['lastactivity']);
eval("\$useronlinebit = \"".$tpl->get("index_uservisited")."\";");
break;
case 2:
$time = strftime("%H:%M", get_firstvisit($userid));
eval("\$useronlinebit = \"".$tpl->get("index_uservisited")."\";");
break;
}
} else {
eval("\$useronlinebit = \"".$tpl->get("index_useronline")."\";");
}
return $useronlinebit;
}
|
|
|
PHP-Quelltext |
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 |
<?php
// ************************************************************************************//
// * WoltLab Burning Board 2
// ************************************************************************************//
// * Copyright (c) 2001-2004 WoltLab GmbH
// * Web http://www.woltlab.de/
// * License http://www.woltlab.de/products/burning_board/license_en.php
// * http://www.woltlab.de/products/burning_board/license.php
// ************************************************************************************//
// * WoltLab Burning Board 2 is NOT free software.
// * You may not redistribute this package or any of it's files.
// ************************************************************************************//
// * $Date: 2004-10-20 13:24:57 +0200 (Wed, 20 Oct 2004) $
// * $Author: Burntime $
// * $Rev: 1453 $
// ************************************************************************************//
class useronline {
var $modids = array();
var $can_view_ghosts = 0;
var $useronlinebit = "";
var $buddies = array();
function useronline($can_view_ghosts, $buddylist = '') {
$this->can_view_ghosts = $can_view_ghosts;
$this->buddies = explode(' ', $buddylist);
}
function parse($userid, $username, $useronlinemarking, $invisible) {
global $tpl, $SID_ARG_1ST, $SID_ARG_2ND, $SID_ARG_2ND_UN, $lang, $db, $n;
if (is_array($this->buddies) && in_array($userid, $this->buddies)) eval("\$username = \"".$tpl->get("useronline_buddy")."\";");
if ($useronlinemarking != '') $username = sprintf($useronlinemarking, $username);
eval("\$useronlinebit = \"".$tpl->get("index_useronline")."\";");
$result = $db->query_first("SELECT onlinesmilie FROM bb".$n."_users WHERE userid='".$userid."'");
if ($result[0] >= 1 && !$visited) {
$result = $db->query_first("SELECT smilietitle, smiliepath FROM bb".$n."_onlinesmilies WHERE smilieid='".$result[0]."'");
$useronlinebit.= " ".makeimgtag($result['smiliepath'], $result['smilietitle']);
}
return $useronlinebit;
}
function user($userid, $username, $useronlinemarking, $invisible, $visited=false) {
if ($invisible == 1 && $this->can_view_ghosts == 0) return "";
if ($this->useronlinebit != '') $this->useronlinebit .= ", ".$this->parse($userid, $username, $useronlinemarking, $invisible, $visited);
else $this->useronlinebit = $this->parse($userid, $username, $useronlinemarking, $invisible, $visited);
}
}
?>
|
Benutzerinformationen überspringen
Registrierungsdatum: 16. März 2008
Wohnort: Murnau (hergezogen)
WBB Version: alle

|
|
PHP-Quelltext |
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 55 56 57 58 59 60 61 62 63 64 65 66 67 |
<?php
// ************************************************************************************//
// * WoltLab Burning Board 2
// ************************************************************************************//
// * Copyright (c) 2001-2004 WoltLab GmbH
// * Web http://www.woltlab.de/
// * License http://www.woltlab.de/products/burning_board/license_en.php
// * http://www.woltlab.de/products/burning_board/license.php
// ************************************************************************************//
// * WoltLab Burning Board 2 is NOT free software.
// * You may not redistribute this package or any of it's files.
// ************************************************************************************//
// * $Date: 2004-10-20 13:24:57 +0200 (Wed, 20 Oct 2004) $
// * $Author: Burntime $
// * $Rev: 1453 $
// ************************************************************************************//
class useronline {
var $modids = array();
var $can_view_ghosts = 0;
var $useronlinebit = "";
var $buddies = array();
function useronline($can_view_ghosts, $buddylist = '') {
$this->can_view_ghosts = $can_view_ghosts;
$this->buddies = explode(' ', $buddylist);
}
function parse($userid, $username, $useronlinemarking, $invisible, $visited=false) {
global $tpl, $SID_ARG_1ST, $SID_ARG_2ND, $SID_ARG_2ND_UN, $lang,$db, $n;
if (is_array($this->buddies) && in_array($userid, $this->buddies)) eval("\$username = \"".$tpl->get("useronline_buddy")."\";");
if ($useronlinemarking != '') $username = sprintf($useronlinemarking, $username);
if($visited) {
global $row, $wbbuserdata, $showuservisitedmode;
switch($showuservisitedmode) {
case 0:
eval("\$useronlinebit = \"".$tpl->get("index_useronline")."\";");
break;
case 1:
$time = strftime("%H:%M", $row['lastactivity']);
eval("\$useronlinebit = \"".$tpl->get("index_uservisited")."\";");
break;
case 2:
$time = strftime("%H:%M", get_firstvisit($userid));
eval("\$useronlinebit = \"".$tpl->get("index_uservisited")."\";");
break;
}
} else {
eval("\$useronlinebit = \"".$tpl->get("index_useronline")."\";");
}
$result = $db->query_first("SELECT onlinesmilie FROM bb".$n."_users WHERE userid='".$userid."'");
if ($result[0] >= 1 && !$visited) {
$result = $db->query_first("SELECT smilietitle, smiliepath FROM bb".$n."_onlinesmilies WHERE smilieid='".$result[0]."'");
$useronlinebit.= " ".makeimgtag($result['smiliepath'], $result['smilietitle']);
}
return $useronlinebit;
}
function user($userid, $username, $useronlinemarking, $invisible, $visited=false) {
if ($invisible == 1 && $this->can_view_ghosts == 0) return "";
if ($this->useronlinebit != '') $this->useronlinebit .= ", ".$this->parse($userid, $username, $useronlinemarking, $invisible, $visited);
else $this->useronlinebit = $this->parse($userid, $username, $useronlinemarking, $invisible, $visited);
}
}
?>
|
Forensoftware: Burning Board® 3.1.7, entwickelt von WoltLab® GmbH