$pos) { safe_query("UPDATE ".PREFIX."squads_members SET position='$pos' WHERE sqmID='$sqmID'"); } foreach($activity as $sqmID=>$act) { safe_query("UPDATE ".PREFIX."squads_members SET activity='$act' WHERE sqmID='$sqmID'"); } foreach($join as $sqmID=>$joi) { safe_query("UPDATE ".PREFIX."squads_members SET joinmember='$joi' WHERE sqmID='$sqmID'"); } foreach($war as $sqmID=>$wara) { safe_query("UPDATE ".PREFIX."squads_members SET warmember='$wara' WHERE sqmID='$sqmID'"); } if(issuperadmin($userID)) safe_query("UPDATE ".PREFIX."user_groups SET super='".$_POST['superadmin']."' WHERE userID='$id'"); } else redirect('admincenter.php?site=members','Can not change own rights.'); } echo'

members

'; if($_GET['action']=="edit") { $id = $_GET['id']; $ergebnis=safe_query("SELECT * FROM ".PREFIX."squads_members WHERE userID='$id' GROUP BY squadID"); $anz=mysql_num_rows($ergebnis); if($anz) { while($ds=mysql_fetch_array($ergebnis)) { if($ds[activity]) $activity=' '; else $activity=' '; if($ds[joinmember]) $join=''; else $join=''; if($ds[warmember]) $fight=''; else $fight=''; $squads.='
Squad:'.getsquadname($ds[squadID]).' Position:'.$activity.' Joinus-Admin: '.$join.' Fightus-Admin: '.$fight.' '; } } if(isnewsadmin($id)) $news=''; else $news=''; if(ispollsadmin($id)) $polls=''; else $polls=''; if(isfeedbackadmin($id)) $feedback=''; else $feedback=''; if(isuseradmin($id)) $useradmin=''; else $useradmin=''; if(isclanwaradmin($id)) $cwadmin=''; else $cwadmin=''; if(isforumadmin($id)) $board=''; else $board=''; if(isanymoderator($id)) $mod=''; else $mod=''; if(isinternboarduser($id)) $intern=''; else $intern=''; if(ispageadmin($id)) $page=''; else $page=''; if(isfileadmin($id)) $file=''; else $file=''; if(iscashadmin($id)) $cash=''; else $cash=''; if(isgalleryadmin($id)) $gallery=''; else $gallery=''; if(issuperadmin($id)) $super=''; else $super=''; if(isclanmember($id)) $userdes=' User description: '; else $userdes=''; echo'
'.$squads.' '.$userdes.' '; if(issuperadmin($userID)) echo ''; echo '
Nickname:'.getnickname($id).'
'.$news.' News-Admin'.$board.' Messageboard-Admin
'.$cwadmin.' Clanwar-Admin'.$mod.' Messageboard-Moderator
'.$polls.' Polls-Admin'.$intern.' Access to intern Boards
'.$feedback.' Feedback-Admin'.$page.' Page-Admin
'.$file.' File-Admin'.$useradmin.' User-Admin
'.$cash.' Cash-Admin'.$gallery.' Gallery-Admin 
'.$super.' Super-Admin 
'; unset($squads); } else { $squads=safe_query("SELECT * FROM ".PREFIX."squads ORDER BY sort"); echo'
'; while($ds=mysql_fetch_array($squads)) { echo''; $members=safe_query("SELECT * FROM ".PREFIX."squads_members WHERE squadID='$ds[squadID]' ORDER BY sort"); $anzmembers=safe_query("SELECT count(squadID) FROM ".PREFIX."squads_members WHERE squadID='$ds[squadID]'"); $anzmembers=mysql_result($anzmembers, 0); echo''; while($dm=mysql_fetch_array($members)) { $country = '[flag]'.getcountry($dm[userID]).'[/flag]'; $country=flags($country); $country=str_replace("images/", "../images/", $country); $nickname=''.getnickname($dm[userID]).''; if($dm[activity]) $activity='activ'; else $activity='inactive'; echo''; } echo'
'.$ds[name].'
Country / Nickname: Position: Activity: Sort: Actions:
'.$country.' '.$nickname.' '.$dm[position].' '.$activity.'

'; } echo'
'; } ?>