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 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 | | PHP-Quelltext <?php
# PHPKIT Web Content Management System
# --------------------------------------------
# Copyright (c) 2002-2007 Gersöne & Schott GbR
#
# This file / the PHPKIT-software is no freeware!
# For further informations please vistit our website
# or contact us via email:
#
# Diese Datei / die PHPKIT-Software ist keine Freeware!
# Für weitere Information besuchen Sie bitte unsere
# Webseite oder kontaktieren uns per E-Mail:
#
# Website : http://www.phpkit.de
# Mail : info@phpkit.de
#
# YOU ARE NOT AUTHORISED TO CREATE ILLEGAL COPIES OF THIS
# FILE AND/OR TO REMOVE THIS INFORMATIONS
#
# SIE SIND NICHT BERECHTIGT, UNRECHTMÄSSIGE KOPIEN DIESER
# DATEI ZU ERSTELLEN UND/ODER DIESE INFORMATIONEN ZU ENTFERNEN
if(!defined('pkFRONTEND') || pkFRONTEND!='public')
die('Direct access to this location is not permitted.');
if($dir!="forum/")
{
pkLoadFunc('user');
$user_navigation=pkUserNavigation();
$dir='';
}
else
{
pkLoadClass($FORUM,'forum');
$forumcat_cache=$FORUM->getTree();
}
unset($mods);
unset($m);
if(is_array($forumcat_cache)) {
foreach($forumcat_cache as $forumcat) {
if(userrights($forumcat['forumcat_mods'],$forumcat['forumcat_rrights'])=="true" or userrights($forumcat['forumcat_user'],$forumcat[forumcat_rrights])=="true" or getrights($forumcat['forumcat_rrights'])=="true") {
$m.=$forumcat['forumcat_mods'];
}
}
}
$mods=explode("-",$m);
$sqlcommand="SELECT * FROM ".$db_tab['user']." WHERE user_status='admin' OR user_status='mod' OR user_status='member'";
if($mods!="") {
foreach($mods as $m) {
if($m!="") {
$sqlcommand.=" OR user_id='".intval($m)."'";
}
}
}
$getmods=$DB->query($sqlcommand." ORDER by user_nick ASC");
while($userinfo=$DB->fetch_array($getmods)) {
$userinfo['user_nick']=pkEntities($userinfo['user_nick']);
if(isonline($userinfo['user_id'])) {
eval("\$online_status= \"".pkTpl("member_os_online")."\";");
}
else {
eval("\$online_status= \"".pkTpl("member_os_offline")."\";");
}
if($userinfo['user_sex']=='m') {
eval("\$info_profile.= \"".pkTpl("member_showprofil_iconlink_m")."\";");
}
elseif($userinfo['user_sex']=='w') {
eval("\$info_profile.= \"".pkTpl("member_showprofil_iconlink_w")."\";");
}
else {
eval("\$info_profile.= \"".pkTpl("member_showprofil_iconlink")."\";");
}
if($userinfo['user_status']=="admin") {
eval("\$admin_row.= \"".pkTpl($dir."team_row")."\";");
}
elseif($userinfo[user_status]=="mod") {
eval("\$mod_row.= \"".pkTpl($dir."team_row")."\";");
}
elseif($userinfo[user_status]=="member") {
eval("\$member_row.= \"".pkTpl($dir."team_row")."\";");
}
}
else {
unset($user_row_foren);
foreach($forumcat_cache as $forumcat) {
if((userrights($forumcat['forumcat_mods'],$forumcat['forumcat_rrights'])=="true" or userrights($forumcat['forumcat_user'],$forumcat['forumcat_rrights'])=="true" or getrights($forumcat['forumcat_rrights'])=="true") && ereg("-".$userinfo['user_id']."-",$forumcat['forumcat_mods'])) {
eval("\$user_row_foren.= \"".pkTpl($dir."team_user_row_foren","")."\";");
}
eval("\$user_row.= \"".pkTpl($dir."team_user_row","")."\";");
}
}
}
if($mod_row!='') {
eval("\$mod_block.=\"".pkTpl($dir."team_modblock")."\";");
}
if($member_row!='') {
eval("\$member_block.=\"".pkTpl($dir."team_memberblock")."\";");
}
if($user_row!='') {
eval("\$user_block.=\"".pkTpl($dir."team_userblock")."\";");
}
eval("\$site_body.=\"".pkTpl($dir."team")."\";");
?> |