aha stimt da war was^^ ich halt wieder^^
ehm ist son bissle Copy and Paste zb habe ich hier auch Oft Essen einfach Kopiert eins Weiter runter eingefgt und die Namen halt noch geändert.
wie jetzt zb bei Jet Sniper etc
<?php
# Copyright by: Manuel Staechele
# Support: www.ilch.de
defined ('main') or die ( 'no direct access' );
#Squadanzeige im Profil
function user_get_teams ($uid) {
$erg = db_query("SELECT b.name, c.name as posi
FROM `prefix_groupusers` a
LEFT JOIN `prefix_groups` b ON b.id = a.gid
LEFT JOIN `prefix_groupfuncs` c ON a.fid = c.id
WHERE a.uid = ".$uid);
if (db_num_rows($erg) > 0 ) {
while ($r = db_fetch_assoc($erg)) {
if ($class == 'Cmite') { $class = 'Cnorm'; } else { $class = 'Cmite'; }
$l .= '<td class="'.$class.'" width="70%">'.$r['name'].'</td><td class="'.$class.'" width="30%">'.$r['posi'].'</td></tr>';
}
} else {
$l .= '<td class="Cmite" width="10%">Keine Teams</td>';
}
return ($l);
}
$uid = $menu->get(2);
#Award Ausgabe
$awards = ''; $ax = 0;
$sqlA = db_query("SELECT a.platz, a.text, a.wofur, a.team, a.bild, DATE_FORMAT(a.`time`, '%d.%m.%Y') AS time FROM `prefix_awards` a INNER JOIN prefix_user b ON a.team = b.name WHERE b.id = ".$uid." ORDER BY `time` ASC");
while($rowA = db_fetch_assoc($sqlA))
{
$ax++; if ($ax == 8) {$awards .= "<br>"; $ax = 0;}
$awards .= (!empty($rowA['bild']) ? '<img style="padding:1px;border:0px;" src="'.$rowA['bild'].'" alt="'.$rowA['wofur'].'" title="'.$rowA['wofur'].'"/>' : $rowA['wofur']);
}
$awards = '<b><b><br><div style="text-align:center;">'.$awards.'</div>';
$lastbes_anz = 5; //Bei höhere Anzahl muss ggf. in der Datenbank die Größe der Felder bzw der Typ geändert werden
if ($_SESSION['authid'] != $uid AND $_SESSION['authid'] != 0) {
$lb = db_fetch_object(db_query('SELECT last_bes, last_user_time FROM prefix_user WHERE id = '.$uid));
$lba = explode('#',$lb->last_bes);
$lbt = explode('#',$lb->last_user_time);
$i = array_search($_SESSION['authid'],$lba);
if ($i !== false) {
unset($lba[$i]); unset($lbt[$i]);
} elseif (count($lba) >= $lastbes_anz) {
$lba = array_slice($lba,0,$lastbes_anz-1);
$lbt = array_slice($lbt,0,$lastbes_anz-1);
}
array_unshift($lba,$_SESSION['authid']);
array_unshift($lbt,time());
$i_lb = implode('#',$lba);
$i_lbt = implode('#',$lbt);
db_query("UPDATE prefix_user SET last_bes = '$i_lb', last_user_time = '$i_lbt' WHERE id = $uid");
}
include('user_infos.php');
$abf8 = "SELECT * FROM prefix_online WHERE uid = '".$uid."'";
$erg8 = db_query($abf8);
$row8 = db_fetch_assoc($erg8);
if(isset($row8['uid'])){
$online = '<img src="include/images/forum/uonline.png" alt="online" border="0"/>';
}else{
$online = '<img src="include/images/forum/uoffline.png" alt="offline" border="0" />';
}
if(empty($row['steam']))
{
$steam = ''; }else{
$steam = '<img src="http://badges.steamprofile.com/profile/extended/steam/'.$row['steam'].'.png" />';
}
if ($www != ''){$row['www'] = '<a href="http://steamcommunity.com/id/'.$row['steam'].'"><img src="include/images/forum/www.png" border="0" alt="Website des Users besuchen"></a>';}
$ar = array (
'STEAM' => $steam,
'UID' => $uid,
'NAME' => $row['name'],
'JOINED' => date('d.m.Y',$row['regist']),
'LASTAK' => date('d.m.Y - H:i',$row['llogin']),
'POSTS' => $row['posts'],
'postpday' => $postpday,
'RANG' => userrang ($row['posts'],$uid),
'AVATA' => $avatar,
'LASTUSER' => last_user($uid),
'STATUS2' => $online,
'USERTITEL' => $usertitel,
'EMAIL' => $email,
'HOMEPAGE' => $homepage,
'GESCHLECHT' => $geschlecht,
'GEBDATUM' => $gebdatum,
'ALTER' => $alter,
'WOHNORT' => $wohnort,
'FORUMTOPICS' => $row4['forumtopics'],
'NEWSTOPICS' => $row5['newstopics'],
'NEWSPOSTS' => $row6['newsposts'],
'FORUMPOSTS' => $row7['forumposts'],
'SIGNATUR' => bbcode($row['sig']),
'STAAT' => $staat,
'UID' => $uid,
'STERNZEICHEN' => $sternzeichen,
'GB_EINTRAEGE' => $gb_eintraege,
'GALLERIE_EINTRAEGE' => $gallery_eintraege,
'ICQ' => $icq,
'GAME' => $game,
'GAME1' => $game1,
'GAME2' => $game2,
'GAME3' => $game3,
'GAME4' => $game4,
'GAME5' => $game5,
'SPIELERFAHRUNG' => $spielerfahrungen,
'CLAN' => $clan,
'MAP' => $map,
'WAFFE' => $waffe,
'ESSEN' => $essen,
'PHOTOSHOP' => $photoshop,
'HTML' => $html,
'PHP' => $php,
'DATENBANK' => $datenbank,
'FLASH' => $flash,
'ILCH' => $ilch,
'SNIPER' => $sniper,
'SANI' => $sani,
'VERSORGER' => $versorger,
'INGE' => $inge,
'TANK' => $tank,
'HELLI' => $helli,
'JET' => $jet,
'TRINKEN' => $trinken,
'FILM' => $film,
'MUSIK' => $musik,
'SPORT' => $sport,
'CPU' => $cpu,
'MAINBOARD' => $mainboard,
'RAM' => $ram,
'MONITOR' => $monitor,
'GRAFIKKARTE' => $grafikkarte,
'SOUNDKARTE' => $soundkarte,
'FESTPLATTE' => $festplatte,
'I_NET_VERBINDUNG' => $i_net_verbindung,
'TASTATUR' => $tastatur,
'MAUS' => $maus,
'JAPPY' => $jappy,
'FACEBOOK' => $facebook,
'WKW' => $wkw,
'STUDIVZ' => $studivz,
'MYSPACE' => $myspace,
'YOUTUBE' => $youtube,
'AWARDS' => $awards,
'POINTS' =>$row['cpoints'],
'RPOINT' =>$rp,
'GAMES' => getteams($row['id']),
'VERW' => verwarnstu($row['fwarn'],0),
'dze'=>getmedal(1,$row['regist']),
'fze'=>getmedal(2,$row['posts']),
'wze'=>getmedal(3,$row['cpoints']),
'cme' =>getmedal(4,$row['medal']),
'TEAMS' => user_get_teams ($uid),
);
$title = $allgAr['title'].' :: Users :: Details von '.$row['name'];
$hmenu = $extented_forum_menu.'<a class="smalfont" href="?user">Users</a><b> » </b> <a href=index.php?user-details-'.$uid.'>Details von '.$row['name']."</a>".$extented_forum_menu_sufix;
$design = new design ( $title , $hmenu, 1);
$design->header();
$tpl = new tpl ( 'user/userdetails' );
$l = profilefields_show ( $uid );
$ar['rowspan'] = 4 + substr_count($l, '<tr><td class="');
$ar['profilefields'] = $l;
$tpl->set_ar_out($ar,0);
$design->footer();
?>
Ein Xd und ^^ und LOL und D Beweist Skill wen mans nach Jedem Satz Schreibt ^^xd LOL D