$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'