squads'; // neuen Squad ertstellen if($_GET['action']=="add") { $filepath="../images/squadicons/"; $folder=opendir($filepath); while($file=readdir($folder)) { if($file!="." && $file!="..") $files[]=$file; } closedir($folder); if(is_array($files)) { foreach($files as $file) { $icons.=' '; } } echo'
'; } elseif($_GET['action']=="edit") { // Squad bearbeiten $squadID = $_GET['squadID']; $filepath="../images/squadicons/"; $folder=opendir($filepath); while($file=readdir($folder)) { if($file!="." && $file!="..") $files[]=$file; } closedir($folder); if(is_array($files)) { foreach($files as $file) { $icons.=' '; } } $ergebnis=safe_query("SELECT * FROM ".PREFIX."squads WHERE squadID='$squadID'"); $ds=mysql_fetch_array($ergebnis); if($ds[gamesquad]) $type='gaming squad non gaming squad'; else $type='gaming squad non gaming squad'; $icons=str_replace('value="'.$ds[icon].'"', 'value="'.$ds[icon].'" checked', $icons); echo''; } else { echo'