'.$ds[name].'';
$squadID=$ds[squadID];
$backlink='» back to squad 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 ("\$squads_head = \"".gettemplate("squads_head")."\";");
echo $squads_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 ($dm['userpic']!="" AND file_exists("images/userpics/".$dm['userpic']))
{
$userpic = $dm['userpic'];
$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 ("\$squads_content = \"".gettemplate("squads_content")."\";");
echo $squads_content;
$i++;
}
eval ("\$squads_foot = \"".gettemplate("squads_foot")."\";");
echo $squads_foot;
}
}
else {
if($_GET['squadID']) {
$getsquad = 'WHERE squadID="'.$_GET['squadID'].'"';
}
$ergebnis=safe_query("SELECT * FROM ".PREFIX."squads ".$getsquad." 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];
$details='» show details';
$squadID=$ds[squadID];
$results='';
$awards='';
$challenge='';
if($ds[gamesquad]) {
$results='[ results | ';
$awards='awards | ';
$challenge='challenge ]';
}
$bgcat=BGCAT;
eval ("\$squads = \"".gettemplate("squads")."\";");
echo $squads;
}
}
?>