<?php
# Copyright by: David Schwarz
# Support: www.baduncles.game-host.org
# Code Edit by: Rolf Berleth
defined ('main') or die ( 'no direct access' );
$title = $allgAr['title'].' :: User :: '.$lang['listofmembers'];
$hmenu = 'User <b> » </b> '.$lang['listofmembers'];
$design = new design ( $title , $hmenu);
$design->header();
// Funktionen der Memblist einbinden
require_once('include/includes/func/membListFunctions.php');
$tpl = new tpl ( 'user/memb_list.htm' );
if ($menu->get(1) == 'show') {
$limit = 100; // Limit
$page = ($menu->getA(1) == 'p' ? $menu->getE(1) : 1 );
$MPL = db_make_sites ($page , "" , $limit , '?user' , 'user' );
$anfang = ($page - 1) * $limit;
$tpl->set_out ( 'SITELINK', $MPL, 1);
$gid = escape($menu->get(2), 'integer');
$erg = db_query("SELECT id,name FROM prefix_grundrechte WHERE id < -0 ORDER BY id ASC");
while ($row = db_fetch_object($erg)){
$grundRechtBild= get_membListPicExt('include/images/rangs/',$row->name,$row->name);
$grundRechtBildOut=($grundRechtBild != $row->name?'<img src="'.$grundRechtBild.'">':$grundRechtBild);
$class == 'Cmite';
$userErg = db_query("SELECT a.posts, a.staat, a.email, a.llogin, a.id, a.regist, a.name, a.geschlecht, a.avatar, a.gebdatum FROM prefix_user as a LEFT JOIN prefix_groupusers as b ON a.id = b.uid WHERE a.recht = ".$row->id." AND b.gid = ".$gid." ORDER by a.recht,a.regist,a.posts DESC LIMIT ".$anfang.",".$limit);
if(db_num_rows($userErg)==0) continue;
$tpl->set_out('GRUNDRECHT',$grundRechtBildOut,2);
while ($userRow = db_fetch_object($userErg)) {
$userAr = array('NAME' => $userRow->name,
'RANG' => userrang($userRow->posts,$userRow->id),
'CLASS' => ($class=='Cmite'?'Cnorm':'Cmite'),
'POSTS' => $userRow->posts,
'UID' => $userRow->id,
'DATE' => date('d.m.Y',$userRow->regist),
'GA' => ($userRow->gebdatum != 0000-00-00?($userRow->geschlecht == 0?get_membListAge($userRow->gebdatum):' - '.get_membListAge($userRow->gebdatum)):''),
'GRUPE' => $row->name,
'AVATAR' => get_membListAvatar($userRow->avatar,$userRow->geschlecht),
'STAAT' => $userRow->staat,
'EMAIL' => $userRow->email,
'LLOGIN' => date('d.m.Y <b\r> H:i',$userRow->llogin).' Uhr'
);
$tpl->set_ar_out($userAr,3);
}
$tpl->out(4);
}
$tpl->out(5);
} else {
$erg1 = db_query("SELECT name,img,id as gid FROM prefix_groups WHERE zeigen = 0 AND show_memblist = 1 ORDER BY pos");
while ($row = db_fetch_assoc($erg1) ) {
if (!empty($row['img']) ) {
$row['show'] = '<a href="index.php?user-show-'.$row['gid'].'"><img src="'.$row['img'].'" title="'.$row['name'].'" alt="'.$row['name'].'" border="0"></a>';
} else {
$row['show'] = '<a href="index.php?user-show-'.$row['gid'].'"><b>'.$row['name'].'</b></a>';
}
$tpl->set_ar_out($row,0);
}
}
$design->footer();
?>
Kannst du mir mal zeigen wo