'.$ds[name].''; if($ds[icon]) $icon=''; else $icon=''; $info=$ds[info]; $squadID=$ds[squadID]; $backlink='» back to member overview'; $results=''; $awards=''; $challenge=''; $border=BORDER; if($ds[gamesquad]) { $results='[ results | '; $awards='awards | '; $challenge='challenge ]'; } $member=safe_query("SELECT * FROM ".PREFIX."squads_members s, ".PREFIX."user u WHERE s.squadID='$ds[squadID]' AND s.userID = u.userID ORDER BY sort"); eval ("\$members_head_head = \"".gettemplate("members_head_head")."\";"); echo $members_head_head; $i=1; while($dm=mysql_fetch_array($member)) { if($i%2) { $bg1=BG_1; $bg2=BG_2; } else { $bg1=BG_3; $bg2=BG_4; } $country = '[flag]'.$dm[country].'[/flag]'; $country = flags($country); $nickname = ''.$dm[nickname].''; $nicknamee = $dm[nickname]; $profilid = $dm[userID]; if($dm[userdescription]) $userdescription=$dm[userdescription]; else $userdescription='no description available'; if (file_exists("images/userpics/".$profilid.".jpg")) { $userpic = $profilid.".jpg"; $pic_info = $dm[nickname]." userpicture"; } elseif (file_exists("images/userpics/".$profilid.".gif")) { $userpic = $profilid.".gif"; $pic_info = $dm[nickname]." userpicture"; } else { $userpic = "nouserpic.gif"; $pic_info = "no userpic available!"; } $icq = $dm[icq]; $email = ''; $emaill = $dm[email]; $pm = ''; $buddy = ''; if ($loggedin && $dm[userID] != $userID) { $pm=''; if (isignored($userID, $dm[userID])) $buddy=''; elseif(isbuddy($userID, $dm[userID])) $buddy=''; elseif($userID==$dm[userID]) $buddy=""; else $buddy=''; } if (isonline($dm[userID])=="offline") $statuspic=''; else $statuspic=''; $position=$dm[position]; $firstname=$dm[firstname]; $lastname=$dm[lastname]; $town=$dm[town]; if($dm[activity]) $activity='active'; else $activity='inactive'; eval ("\$membes_details_content = \"".gettemplate("membes_details_content")."\";"); echo $membes_details_content; $i++; } eval ("\$membes_details_foot = \"".gettemplate("membes_details_foot")."\";"); echo $membes_details_foot; } } else { if($_POST['squadID']) { $onesquadonly = 'WHERE squadID="'.$_POST['squadID'].'"'; $visible="block"; } elseif($_GET['squadID']) { $onesquadonly = 'WHERE squadID="'.$_GET['squadID'].'"'; $visible="block"; } else $visible="none"; $ergebnis=safe_query("SELECT * FROM ".PREFIX."squads ".$onesquadonly." ORDER BY sort"); while($ds=mysql_fetch_array($ergebnis)) { $anzmembers=mysql_num_rows(safe_query("SELECT sqmID FROM ".PREFIX."squads_members WHERE squadID='".$ds[squadID]."'")); $name=''.$ds[name].''; if($ds[icon]) $icon=''; else $icon=''; $info=$ds[info]; $squadID=$ds[squadID]; $details='» show details'; $results=''; $awards=''; $challenge=''; if($ds[gamesquad]) { $results='[ results | '; $awards='awards | '; $challenge='challenge ]'; } $bgcat=BGCAT; eval ("\$members_head_head = \"".gettemplate("members_head_head")."\";"); echo $members_head_head; $member=safe_query("SELECT * FROM ".PREFIX."squads_members s, ".PREFIX."user u WHERE s.squadID='$ds[squadID]' AND s.userID = u.userID ORDER BY sort"); eval ("\$members_head = \"".gettemplate("members_head")."\";"); echo $members_head; $i=1; while($dm=mysql_fetch_array($member)) { if($i%2) { $bg1=BG_1; $bg2=BG_2; } else { $bg1=BG_3; $bg2=BG_4; } $country = '[flag]'.$dm[country].'[/flag]'; $country = flags($country); $nickname = ''.$dm[nickname].''; $nicknamee = $dm[nickname]; $profilid = $dm[userID]; if($dm[userdescription]) $userdescription=$dm[userdescription]; else $userdescription='no description available'; if (file_exists("images/userpics/".$profilid.".jpg")) { $userpic = $profilid.".jpg"; $pic_info = $dm[nickname]." userpicture"; } elseif (file_exists("images/userpics/".$profilid.".gif")) { $userpic = $profilid.".gif"; $pic_info = $dm[nickname]." userpicture"; } else { $userpic = "nouserpic.gif"; $pic_info = "no userpic available!"; } $icq = $dm[icq]; $email = ''; $emaill = $dm[email]; $pm = ''; $buddy = ''; if ($loggedin && $dm[userID] != $userID) { $pm=''; if (isignored($userID, $dm[userID])) $buddy=''; elseif(isbuddy($userID, $dm[userID])) $buddy=''; elseif($userID==$dm[userID]) $buddy=""; else $buddy=''; } if (isonline($dm[userID])=="offline") $statuspic=''; else $statuspic=''; $position=$dm[position]; $firstname=$dm[firstname]; $lastname=$dm[lastname]; $town=$dm[town]; if($dm[activity]) $activity='active'; else $activity='inactive'; eval ("\$members_content = \"".gettemplate("members_content")."\";"); echo $members_content; $i++; } eval ("\$members_foot = \"".gettemplate("members_foot")."\";"); echo $members_foot; } $ergebnis=safe_query("SELECT squadID, name FROM ".PREFIX."squads ORDER BY sort"); unset($squadlist); $squadlist = '
'; echo ''.$squadlist.' |