Location: PHPKode > projects > Skrupel User Game Administration > spiel_alpha.php
<? 
include ("include/conf.inc.php");
include ("$basepfath/inc.conf.php");
include ("$usedpfath/include/header.inc.php");
include ("$usedpfath/include/usercheck.inc.php");


if ($HTTP_GET_VARS["fu"]==1)
 {
 $header = new EasyTemplate ("$usedpfath/templates/usedheader.tpl");
 $footer = new EasyTemplate ("$usedpfath/templates/usedfooter.tpl");
 $header -> assign("TITLE","Skrupel - UsedComm Spiel erstellen Schritt 1");
 $header -> assign("URL",$usedurl);
 $header -> easy_print();

 if ($create>0)
  {
  ?>	

      <script language="JavaScript" type="text/javascript">
        function checkname()
         {<?
         $abfrage = mysql_query("SELECT * FROM skrupel_spiele");
         if (mysql_num_rows($abfrage) < 1)
          {
          }
          else{
              while ($row = mysql_fetch_object ($abfrage))
               {
               $spiel_namen= trim($row->name);
               ?>
               if (document.formular.spiel_name.value == '<?=$spiel_namen?>')
			    {
                alert("Ein Spiel mit diesem Namen gibt es bereits.");
                return false;
                }
               <?
               }
              }
         $abfrage = mysql_query("SELECT * FROM skrupel_usedcommspiele");
         if (mysql_num_rows($abfrage) < 1)
          {
          }
          else{
              while ($row = mysql_fetch_object ($abfrage))
               {
               $spiel_namen= trim($row->spiel_name);
               ?>
               if (document.formular.spiel_name.value == '<?=$spiel_namen?>')
			    {
                alert("Ein Spiel mit diesem Namen gibt es bereits.");
                return false;
                }
               <?
               }
              }
         ?>
         return true;
         }
        </script>


<body text="#ffffff" bgcolor="#444444" link="#000000" vlink="#000000" alink="#000000" leftmargin="0" rightmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<center>
 <table border="0" cellspacing="0" cellpadding="4">
  <tr>
   <td style="font-size:20px; font-weight:bold; filter:DropShadow(color=black, offx=2, offy=2)">Neues Spiel erstellen</td>
  </tr>
 </table>
</center>
<form name="formular" method="post" action="spiel_alpha.php?fu=10" onSubmit="return checkname();">
<center>
<table border="0" cellspacing="0" cellpadding="2">
 <tr>
  <td>Wie soll das Spiel heissen?</td>
 </tr>
 <tr>
  <td>&nbsp;</td>
 </tr>
 <tr>
  <td><input type="text" name="spiel_name" class="eingabe" value="" maxlength="50" style="width:250px;"></td>
 </tr>
 <tr>
  <td>&nbsp;</td>
 </tr>
 <tr>
  <td>Wie sind die Siegbedingungen? Wann endet das Spiel?</td>
 </tr>
 <tr>
  <td>&nbsp;</td>
 </tr>
 <tr>
  <td>
   <table border="0" cellspacing="0" cellpadding="0">
    <tr>
     <td><input type="radio" name="siegbedingungen" value="0" checked></td>
     <td>&nbsp;</td>
     <td style="color:#aaaaaa;">JustforFun (es wird gespielt, bis die Runde langweilig wird)</td>
    </tr>
    <tr>
     <td><input type="radio" name="siegbedingungen" value="1"></td>
     <td>&nbsp;</td>
     <td>
      <table border="0" cellspacing="0" cellpadding="0">
       <tr>
        <td style="color:#aaaaaa;">Überleben (Spiel endet, sobald nur noch&nbsp;</td>
        <td><select name="zielinfo_1">
             <option value="1">1</option>
             <option value="2">2</option>
             <option value="3">3</option>
             <option value="4">4</option>
             <option value="5">5</option>
             <option value="6">6</option>
             <option value="7">7</option>
             <option value="8">8</option>
             <option value="9">9</option>
            </select>
        </td>
        <td style="color:#aaaaaa;">&nbsp;Spieler existieren)</td>
       </tr>
      </table>
     </td>
    </tr>
    <tr>
     <td><input type="radio" name="siegbedingungen" value="2"></td>
     <td>&nbsp;</td>
     <td style="color:#aaaaaa;">Todfeind (jeder Spieler erhält einen Todfeind, den es zu vernichten gilt)</td>
    </tr>
    <tr>
     <td><input type="radio" name="siegbedingungen" value="6"></td>
     <td>&nbsp;</td><td style="color:#aaaaaa;">TeamTodfeind (jedes Team aus 2 Spielern erhält 2 Todfeinde, welche es zu vernichten gilt)</td>
    </tr> <? ?>
    <tr>
     <td><input type="radio" name="siegbedingungen" value="5"></td>
     <td>&nbsp;</td>
     <td>
      <table border="0" cellspacing="0" cellpadding="0">
       <tr>
        <td style="color:#aaaaaa;">Spice (</td>
        <td><select name="zielinfo_5">
             <option value="2500">2500</option>
             <option value="5000">5000</option>
             <option value="7500">7500</option>
             <option value="10000">10000</option>
             <option value="15000">15000</option>
            </select>
        </td>
        <td style="color:#aaaaaa;">&nbsp;KT Vomisaan müssen im freien Raum an Bord der eigenen Flotte gesichert werden)</td>
       </tr>
      </table>
     </td>
    </tr>
   </table>
  </td>
 </tr>
 <tr>
  <td>&nbsp;</td>
 </tr>
 <tr>
  <td>Welche optionalen Spielelemente sollen aktiviert sein?</td>
 </tr>
 <tr>
  <td>&nbsp;</td>
 </tr>
 <tr>
  <td>
   <table border="0" cellspacing="0" cellpadding="0">
    <tr>
     <td><input type="checkbox" name="modul_0" value="1" checked></td>
     <td>&nbsp;</td>
     <td style="color:#aaaaaa;">Spionage und Sabotage</td>
    </tr>
    <tr>
     <td><input type="checkbox" name="modul_2" value="1" checked></td>
     <td>&nbsp;</td>
     <td style="color:#aaaaaa;">Minenfelder</td>
    </tr><? ?>
   </table>
  </td>
 </tr>
</table>
</center>
<br><br>
<center>
<table border="0" cellspacing="0" cellpadding="0">
 <tr>
  <td><input type="submit" name="bla" value="Weiter mit Schritt 2"></td>
  <td></form></td>
 </tr>
</table>
</center>
<?

      }
      $footer -> easy_print();
   }

if ($HTTP_GET_VARS["fu"]==10)
 {
 $header = new EasyTemplate ("$usedpfath/templates/usedheader.tpl");
 $footer = new EasyTemplate ("$usedpfath/templates/usedfooter.tpl");
 $header -> assign("TITLE","Skrupel - UsedComm Spiel erstellen Schritt 2");
 $header -> assign("URL",$usedurl);
 $header -> easy_print();

 if ($create>0)
  {
?>

<body text="#ffffff" bgcolor="#444444" link="#000000" vlink="#000000" alink="#000000" leftmargin="0" rightmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<center>
 <table border="0" cellspacing="0" cellpadding="4">
  <tr>
   <td style="font-size:20px; font-weight:bold; filter:DropShadow(color=black, offx=2, offy=2)">Neues Spiel erstellen</td>
  </tr>
 </table>
</center>
<form name="formular" method="post" action="spiel_alpha.php?fu=2">
<input type="hidden" name="spiel_name" value="<?=$HTTP_POST_VARS["spiel_name"]?>">
<input type="hidden" name="siegbedingungen" value="<?=$HTTP_POST_VARS["siegbedingungen"]?>">
<input type="hidden" name="zielinfo_1" value="<?=$HTTP_POST_VARS["zielinfo_1"]?>">
<input type="hidden" name="zielinfo_2" value="<?=$HTTP_POST_VARS["zielinfo_2"]?>">
<input type="hidden" name="zielinfo_3" value="<?=$HTTP_POST_VARS["zielinfo_3"]?>">
<input type="hidden" name="zielinfo_4" value="<?=$HTTP_POST_VARS["zielinfo_4"]?>">
<input type="hidden" name="zielinfo_5" value="<?=$HTTP_POST_VARS["zielinfo_5"]?>">
<input type="hidden" name="modul_0" value="<?=$HTTP_POST_VARS["modul_0"]?>">
<input type="hidden" name="modul_2" value="<?=$HTTP_POST_VARS["modul_2"]?>">
<center>
 <table border="0" cellspacing="0" cellpadding="2">
  <tr>
   <td>Welche Struktur soll die Galaxie haben?<br><br></td>
  </tr>
  <tr>
  <?
  $lnuy=0;
  $svyr='../daten/gala_strukturen.txt';
  $fp = @fopen("$svyr","r");
  if ($fp)
     {
     $lnruyrd=0;
     while (!feof ($fp))
           {
           $ogssrd = @fgets($fp, 4096);
           $efdgxfgd[$lnruyrd]=$ogssrd;
           $lnruyrd++;
           }
     @fclose($fp);
     }
  for ($n=0;$n<$lnruyrd;$n++)
      {
      $efdgxfgdqnfrm=explode(':',$efdgxfgd[$n]);
      ?>
      
      <td with="50%">
       <table border="0" cellspacing="0" cellpadding="2" with="100%">
        <tr>
         <td><input type="radio" name="struktur" value="<?=$efdgxfgdqnfrm[1]?>" <? if ($n==0) { echo 'checked'; } ?>></td>
         <td style="color:#aaaaaa;" colspan="2"><?=$efdgxfgdqnfrm[0]?></td>
        </tr>
        <tr>
         <td></td>
         <td>
          <table border="0" cellspacing="0" cellpadding="0">
           <tr>
            <td><img src="../bilder/admin/gala_1.gif"></td>
            <td><img src="../bilder/admin/gala_2.gif"></td>
            <td><img src="../bilder/admin/gala_3.gif"></td>
           </tr>
           <tr>
            <td><img src="../bilder/admin/gala_4.gif"></td>
            <td background="../daten/bilder_galaxien/<?=$efdgxfgdqnfrm[1]?>.png"><img src="../bilder/admin/gala_stars.gif"></td>
            <td><img src="../bilder/admin/gala_5.gif"></td> </tr> <tr> <td><img src="../bilder/admin/gala_6.gif"></td>
            <td><img src="../bilder/admin/gala_7.gif"></td>
            <td><img src="../bilder/admin/gala_8.gif"></td>
           </tr>
          </table>
         </td>
         <td width="100%"><center>mögliche Spieleranzahl<br><br>
          <center>
           <table border="0" cellspacing="0" cellpadding="0">
            <tr>
             <td><input type="button" style="height:20px;width:20px;" value="1"></td>
             <td><input type="button" style="height:20px;width:20px;" value="<? if (strstr($efdgxfgdqnfrm[2],'2')) { echo '2'; } ?>"></td>
             <td><input type="button" style="height:20px;width:20px;" value="<? if (strstr($efdgxfgdqnfrm[2],'3')) { echo '3'; } ?>"></td>
             <td><input type="button" style="height:20px;width:20px;" value="<? if (strstr($efdgxfgdqnfrm[2],'4')) { echo '4'; } ?>"></td>
             <td><input type="button" style="height:20px;width:20px;" value="<? if (strstr($efdgxfgdqnfrm[2],'5')) { echo '5'; } ?>"></td>
             <td><input type="button" style="height:20px;width:20px;" value="<? if (strstr($efdgxfgdqnfrm[2],'6')) { echo '6'; } ?>"></td>
             <td><input type="button" style="height:20px;width:20px;" value="<? if (strstr($efdgxfgdqnfrm[2],'7')) { echo '7'; } ?>"></td>
             <td><input type="button" style="height:20px;width:20px;" value="<? if (strstr($efdgxfgdqnfrm[2],'8')) { echo '8'; } ?>"></td>
             <td><input type="button" style="height:20px;width:20px;" value="<? if (strstr($efdgxfgdqnfrm[2],'9')) { echo '9'; } ?>"></td>
             <td><input type="button" style="height:20px;width:20px;" value="<? if (strstr($efdgxfgdqnfrm[2],'10')) { echo '10'; } ?>"></td>
            </tr>
           </table>
          </center>
         </td>
        </tr>
       </table>
      </td>
     <?
     $lnuy++;
     if ($lnuy==2)
        {
        $lnuy=0;
        echo '</tr>';
        }
     }
     ?>
   </table>
  </center><br><br>
  <center>
   <table border="0" cellspacing="0" cellpadding="0">
    <tr>
     <td><input type="submit" name="bla" value="Weiter mit Schritt 3"></td>
     <td></form></td>
    </tr>
   </table>
  </center><br><br>
  <?
  
  }
 $footer -> easy_print();
 }
  
  
if ($HTTP_GET_VARS["fu"]==3)
 {
 $header = new EasyTemplate ("$usedpfath/templates/usedheader.tpl");
 $footer = new EasyTemplate ("$usedpfath/templates/usedfooter.tpl");
 $header -> assign("TITLE","Skrupel - UsedComm Spiel erstellen Schritt 3");
 $header -> assign("URL",$usedurl);
 $header -> easy_print();

     if ($create>0)
        {
        $svyr='../daten/gala_strukturen.txt';
        $fp = @fopen("$svyr","r");
        if ($fp)
		   {
		   while (!feof ($fp))	
                 {
                 $ogssrd = @fgets($fp, 4096);
                 $efdgxfgdqnfrm=explode(':',$ogssrd);
                 if ($efdgxfgdqnfrm[1]==$HTTP_POST_VARS["struktur"])
                    {
                    $ebvryrdnmlnuyzat=trim($efdgxfgdqnfrm[2]);
                    }
                 }
           @fclose($fp);
           }
        ?>
        <script language="JavaScript" type="text/javascript">
        spielermog = new Array(0,1,
        <?
        if (strstr($ebvryrdnmlnuyzat,'2')) { echo '1';} else { echo '0';}?>,<?
        if (strstr($ebvryrdnmlnuyzat,'3')) { echo '1';} else { echo '0';}?>,<?
        if (strstr($ebvryrdnmlnuyzat,'4')) { echo '1';} else { echo '0';}?>,<?
        if (strstr($ebvryrdnmlnuyzat,'5')) { echo '1';} else { echo '0';}?>,<?
        if (strstr($ebvryrdnmlnuyzat,'6')) { echo '1';} else { echo '0';}?>,<?
        if (strstr($ebvryrdnmlnuyzat,'7')) { echo '1';} else { echo '0';}?>,<?
        if (strstr($ebvryrdnmlnuyzat,'8')) { echo '1';} else { echo '0';}?>,<?
        if (strstr($ebvryrdnmlnuyzat,'9')) { echo '1';} else { echo '0';}?>,<?
        if (strstr($ebvryrdnmlnuyzat,'10')){ echo '1';} else { echo '0';}?>);

        function check()
         {
         var spieleranzahl=0;
         if (document.formular.user_1.value != '0') {spieleranzahl++;}
         if (document.formular.user_2.value != '0') {spieleranzahl++;}
         if (document.formular.user_3.value != '0') {spieleranzahl++;}
         if (document.formular.user_4.value != '0') {spieleranzahl++;}
         if (document.formular.user_5.value != '0') {spieleranzahl++;}
         if (document.formular.user_6.value != '0') {spieleranzahl++;}
         if (document.formular.user_7.value != '0') {spieleranzahl++;}
         if (document.formular.user_8.value != '0') {spieleranzahl++;}
         if (document.formular.user_9.value != '0') {spieleranzahl++;}
         if (document.formular.user_10.value != '0'){spieleranzahl++;}
         if ((document.formular.user_1.value == '0')<? for ($n=2;$n<=10;$n++){?>&& (document.formular.user_<?=$n?>.value == '0')<?}?>)
            {
            alert("Mindestens ein Spieler muß ausgewählt werden.");
            return false;
            }

         <?
         if ($HTTP_POST_VARS["startposition"]==1)
            {?>
            if (spielermog[spieleranzahl]==0)
               {
               alert ('Für die gewählte Galaxiestruktur sind nur folgene Spielerzahlen möglich: <?=$ebvryrdnmlnuyzat?>');
               return false;
               }<?
            }
         ?>
         <?
         for ($abdf=1;$abdf<=10;$abdf++)
             { ?>
             if (document.formular.user_<?=$abdf?>.value >= '1')
                {
                var anzahle=0;<?
                for ($n=1;$n<=10;$n++)
                    { ?>
                    if (document.formular.user_<?=$n?>.value == document.formular.user_<?=$abdf?>.value)
                       {
                       anzahle++;
                       }<?
                    }?>
                if (anzahle!=1)
                   {
                   alert("Jeder Spieler kann nur einen Slot belegen.");
                   return false;
                   }
                }<?
             }
	     ?>
         <?
         if ($HTTP_POST_VARS["siegbedingungen"]==6)
            {?><?
            for ($abdf=1;$abdf<=10;$abdf++)
                { ?>
                if (document.formular.user_<?=$abdf?>.value >= '1')
                   { <?
                   for ($op=0;$op<=4;$op++)
                       { ?>
                       if (document.formular.team<?=$abdf?>[<?=$op?>].checked == true)
                          {
                          var anzahl=0;<?
                          for ($n=1;$n<=10;$n++)
                              { ?>
                              if (document.formular.team<?=$n?>[<?=$op?>].checked == true)
                                 {
                                 anzahl++;
                                 }<?
                              } ?>
                          if (anzahl!=2)
                             {
                             alert("In jedem aktivierten Team müssen genau 2 Spieler sein.");
                             return false;
                             }
                          }<?
                       } ?>
                   if ((document.formular.team<?=$abdf?>[0].checked == false) <? for ($n=1;$n<=4;$n++) { ?> && (document.formular.team<?=$abdf?>[<?=$n?>].checked == false)<? } ?>)
                      {
                      alert("Jeder Spieler muß einem Team zugeordnet werden.");
                      return false;
                      }
                   }
                   else {
                        if ((document.formular.team<?=$abdf?>[0].checked == true) <? for ($n=1;$n<=4;$n++) { ?> || (document.formular.team<?=$abdf?>[<?=$n?>].checked == true)<? } ?>)
                           {
                           alert("Unbelegte Slots können keinem Team zugeordnet werden.");
                           return false;
                           }
                        }<?
                }?><?
            }?>
         return true;
         }
        </script>
	    <body text="#ffffff" bgcolor="#444444" link="#000000" vlink="#000000" alink="#000000" leftmargin="0" rightmargin="0" topmargin="0" marginwidth="0" marginheight="0">
  		<center>
   		 <table border="0" cellspacing="0" cellpadding="4">
    	  <tr>
     	   <td style="font-size:20px; font-weight:bold; filter:DropShadow(color=black, offx=2, offy=2)">Neues Spiel erstellen</td>
    	  </tr>
   		 </table>
  	    </center>
        <form name="formular" method="post" action="spiel_alpha.php?fu=4" onSubmit="return check();">
        <input type="hidden" name="spiel_name" value="<?=$HTTP_POST_VARS["spiel_name"]?>">
        <input type="hidden" name="siegbedingungen" value="<?=$HTTP_POST_VARS["siegbedingungen"]?>">
        <input type="hidden" name="zielinfo_1" value="<?=$HTTP_POST_VARS["zielinfo_1"]?>">
        <input type="hidden" name="zielinfo_2" value="<?=$HTTP_POST_VARS["zielinfo_2"]?>">
        <input type="hidden" name="zielinfo_3" value="<?=$HTTP_POST_VARS["zielinfo_3"]?>">
        <input type="hidden" name="zielinfo_4" value="<?=$HTTP_POST_VARS["zielinfo_4"]?>">
        <input type="hidden" name="zielinfo_5" value="<?=$HTTP_POST_VARS["zielinfo_5"]?>">
        <input type="hidden" name="struktur" value="<?=$HTTP_POST_VARS["struktur"]?>">
        <input type="hidden" name="startposition" value="<?=$HTTP_POST_VARS["startposition"]?>">
        <input type="hidden" name="imperiumgroesse" value="<?=$HTTP_POST_VARS["imperiumgroesse"]?>">
        <input type="hidden" name="modul_0" value="<?=$HTTP_POST_VARS["modul_0"]?>">
        <input type="hidden" name="modul_2" value="<?=$HTTP_POST_VARS["modul_2"]?>">
        <center>
         <table border="0" cellspacing="0" cellpadding="2">
         <?
         $hrdlrvpumve="../daten/";
         $unmqyr=opendir("$hrdlrvpumve");
         $lnruyrd=0;
         while ($svyr=readdir($unmqyr))
               {
               if ((substr($svyr,0,1)<>'.') and (substr($svyr,0,7)<>'bilder_') and (substr($svyr,strlen($svyr)-4,4)<>'.txt'))
                  {
                  if (trim($svyr)=='unknown')
                     {
                     }
                     else {
                          $qnfrv='../daten/'.$svyr.'/daten.txt';
                          $fp = @fopen("$qnfrv","r");
                          if ($fp)
                             {
                             $lnruyrd6=0;
                             while (!feof ($fp))
                                   {
                                   $ogssrd = @fgets($fp, 4096);
                                   $qnfrm[$lnruyrd][$lnruyrd6]=$ogssrd;
                                   $lnruyrd6++;
                                   }
                             @fclose($fp);
                             }
                          $svyrmnzr[$lnruyrd]=$svyr;$lnruyrd++;
                          }
                  }
               }
         closedir($unmqyr);
         $lrvtrd = @mysql_query("SELECT * FROM $skrupel_user order by nick");
         $gerdnmlnuy = @mysql_num_rows($lrvtrd);
         ?>
          <tr>
           <td>Wer spielt mit und mit welchem Volk?</td>
          </tr>
          <tr>
           <td>
            <table border="0" cellspacing="0" cellpadding="1">
             <tr>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td style="color:#aaaaaa;">Administrator?</td>
              <?
              if ($HTTP_POST_VARS["siegbedingungen"]==6)
                 {?>
                 <td>&nbsp;&nbsp;</td>
                 <td>Teams:</td>
                 <td>&nbsp;</td>
                 <td style="color:#aaaaaa;"><center>I</center></td>
                 <td>&nbsp;</td>
                 <td style="color:#aaaaaa;"><center>II</center></td>
                 <td>&nbsp;</td>
                 <td style="color:#aaaaaa;"><center>III</center></td>
                 <td>&nbsp;</td>
                 <td style="color:#aaaaaa;"><center>IV</center></td>
                 <td>&nbsp;</td>
                 <td style="color:#aaaaaa;"><center>V</center></td>
                 <td>&nbsp;</td>
                 <td>&nbsp;</td>
                 <?
                 }?>
             </tr>
             <?
             ?>
			 <tr>
              <td style="color:<?=$spielerfarbe[1]?>;"><?
			  if ($skrupel_admin==1)
			     {
			     $zeiger = @mysql_query("SELECT * FROM $skrupel_user order by nick");
                 $useranzahl = @mysql_num_rows($zeiger);?>
                 <select name="user_1">
                  <? for ($n=0;$n<$useranzahl;$n++)
				         {
                         $ok = @mysql_data_seek($zeiger,$n);
                         $array = @mysql_fetch_array($zeiger);
                         $uid=$array["id"];
                         $nick=$array["nick"];
                         ?>
                         <option value="<?=$uid?>" style="background-color:<?=$spielerfarbe[$k]?>;"><?=$nick?></option><?
				         }?>
				 </select><?
				 }
				 else {?>
                      <select name="user_1">
                      <option value="<?=$login_userid?>" style="background-color:<?=$spielerfarbe[1]?>;"><?=$sfbyatvmmnzr?></option>
			          </select><?
			          }?>
              </td>
              <td>&nbsp;</td>
              <td><select name="rasse_1"><?
			  for ($n=0;$n<$lnruyrd;$n++)
                  {?>
                  <option value="<?=$svyrmnzr[$n]?>" style="background-color:<?=$spielerfarbe[1]?>;"><?=$qnfrm[$n][0]?></option><?
                  }?>
                  </select></td>
              <td>&nbsp;</td>
 		      <td><input type="radio" name="spieler_admin" value="1" checked></td><?

              if ($HTTP_POST_VARS["siegbedingungen"]==6)
                 { ?>
                 <td>&nbsp;</td>
                 <td>&nbsp;</td>
                 <td>&nbsp;</td>
                 <td><center><input type="radio" name="team1" value="1"></center></td>
                 <td>&nbsp;</td>
                 <td><center><input type="radio" name="team2" value="2"></center></td>
                 <td>&nbsp;</td>
                 <td><center><input type="radio" name="team3" value="3"></center></td>
                 <td>&nbsp;</td>
                 <td><center><input type="radio" name="team4" value="4"></center></td>
                 <td>&nbsp;</td>
                 <td><center><input type="radio" name="team5" value="5"></center></td>
                 <td>&nbsp;</td>
                 <td><center><input type="radio" name="team0" value="0" checked></center></td><?
                 }?>
             </tr><?


             for ($k=2;$k<11;$k++)
                 {?>
                 <tr>
                  <td style="color:<?=$spielerfarbe[$k]?>;">
                   <select name="user_<?=$k?>">
                    <option value="0" style="background-color:<?=$spielerfarbe[$k]?>;">Slot bleibt leer</option>
                    <?
                    for ($n=2;$n<11;$n++)
                        {?>
                        <option value="warte<?=$n?>" style="background-color:<?=$spielerfarbe[$k]?>;">wartet auf Spieler <?=$n?></option><?
                        }?>
                   </select>
               </td>
               <td>&nbsp;</td>
               <td><select name="rasse_<?=$k?>">
                   <option value="warte<?=$k?>" style="background-color:<?=$spielerfarbe[$k]?>;">wählbar durch Spieler</option>
               <? for ($n=0;$n<$lnruyrd;$n++)
                      {?>
                      <option value="<?=$svyrmnzr[$n]?>" style="background-color:<?=$spielerfarbe[$k]?>;"><?=$qnfrm[$n][0]?></option><?
                      }?>
               </select></td>
               <td>&nbsp;</td>
               <td>&nbsp;</td>
               <?
               if ($HTTP_POST_VARS["siegbedingungen"]==6)
                  { ?>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                  <td><center><input type="radio" name="team<?=$k?>" value="1"></center></td>
                  <td>&nbsp;</td>
                  <td><center><input type="radio" name="team<?=$k?>" value="2"></center></td>
                  <td>&nbsp;</td>
                  <td><center><input type="radio" name="team<?=$k?>" value="3"></center></td>
                  <td>&nbsp;</td>
                  <td><center><input type="radio" name="team<?=$k?>" value="4"></center></td>
                  <td>&nbsp;</td>
                  <td><center><input type="radio" name="team<?=$k?>" value="5"></center></td>
                  <td>&nbsp;</td>
                  <td><center><input type="radio" name="team<?=$k?>" value="0" checked></center></td><?
                  }?>
             </tr><?
              } ?>
             <tr>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
             </tr>
            </table>
           </center><br>
           <center>
            <table border="0" cellspacing="0" cellpadding="0">
             <tr>
              <td><input type="submit" name="bla" value="Weiter mit Schritt 5"></td>
              <td></form></td>
             </tr>
            </table>
           </center><?
        }
     $footer -> easy_print();
     }
   
   
if ($HTTP_GET_VARS["fu"]==2)
 {
 $header = new EasyTemplate ("$usedpfath/templates/usedheader.tpl");
 $footer = new EasyTemplate ("$usedpfath/templates/usedfooter.tpl");
 $header -> assign("TITLE","Skrupel - UsedComm Spiel erstellen Schritt 4");
 $header -> assign("URL",$usedurl);
 $header -> easy_print();

     ?>
     <body text="#ffffff" bgcolor="#444444" link="#000000" vlink="#000000" alink="#000000" leftmargin="0" rightmargin="0" topmargin="0" marginwidth="0" marginheight="0">
     <center>
      <table border="0" cellspacing="0" cellpadding="4">
       <tr>
        <td style="font-size:20px; font-weight:bold; filter:DropShadow(color=black, offx=2, offy=2)">Neues Spiel erstellen</td>
       </tr>
      </table>
     </center>
     <form name="formular" method="post" action="spiel_alpha.php?fu=3">
     <input type="hidden" name="spiel_name" value="<?=$HTTP_POST_VARS["spiel_name"]?>">
     <input type="hidden" name="siegbedingungen" value="<?=$HTTP_POST_VARS["siegbedingungen"]?>">
     <input type="hidden" name="zielinfo_1" value="<?=$HTTP_POST_VARS["zielinfo_1"]?>">
     <input type="hidden" name="zielinfo_2" value="<?=$HTTP_POST_VARS["zielinfo_2"]?>">
     <input type="hidden" name="zielinfo_3" value="<?=$HTTP_POST_VARS["zielinfo_3"]?>">
     <input type="hidden" name="zielinfo_4" value="<?=$HTTP_POST_VARS["zielinfo_4"]?>">
     <input type="hidden" name="zielinfo_5" value="<?=$HTTP_POST_VARS["zielinfo_5"]?>">
     <input type="hidden" name="struktur" value="<?=$HTTP_POST_VARS["struktur"]?>">
     <input type="hidden" name="modul_0" value="<?=$HTTP_POST_VARS["modul_0"]?>">
     <input type="hidden" name="modul_2" value="<?=$HTTP_POST_VARS["modul_2"]?>">
     <center>
      <table border="0" cellspacing="0" cellpadding="2">
       <tr>
        <td>Wie sind die Startpositionen verteilt?</td>
       </tr>
       <tr>
        <td>&nbsp;</td>
       </tr>
       <tr>
        <td>
         <table border="0" cellspacing="0" cellpadding="0">
          <tr>
           <td><input type="radio" name="startposition" value="1" checked></td>
           <td>&nbsp;</td>
           <td style="color:#aaaaaa;">Vorgegebene Startpositionen</td>
          </tr>
          <tr>
           <td><input type="radio" name="startposition" value="2"></td>
           <td>&nbsp;</td>
           <td style="color:#aaaaaa;">Absolut zufällige Verteilung (ermöglicht absolut freie Mitspieleranzahl)</td>
          </tr>
         </table>
        </td>
       </tr>
       <tr>
        <td>&nbsp;</td>
       </tr>
       <tr>
        <td>Welchen Umfang haben die Imperien zu Spielbeginn?</td>
       </tr>
       <tr>
        <td>&nbsp;</td>
       </tr>
       <tr>
        <td>
         <table border="0" cellspacing="0" cellpadding="0"><? ?>
          <tr>
           <td><input type="radio" name="imperiumgroesse" value="2" checked></td>
           <td>&nbsp;</td>
           <td style="color:#aaaaaa;">Ein Planet samt Sternenbasis</td>
          </tr> <? ?>
          <tr>
           <td><input type="radio" name="imperiumgroesse" value="4"></td>
           <td>&nbsp;</td>
           <td style="color:#aaaaaa;">Ein Planet</td>
          </tr> <? ?>
         </table>
        </td>
       </tr>
      </table>
     </center><br><br>
     <center>
      <table border="0" cellspacing="0" cellpadding="0">
       <tr>
        <td><input type="submit" name="bla" value="Weiter mit Schritt 4"></td>
        <td></form></td>
       </tr>
      </table>
     </center>
     <?
     
     $footer -> easy_print();
  }
  
  
if ($HTTP_GET_VARS["fu"]==4)
 {
 $header = new EasyTemplate ("$usedpfath/templates/usedheader.tpl");
 $footer = new EasyTemplate ("$usedpfath/templates/usedfooter.tpl");
 $header -> assign("TITLE","Skrupel - UsedComm Spiel erstellen Schritt 5");
 $header -> assign("URL",$usedurl);
 $header -> easy_print();

     ?>
     <body text="#ffffff" bgcolor="#444444" link="#000000" vlink="#000000" alink="#000000" leftmargin="0" rightmargin="0" topmargin="0" marginwidth="0" marginheight="0">
     <center>
      <table border="0" cellspacing="0" cellpadding="4">
       <tr>
        <td style="font-size:20px; font-weight:bold; filter:DropShadow(color=black, offx=2, offy=2)">Neues Spiel erstellen</td>
       </tr>
      </table>
     </center>
     <form name="formular" method="post" action="spiel_alpha.php?fu=5">
     <input type="hidden" name="spiel_name" value="<?=$HTTP_POST_VARS["spiel_name"]?>">
     <input type="hidden" name="siegbedingungen" value="<?=$HTTP_POST_VARS["siegbedingungen"]?>">
     <input type="hidden" name="zielinfo_1" value="<?=$HTTP_POST_VARS["zielinfo_1"]?>">
     <input type="hidden" name="zielinfo_2" value="<?=$HTTP_POST_VARS["zielinfo_2"]?>">
     <input type="hidden" name="zielinfo_3" value="<?=$HTTP_POST_VARS["zielinfo_3"]?>">
     <input type="hidden" name="zielinfo_4" value="<?=$HTTP_POST_VARS["zielinfo_4"]?>">
     <input type="hidden" name="zielinfo_5" value="<?=$HTTP_POST_VARS["zielinfo_5"]?>">
     <input type="hidden" name="user_1" value="<?=$HTTP_POST_VARS["user_1"]?>">
     <input type="hidden" name="user_2" value="<?=$HTTP_POST_VARS["user_2"]?>">
     <input type="hidden" name="user_3" value="<?=$HTTP_POST_VARS["user_3"]?>">
     <input type="hidden" name="user_4" value="<?=$HTTP_POST_VARS["user_4"]?>">
     <input type="hidden" name="user_5" value="<?=$HTTP_POST_VARS["user_5"]?>">
     <input type="hidden" name="user_6" value="<?=$HTTP_POST_VARS["user_6"]?>">
     <input type="hidden" name="user_7" value="<?=$HTTP_POST_VARS["user_7"]?>">
     <input type="hidden" name="user_8" value="<?=$HTTP_POST_VARS["user_8"]?>">
     <input type="hidden" name="user_9" value="<?=$HTTP_POST_VARS["user_9"]?>">
     <input type="hidden" name="user_10" value="<?=$HTTP_POST_VARS["user_10"]?>">
     <input type="hidden" name="rasse_1" value="<?=$HTTP_POST_VARS["rasse_1"]?>">
     <input type="hidden" name="rasse_2" value="<?=$HTTP_POST_VARS["rasse_2"]?>">
     <input type="hidden" name="rasse_3" value="<?=$HTTP_POST_VARS["rasse_3"]?>">
     <input type="hidden" name="rasse_4" value="<?=$HTTP_POST_VARS["rasse_4"]?>">
     <input type="hidden" name="rasse_5" value="<?=$HTTP_POST_VARS["rasse_5"]?>">
     <input type="hidden" name="rasse_6" value="<?=$HTTP_POST_VARS["rasse_6"]?>">
     <input type="hidden" name="rasse_7" value="<?=$HTTP_POST_VARS["rasse_7"]?>">
     <input type="hidden" name="rasse_8" value="<?=$HTTP_POST_VARS["rasse_8"]?>">
     <input type="hidden" name="rasse_9" value="<?=$HTTP_POST_VARS["rasse_9"]?>">
     <input type="hidden" name="rasse_10" value="<?=$HTTP_POST_VARS["rasse_10"]?>">
     <input type="hidden" name="spieler_admin" value="<?=$HTTP_POST_VARS["spieler_admin"]?>">
     <input type="hidden" name="startposition" value="<?=$HTTP_POST_VARS["startposition"]?>">
     <input type="hidden" name="imperiumgroesse" value="<?=$HTTP_POST_VARS["imperiumgroesse"]?>">
     <input type="hidden" name="struktur" value="<?=$HTTP_POST_VARS["struktur"]?>">
     <input type="hidden" name="modul_0" value="<?=$HTTP_POST_VARS["modul_0"]?>">
     <input type="hidden" name="modul_2" value="<?=$HTTP_POST_VARS["modul_2"]?>"><?
     if ($HTTP_POST_VARS["siegbedingungen"]==6)
        { ?>
        <input type="hidden" name="team1" value="<?=$HTTP_POST_VARS["team1"]?>">
        <input type="hidden" name="team2" value="<?=$HTTP_POST_VARS["team2"]?>">
        <input type="hidden" name="team3" value="<?=$HTTP_POST_VARS["team3"]?>">
        <input type="hidden" name="team4" value="<?=$HTTP_POST_VARS["team4"]?>">
        <input type="hidden" name="team5" value="<?=$HTTP_POST_VARS["team5"]?>">
        <input type="hidden" name="team6" value="<?=$HTTP_POST_VARS["team6"]?>">
        <input type="hidden" name="team7" value="<?=$HTTP_POST_VARS["team7"]?>">
        <input type="hidden" name="team8" value="<?=$HTTP_POST_VARS["team8"]?>">
        <input type="hidden" name="team9" value="<?=$HTTP_POST_VARS["team9"]?>">
        <input type="hidden" name="team10" value="<?=$HTTP_POST_VARS["team10"]?>"><?
        } ?>
     <center>
      <table border="0" cellspacing="0" cellpadding="2">
       <tr>
        <td>Über welche Geldmittel (Cantox) verfügen die Spieler?</td>
       </tr>
       <tr>
        <td>&nbsp;</td>
       </tr>
       <tr>
        <td>
         <table border="0" cellspacing="0" cellpadding="0">
          <tr>
           <td><input type="radio" name="geldmittel" value="15000"></td>
           <td>&nbsp;</td>
           <td style="color:#aaaaaa;">Extrem Reich (15000 Cx)</td>
          </tr>
          <tr>
           <td><input type="radio" name="geldmittel" value="5000"></td>
           <td>&nbsp;</td>
           <td style="color:#aaaaaa;">Sehr hohes Einkommen (5000 Cx)</td>
          </tr>
          <tr>
           <td><input type="radio" name="geldmittel" value="3500" checked></td>
           <td>&nbsp;</td>
           <td style="color:#aaaaaa;">Mittelmässiges Startkapital (3500 Cx)</td>
          </tr>
          <tr>
           <td><input type="radio" name="geldmittel" value="1000"></td>
           <td>&nbsp;</td>
           <td style="color:#aaaaaa;">Arme Schlucker (1000 Cx)</td>
          </tr>
         </table>
        </td>
       </tr>
       <tr>
        <td>&nbsp;</td>
       </tr>
       <tr>
        <td>Wie groß sind die Mineralvorkommen der Heimatplaneten? (falls vorhanden)</td>
       </tr>
       <tr>
        <td>&nbsp;</td>
       </tr>
       <tr>
        <td>
         <table border="0" cellspacing="0" cellpadding="0">
          <tr>
           <td><input type="radio" name="mineralienhome" value="1"></td>
           <td>&nbsp;</td>
           <td style="color:#aaaaaa;">Extrem (2000-3000 Kilotonnen pro Mineral pro Planet)</td>
          </tr>
          <tr>
           <td><input type="radio" name="mineralienhome" value="2" checked></td><td>&nbsp;</td>
           <td style="color:#aaaaaa;">Hoch (1500-2500 Kilotonnen pro Mineral pro Planet)</td>
          </tr>
          <tr>
           <td><input type="radio" name="mineralienhome" value="3"></td>
           <td>&nbsp;</td>
           <td style="color:#aaaaaa;">Mittel (1000-2000 Kilotonnen pro Mineral pro Planet</td>
          </tr>
          <tr>
           <td><input type="radio" name="mineralienhome" value="4"></td>
           <td>&nbsp;</td><td style="color:#aaaaaa;">Gering (500-1000 Kilotonnen pro Mineral pro Planet</td>
          </tr>
         </table>
        </td>
       </tr>
       <tr>
        <td>&nbsp;</td>
       </tr>
      </table>
     </center>
     <center>
     <table border="0" cellspacing="0" cellpadding="0"><tr><td><input type="submit" name="bla" value="Weiter mit Schritt 6"></td>
     <td></form></td>
    </tr>
   </table>
  </center>
  <?
  $footer -> easy_print();
  }
  
if ($HTTP_GET_VARS["fu"]==5)
 {
 $header = new EasyTemplate ("$usedpfath/templates/usedheader.tpl");
 $footer = new EasyTemplate ("$usedpfath/templates/usedfooter.tpl");
 $header -> assign("TITLE","Skrupel - UsedComm Spiel erstellen Schritt 6");
 $header -> assign("URL",$usedurl);
 $header -> easy_print();

     ?>
     <body text="#ffffff" bgcolor="#444444" link="#000000" vlink="#000000" alink="#000000" leftmargin="0" rightmargin="0" topmargin="0" marginwidth="0" marginheight="0">
     <center>
      <table border="0" cellspacing="0" cellpadding="4">
       <tr>
        <td style="font-size:20px; font-weight:bold; filter:DropShadow(color=black, offx=2, offy=2)">Neues Spiel erstellen</td>
       </tr>
      </table>
     </center>
     <form name="formular" method="post" action="spiel_alpha.php?fu=6">
     <input type="hidden" name="spiel_name" value="<?=$HTTP_POST_VARS["spiel_name"]?>">
     <input type="hidden" name="siegbedingungen" value="<?=$HTTP_POST_VARS["siegbedingungen"]?>">
     <input type="hidden" name="zielinfo_1" value="<?=$HTTP_POST_VARS["zielinfo_1"]?>">
     <input type="hidden" name="zielinfo_2" value="<?=$HTTP_POST_VARS["zielinfo_2"]?>">
     <input type="hidden" name="zielinfo_3" value="<?=$HTTP_POST_VARS["zielinfo_3"]?>">
     <input type="hidden" name="zielinfo_4" value="<?=$HTTP_POST_VARS["zielinfo_4"]?>">
     <input type="hidden" name="zielinfo_5" value="<?=$HTTP_POST_VARS["zielinfo_5"]?>">
     <input type="hidden" name="user_1" value="<?=$HTTP_POST_VARS["user_1"]?>">
     <input type="hidden" name="user_2" value="<?=$HTTP_POST_VARS["user_2"]?>">
     <input type="hidden" name="user_3" value="<?=$HTTP_POST_VARS["user_3"]?>">
     <input type="hidden" name="user_4" value="<?=$HTTP_POST_VARS["user_4"]?>">
     <input type="hidden" name="user_5" value="<?=$HTTP_POST_VARS["user_5"]?>">
     <input type="hidden" name="user_6" value="<?=$HTTP_POST_VARS["user_6"]?>">
     <input type="hidden" name="user_7" value="<?=$HTTP_POST_VARS["user_7"]?>">
     <input type="hidden" name="user_8" value="<?=$HTTP_POST_VARS["user_8"]?>">
     <input type="hidden" name="user_9" value="<?=$HTTP_POST_VARS["user_9"]?>">
     <input type="hidden" name="user_10" value="<?=$HTTP_POST_VARS["user_10"]?>">
     <input type="hidden" name="rasse_1" value="<?=$HTTP_POST_VARS["rasse_1"]?>">
     <input type="hidden" name="rasse_2" value="<?=$HTTP_POST_VARS["rasse_2"]?>">
     <input type="hidden" name="rasse_3" value="<?=$HTTP_POST_VARS["rasse_3"]?>">
     <input type="hidden" name="rasse_4" value="<?=$HTTP_POST_VARS["rasse_4"]?>">
     <input type="hidden" name="rasse_5" value="<?=$HTTP_POST_VARS["rasse_5"]?>">
     <input type="hidden" name="rasse_6" value="<?=$HTTP_POST_VARS["rasse_6"]?>">
     <input type="hidden" name="rasse_7" value="<?=$HTTP_POST_VARS["rasse_7"]?>">
     <input type="hidden" name="rasse_8" value="<?=$HTTP_POST_VARS["rasse_8"]?>">
     <input type="hidden" name="rasse_9" value="<?=$HTTP_POST_VARS["rasse_9"]?>">
     <input type="hidden" name="rasse_10" value="<?=$HTTP_POST_VARS["rasse_10"]?>">
     <input type="hidden" name="spieler_admin" value="<?=$HTTP_POST_VARS["spieler_admin"]?>">
     <input type="hidden" name="startposition" value="<?=$HTTP_POST_VARS["startposition"]?>">
     <input type="hidden" name="imperiumgroesse" value="<?=$HTTP_POST_VARS["imperiumgroesse"]?>">
     <input type="hidden" name="geldmittel" value="<?=$HTTP_POST_VARS["geldmittel"]?>">
     <input type="hidden" name="mineralienhome" value="<?=$HTTP_POST_VARS["mineralienhome"]?>">
     <input type="hidden" name="struktur" value="<?=$HTTP_POST_VARS["struktur"]?>">
     <input type="hidden" name="modul_0" value="<?=$HTTP_POST_VARS["modul_0"]?>">
     <input type="hidden" name="modul_2" value="<?=$HTTP_POST_VARS["modul_2"]?>">
     <?
     if ($HTTP_POST_VARS["siegbedingungen"]==6)
        { ?>
        <input type="hidden" name="team1" value="<?=$HTTP_POST_VARS["team1"]?>">
        <input type="hidden" name="team2" value="<?=$HTTP_POST_VARS["team2"]?>">
        <input type="hidden" name="team3" value="<?=$HTTP_POST_VARS["team3"]?>">
        <input type="hidden" name="team4" value="<?=$HTTP_POST_VARS["team4"]?>">
        <input type="hidden" name="team5" value="<?=$HTTP_POST_VARS["team5"]?>">
        <input type="hidden" name="team6" value="<?=$HTTP_POST_VARS["team6"]?>">
        <input type="hidden" name="team7" value="<?=$HTTP_POST_VARS["team7"]?>">
        <input type="hidden" name="team8" value="<?=$HTTP_POST_VARS["team8"]?>">
        <input type="hidden" name="team9" value="<?=$HTTP_POST_VARS["team9"]?>">
        <input type="hidden" name="team10" value="<?=$HTTP_POST_VARS["team10"]?>">
        <?
        }?>
     <center>
     <table border="0" cellspacing="0" cellpadding="2">
      <tr>
       <td>Welchen Umfang hat die Galaxie und über welche Planetendichte verfügt sie?</td>
      </tr>
      <tr>
       <td>&nbsp;</td>
      </tr>
      <tr>
       <td>
        <table border="0" cellspacing="0" cellpadding="0">
         <tr>
          <td><input type="radio" name="umfang" value="1000"></td>
          <td>&nbsp;</td>
          <td style="color:#aaaaaa;">1000x1000 Lichtjahre</td>
          <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
          <td><input type="radio" name="umfang" value="3000"></td>
          <td>&nbsp;</td><td style="color:#aaaaaa;">3000x3000 Lichtjahre</td>
          <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
          <td><input type="radio" name="sternendichte" value="400" checked></td>
          <td>&nbsp;</td><td style="color:#aaaaaa;">Massive Dichte (max 400 Planeten)</td>
         </tr>
         <tr>
          <td><input type="radio" name="umfang" value="1500"></td>
          <td>&nbsp;</td>
          <td style="color:#aaaaaa;">1500x1500 Lichtjahre</td>
          <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
          <td><input type="radio" name="umfang" value="3500"></td>
          <td>&nbsp;</td>
          <td style="color:#aaaaaa;">3500x3500 Lichtjahre</td>
          <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
          <td><input type="radio" name="sternendichte" value="300"></td>
          <td>&nbsp;</td>
          <td style="color:#aaaaaa;">Hoche Dichte (max 300 Planeten)</td>
         </tr>
         <tr>
          <td><input type="radio" name="umfang" value="2000"></td>
          <td>&nbsp;</td>
          <td style="color:#aaaaaa;">2000x2000 Lichtjahre</td>
          <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
          <td><input type="radio" name="umfang" value="4000"></td>
          <td>&nbsp;</td>
          <td style="color:#aaaaaa;">4000x4000 Lichtjahre</td>
          <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
          <td><input type="radio" name="sternendichte" value="200"></td>
          <td>&nbsp;</td><td style="color:#aaaaaa;">Mittlere Dichte (max 200 Planeten)</td>
         </tr>
         <tr>
          <td><input type="radio" name="umfang" value="2500" checked></td>
          <td>&nbsp;</td>
          <td style="color:#aaaaaa;">2500x2500 Lichtjahre</td>
          <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
          <td><input type="radio" name="umfang" value="4500"></td>
          <td>&nbsp;</td>
          <td style="color:#aaaaaa;">4500x4500 Lichtjahre</td>
          <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
          <td><input type="radio" name="sternendichte" value="100"></td>
          <td>&nbsp;</td>
          <td style="color:#aaaaaa;">Geringe Dichte (max 100 Planeten)</td>
         </tr>
        </table>
       </td>
      </tr>
      <tr>
       <td>&nbsp;</td>
      </tr>
      <tr>
       <td>Wie groß sind die Mineralvorkommen der Planeten? (betrifft nicht die Heimatplaneten)</td>
      </tr>
      <tr>
       <td>&nbsp;</td>
      </tr>
      <tr>
       <td>
        <table border="0" cellspacing="0" cellpadding="0">
         <tr>
          <td><input type="radio" name="mineralien" value="1"></td>
          <td>&nbsp;</td>
          <td style="color:#aaaaaa;">Extrem (1000-7000 Kilotonnen pro Planet)</td>
          <td>&nbsp;&nbsp;</td>
          <td><input type="radio" name="leminvorkommen" value="3"></td>
          <td>&nbsp;</td>
          <td style="color:#aaaaaa;">stark erhöhte Leminvorkommen (+ 50-100%)</td>
         </tr>
         <tr>
          <td><input type="radio" name="mineralien" value="2"></td>
          <td>&nbsp;</td>
          <td style="color:#aaaaaa;">Hoch (800-5000 Kilotonnen pro Planet)</td>
          <td>&nbsp;&nbsp;</td>
          <td><input type="radio" name="leminvorkommen" value="2" checked></td>
          <td>&nbsp;</td>
          <td style="color:#aaaaaa;">erhöhte Leminvorkommen (+ 25-50%)</td>
         </tr>
         <tr>
          <td><input type="radio" name="mineralien" value="3" checked></td>
          <td>&nbsp;</td>
          <td style="color:#aaaaaa;">Mittel (500-3500 Kilotonnen pro Planet)</td>
          <td>&nbsp;&nbsp;</td>
          <td><input type="radio" name="leminvorkommen" value="1"></td>
          <td>&nbsp;</td>
          <td style="color:#aaaaaa;">normale Leminvorkommen</td>
         </tr>
         <tr>
          <td><input type="radio" name="mineralien" value="4"></td>
          <td>&nbsp;</td><td style="color:#aaaaaa;">Gering (200-1500 Kilotonnen pro Planet)</td>
          <td></td>
          <td></td>
          <td></td>
          <td></td>
         </tr>
        </table>
       </td>
      </tr>
      <tr>
       <td>&nbsp;</td>
      </tr>
     </table>
    </center>
    <center>
     <table border="0" cellspacing="0" cellpadding="0">
      <tr>
       <td><input type="submit" name="bla" value="Weiter mit Schritt 7"></td>
       <td></form></td>
      </tr>
     </table>
    </center>
  
  <?
  $footer -> easy_print();
  }
  
if ($HTTP_GET_VARS["fu"]==6)
 {
 $header = new EasyTemplate ("$usedpfath/templates/usedheader.tpl");
 $footer = new EasyTemplate ("$usedpfath/templates/usedfooter.tpl");
 $header -> assign("TITLE","Skrupel - UsedComm Spiel erstellen Schritt 7");
 $header -> assign("URL",$usedurl);
 $header -> easy_print();
 ?>
     
  <body text="#ffffff" bgcolor="#444444" link="#000000" vlink="#000000" alink="#000000" leftmargin="0" rightmargin="0" topmargin="0" marginwidth="0" marginheight="0">
  <center>
   <table border="0" cellspacing="0" cellpadding="4">
    <tr>
     <td style="font-size:20px; font-weight:bold; filter:DropShadow(color=black, offx=2, offy=2)">Neues Spiel erstellen</td>
    </tr>
   </table>
  </center>
  <form name="formular" method="post" action="spiel_alpha.php?fu=7">
  <input type="hidden" name="spiel_name" value="<?=$HTTP_POST_VARS["spiel_name"]?>">
  <input type="hidden" name="siegbedingungen" value="<?=$HTTP_POST_VARS["siegbedingungen"]?>">
  <input type="hidden" name="zielinfo_1" value="<?=$HTTP_POST_VARS["zielinfo_1"]?>">
  <input type="hidden" name="zielinfo_2" value="<?=$HTTP_POST_VARS["zielinfo_2"]?>">
  <input type="hidden" name="zielinfo_3" value="<?=$HTTP_POST_VARS["zielinfo_3"]?>">
  <input type="hidden" name="zielinfo_4" value="<?=$HTTP_POST_VARS["zielinfo_4"]?>">
  <input type="hidden" name="zielinfo_5" value="<?=$HTTP_POST_VARS["zielinfo_5"]?>">
  <input type="hidden" name="user_1" value="<?=$HTTP_POST_VARS["user_1"]?>">
  <input type="hidden" name="user_2" value="<?=$HTTP_POST_VARS["user_2"]?>">
  <input type="hidden" name="user_3" value="<?=$HTTP_POST_VARS["user_3"]?>">
  <input type="hidden" name="user_4" value="<?=$HTTP_POST_VARS["user_4"]?>">
  <input type="hidden" name="user_5" value="<?=$HTTP_POST_VARS["user_5"]?>">
  <input type="hidden" name="user_6" value="<?=$HTTP_POST_VARS["user_6"]?>">
  <input type="hidden" name="user_7" value="<?=$HTTP_POST_VARS["user_7"]?>">
  <input type="hidden" name="user_8" value="<?=$HTTP_POST_VARS["user_8"]?>">
  <input type="hidden" name="user_9" value="<?=$HTTP_POST_VARS["user_9"]?>">
  <input type="hidden" name="user_10" value="<?=$HTTP_POST_VARS["user_10"]?>">
  <input type="hidden" name="rasse_1" value="<?=$HTTP_POST_VARS["rasse_1"]?>">
  <input type="hidden" name="rasse_2" value="<?=$HTTP_POST_VARS["rasse_2"]?>">
  <input type="hidden" name="rasse_3" value="<?=$HTTP_POST_VARS["rasse_3"]?>">
  <input type="hidden" name="rasse_4" value="<?=$HTTP_POST_VARS["rasse_4"]?>">
  <input type="hidden" name="rasse_5" value="<?=$HTTP_POST_VARS["rasse_5"]?>">
  <input type="hidden" name="rasse_6" value="<?=$HTTP_POST_VARS["rasse_6"]?>">
  <input type="hidden" name="rasse_7" value="<?=$HTTP_POST_VARS["rasse_7"]?>">
  <input type="hidden" name="rasse_8" value="<?=$HTTP_POST_VARS["rasse_8"]?>">
  <input type="hidden" name="rasse_9" value="<?=$HTTP_POST_VARS["rasse_9"]?>">
  <input type="hidden" name="rasse_10" value="<?=$HTTP_POST_VARS["rasse_10"]?>">
  <input type="hidden" name="spieler_admin" value="<?=$HTTP_POST_VARS["spieler_admin"]?>">
  <input type="hidden" name="startposition" value="<?=$HTTP_POST_VARS["startposition"]?>">
  <input type="hidden" name="imperiumgroesse" value="<?=$HTTP_POST_VARS["imperiumgroesse"]?>">
  <input type="hidden" name="geldmittel" value="<?=$HTTP_POST_VARS["geldmittel"]?>">
  <input type="hidden" name="mineralienhome" value="<?=$HTTP_POST_VARS["mineralienhome"]?>">
  <input type="hidden" name="sternendichte" value="<?=$HTTP_POST_VARS["sternendichte"]?>">
  <input type="hidden" name="mineralien" value="<?=$HTTP_POST_VARS["mineralien"]?>">
  <input type="hidden" name="leminvorkommen" value="<?=$HTTP_POST_VARS["leminvorkommen"]?>">
  <input type="hidden" name="umfang" value="<?=$HTTP_POST_VARS["umfang"]?>">
  <input type="hidden" name="struktur" value="<?=$HTTP_POST_VARS["struktur"]?>">
  <input type="hidden" name="modul_0" value="<?=$HTTP_POST_VARS["modul_0"]?>">
  <input type="hidden" name="modul_2" value="<?=$HTTP_POST_VARS["modul_2"]?>">
  <?
  if ($HTTP_POST_VARS["siegbedingungen"]==6)
     {?>
     <input type="hidden" name="team1" value="<?=$HTTP_POST_VARS["team1"]?>">
     <input type="hidden" name="team2" value="<?=$HTTP_POST_VARS["team2"]?>">
     <input type="hidden" name="team3" value="<?=$HTTP_POST_VARS["team3"]?>">
     <input type="hidden" name="team4" value="<?=$HTTP_POST_VARS["team4"]?>">
     <input type="hidden" name="team5" value="<?=$HTTP_POST_VARS["team5"]?>">
     <input type="hidden" name="team6" value="<?=$HTTP_POST_VARS["team6"]?>">
     <input type="hidden" name="team7" value="<?=$HTTP_POST_VARS["team7"]?>">
     <input type="hidden" name="team8" value="<?=$HTTP_POST_VARS["team8"]?>">
     <input type="hidden" name="team9" value="<?=$HTTP_POST_VARS["team9"]?>">
     <input type="hidden" name="team10" value="<?=$HTTP_POST_VARS["team10"]?>"><?
     }?>
  <center>
   <table border="0" cellspacing="0" cellpadding="2">
    <tr>
     <td>Gibt es bereits Leben in der Galaxie? Wenn ja, wie stark ist die Verbreitung?</td>
    </tr>
    <tr>
     <td>&nbsp;</td>
    </tr>
    <tr>
     <td>
      <table border="0" cellspacing="0" cellpadding="0">
       <tr>
        <td><input type="radio" name="spezien" value="0"></td>
        <td>&nbsp;</td>
        <td style="color:#aaaaaa;">die Galaxie ist tot und trostlos (kein Planet ist bereits bevölkert)</td>
       </tr>
       <tr>
        <td><input type="radio" name="spezien" value="25"></td>
        <td>&nbsp;</td>
        <td style="color:#aaaaaa;">verstreute einzelne Völker (25% der Planeten sind bereits bevölkert)</td>
       </tr>
       <tr>
        <td><input type="radio" name="spezien" value="50" checked></td>
        <td>&nbsp;</td>
        <td style="color:#aaaaaa;">gesunde Reiche (50% der Planeten sind bereits bevölkert)</td>
       </tr>
       <tr>
        <td><input type="radio" name="spezien" value="75"></td>
        <td>&nbsp;</td>
        <td style="color:#aaaaaa;">expandierende Zivilisationen in nahezu allen Ecken (75% der Planeten sind bereits bevölkert)</td>
       </tr>
       <tr>
        <td><input type="radio" name="spezien" value="100"></td>
        <td>&nbsp;</td>
        <td style="color:#aaaaaa;">blühendes Leben (100% der Planeten sind bereits bevölkert)</td>
       </tr>
      </table>
     </td>
    </tr>
    <tr>
     <td>&nbsp;</td>
    </tr>
    <tr>
     <td>Wie sehr wird die Galaxie von Plasmastürmen durchzogen?</td>
    </tr>
    <tr>
     <td>&nbsp;</td>
    </tr>
    <tr>
     <td>
      <table border="0" cellspacing="0" cellpadding="0">
       <tr>
        <td style="color:#aaaaaa;">Wie viele Stürme gibt es maximal gleichzeitig?</td>
        <td>&nbsp;</td>
        <td><select name="max" style="width:100px;"> <option value="0">0</option>
             <option value="1">1</option> <option value="2">2</option>
             <option value="3">3</option> <option value="4">4</option>
             <option value="5" selected>5</option> <option value="6">6</option>
             <option value="7">7</option> <option value="8">8</option>
             <option value="9">9</option> <option value="10">10</option>
            </select>
        </td>
       </tr>
       <tr>
        <td style="color:#aaaaaa;">Mit welcher Wahrscheinlichkeit entstehen sie?</td>
        <td>&nbsp;</td>
        <td><select name="wahr" style="width:100px;">
             <option value="1">1 %</option> <option value="2">2 %</option>
             <option value="3">3 %</option> <option value="4">4 %</option>
             <option value="5" selected>5 %</option> <option value="6">6 %</option>
             <option value="7">7 %</option> <option value="8">8 %</option>
             <option value="9">9 %</option> <option value="10">10 %</option>
             <option value="15">15 %</option> <option value="20">20 %</option>
             <option value="30">30 %</option> <option value="40">40 %</option>
             <option value="50">50 %</option> <option value="60">60 %</option>
             <option value="70">70 %</option> <option value="80">80 %</option>
             <option value="90">90 %</option> <option value="100">100 %</option>
            </select>
        </td>
       </tr>
       <tr>
        <td style="color:#aaaaaa;">Wie viele Runden halten diese maximal an?</td>
        <td>&nbsp;</td>
        <td><select name="lang" style="width:100px;">
             <option value="3">3 Runden</option>
             <option value="4">4 Runden</option>
             <option value="5">5 Runden</option>
             <option value="6">6 Runden</option>
             <option value="7"selected>7 Runden</option>
             <option value="8">8 Runden</option>
             <option value="9">9 Runden</option>
             <option value="10">10 Runden</option>
             <option value="15">15 Runden</option>
             <option value="20">20 Runden</option>
            </select>
        </td>
       </tr>
      </table>
     </td>
    </tr>
    <tr>
     <td>&nbsp;</td>
    </tr>
   </table>
  </center>
  <center>
  <table border="0" cellspacing="0" cellpadding="0">
   <tr>
    <td><input type="submit" name="bla" value="Weiter mit Schritt 8"></td>
    <td></form></td>
   </tr>
  </table>
 </center>


  <?
  $footer -> easy_print();
  }

if ($HTTP_GET_VARS["fu"]==7)
 {
 $header = new EasyTemplate ("$usedpfath/templates/usedheader.tpl");
 $footer = new EasyTemplate ("$usedpfath/templates/usedfooter.tpl");
 $header -> assign("TITLE","Skrupel - UsedComm Spiel erstellen Schritt 8");
 $header -> assign("URL",$usedurl);
 $header -> easy_print();
 ?>
  
  <body text="#ffffff" bgcolor="#444444" link="#000000" vlink="#000000" alink="#000000" leftmargin="0" rightmargin="0" topmargin="0" marginwidth="0" marginheight="0">
  <center>
   <table border="0" cellspacing="0" cellpadding="4">
    <tr>
     <td style="font-size:20px; font-weight:bold; filter:DropShadow(color=black, offx=2, offy=2)">Neues Spiel erstellen</td>
    </tr>
   </table>
  </center>
  <form name="formular" method="post" action="spiel_alpha.php?fu=8">
  <input type="hidden" name="spiel_name" value="<?=$HTTP_POST_VARS["spiel_name"]?>">
  <input type="hidden" name="siegbedingungen" value="<?=$HTTP_POST_VARS["siegbedingungen"]?>">
  <input type="hidden" name="zielinfo_1" value="<?=$HTTP_POST_VARS["zielinfo_1"]?>">
  <input type="hidden" name="zielinfo_2" value="<?=$HTTP_POST_VARS["zielinfo_2"]?>">
  <input type="hidden" name="zielinfo_3" value="<?=$HTTP_POST_VARS["zielinfo_3"]?>">
  <input type="hidden" name="zielinfo_4" value="<?=$HTTP_POST_VARS["zielinfo_4"]?>">
  <input type="hidden" name="zielinfo_5" value="<?=$HTTP_POST_VARS["zielinfo_5"]?>">
  <input type="hidden" name="user_1" value="<?=$HTTP_POST_VARS["user_1"]?>">
  <input type="hidden" name="user_2" value="<?=$HTTP_POST_VARS["user_2"]?>">
  <input type="hidden" name="user_3" value="<?=$HTTP_POST_VARS["user_3"]?>">
  <input type="hidden" name="user_4" value="<?=$HTTP_POST_VARS["user_4"]?>">
  <input type="hidden" name="user_5" value="<?=$HTTP_POST_VARS["user_5"]?>">
  <input type="hidden" name="user_6" value="<?=$HTTP_POST_VARS["user_6"]?>">
  <input type="hidden" name="user_7" value="<?=$HTTP_POST_VARS["user_7"]?>">
  <input type="hidden" name="user_8" value="<?=$HTTP_POST_VARS["user_8"]?>">
  <input type="hidden" name="user_9" value="<?=$HTTP_POST_VARS["user_9"]?>">
  <input type="hidden" name="user_10" value="<?=$HTTP_POST_VARS["user_10"]?>">
  <input type="hidden" name="rasse_1" value="<?=$HTTP_POST_VARS["rasse_1"]?>">
  <input type="hidden" name="rasse_2" value="<?=$HTTP_POST_VARS["rasse_2"]?>">
  <input type="hidden" name="rasse_3" value="<?=$HTTP_POST_VARS["rasse_3"]?>">
  <input type="hidden" name="rasse_4" value="<?=$HTTP_POST_VARS["rasse_4"]?>">
  <input type="hidden" name="rasse_5" value="<?=$HTTP_POST_VARS["rasse_5"]?>">
  <input type="hidden" name="rasse_6" value="<?=$HTTP_POST_VARS["rasse_6"]?>">
  <input type="hidden" name="rasse_7" value="<?=$HTTP_POST_VARS["rasse_7"]?>">
  <input type="hidden" name="rasse_8" value="<?=$HTTP_POST_VARS["rasse_8"]?>">
  <input type="hidden" name="rasse_9" value="<?=$HTTP_POST_VARS["rasse_9"]?>">
  <input type="hidden" name="rasse_10" value="<?=$HTTP_POST_VARS["rasse_10"]?>">
  <input type="hidden" name="spieler_admin" value="<?=$HTTP_POST_VARS["spieler_admin"]?>">
  <input type="hidden" name="startposition" value="<?=$HTTP_POST_VARS["startposition"]?>">
  <input type="hidden" name="imperiumgroesse" value="<?=$HTTP_POST_VARS["imperiumgroesse"]?>">
  <input type="hidden" name="geldmittel" value="<?=$HTTP_POST_VARS["geldmittel"]?>">
  <input type="hidden" name="mineralienhome" value="<?=$HTTP_POST_VARS["mineralienhome"]?>">
  <input type="hidden" name="sternendichte" value="<?=$HTTP_POST_VARS["sternendichte"]?>">
  <input type="hidden" name="mineralien" value="<?=$HTTP_POST_VARS["mineralien"]?>">
  <input type="hidden" name="spezien" value="<?=$HTTP_POST_VARS["spezien"]?>">
  <input type="hidden" name="max" value="<?=$HTTP_POST_VARS["max"]?>">
  <input type="hidden" name="wahr" value="<?=$HTTP_POST_VARS["wahr"]?>">
  <input type="hidden" name="lang" value="<?=$HTTP_POST_VARS["lang"]?>">
  <input type="hidden" name="leminvorkommen" value="<?=$HTTP_POST_VARS["leminvorkommen"]?>">
  <input type="hidden" name="umfang" value="<?=$HTTP_POST_VARS["umfang"]?>">
  <input type="hidden" name="struktur" value="<?=$HTTP_POST_VARS["struktur"]?>">
  <input type="hidden" name="modul_0" value="<?=$HTTP_POST_VARS["modul_0"]?>">
  <input type="hidden" name="modul_2" value="<?=$HTTP_POST_VARS["modul_2"]?>">
  <?
  if ($HTTP_POST_VARS["siegbedingungen"]==6)
     {?>
     <input type="hidden" name="team1" value="<?=$HTTP_POST_VARS["team1"]?>">
     <input type="hidden" name="team2" value="<?=$HTTP_POST_VARS["team2"]?>">
     <input type="hidden" name="team3" value="<?=$HTTP_POST_VARS["team3"]?>">
     <input type="hidden" name="team4" value="<?=$HTTP_POST_VARS["team4"]?>">
     <input type="hidden" name="team5" value="<?=$HTTP_POST_VARS["team5"]?>">
     <input type="hidden" name="team6" value="<?=$HTTP_POST_VARS["team6"]?>">
     <input type="hidden" name="team7" value="<?=$HTTP_POST_VARS["team7"]?>">
     <input type="hidden" name="team8" value="<?=$HTTP_POST_VARS["team8"]?>">
     <input type="hidden" name="team9" value="<?=$HTTP_POST_VARS["team9"]?>">
     <input type="hidden" name="team10" value="<?=$HTTP_POST_VARS["team10"]?>"><?
     }?>
  <center>
   <table border="0" cellspacing="0" cellpadding="2">
    <tr>
     <td>Wieviele instabile Wurmlöcher soll es geben?</td>
    </tr>
    <tr>
     <td>&nbsp;</td>
    </tr>
    <tr>
     <td>
      <table border="0" cellspacing="0" cellpadding="0">
       <tr>
        <td><input type="radio" name="instabil" value="0" checked></td>
        <td>&nbsp;</td>
        <td style="color:#aaaaaa;">00</td>
        <td>&nbsp;</td>
        <td><input type="radio" name="instabil" value="2"></td>
        <td>&nbsp;</td>
        <td style="color:#aaaaaa;">02</td>
        <td>&nbsp;</td>
        <td><input type="radio" name="instabil" value="10"></td><td>&nbsp;</td>
        <td style="color:#aaaaaa;">10</td>
        <td>&nbsp;</td>
        <td><input type="radio" name="instabil" value="30"></td>
        <td>&nbsp;</td>
        <td style="color:#aaaaaa;">30</td>
       </tr>
       <tr>
        <td><input type="radio" name="instabil" value="1"></td>
        <td>&nbsp;</td>
        <td style="color:#aaaaaa;">01</td>
        <td>&nbsp;</td>
        <td><input type="radio" name="instabil" value="5"></td>
        <td>&nbsp;</td>
        <td style="color:#aaaaaa;">05</td>
        <td>&nbsp;</td>
        <td><input type="radio" name="instabil" value="20"></td>
        <td>&nbsp;</td>
        <td style="color:#aaaaaa;">20</td>
        <td>&nbsp;</td>
        <td><input type="radio" name="instabil" value="50"></td>
        <td>&nbsp;</td>
        <td style="color:#aaaaaa;">50</td>
       </tr>
      </table>
     </td>
    </tr>
    <tr>
     <td>&nbsp;</td>
    </tr>
    <tr>
     <td>Wieviele stabile Wurmlöcher (2 Eingänge) soll es geben?</td>
    </tr>
    <tr>
     <td>&nbsp;</td>
    </tr>
    <tr>
     <td>
      <table border="0" cellspacing="0" cellpadding="0">
       <tr>
        <td><input type="radio" name="stabil" value="0" checked></td>
        <td>&nbsp;</td>
        <td style="color:#aaaaaa;">keins</td>
       </tr>
       <tr>
        <td><input type="radio" name="stabil" value="1"></td>
        <td>&nbsp;</td>
        <td style="color:#aaaaaa;">1 zufällig verteilt</td>
       </tr>
       <tr>
        <td><input type="radio" name="stabil" value="2"></td>
        <td>&nbsp;</td>
        <td style="color:#aaaaaa;">2 zufällig verteilt</td>
       </tr>
       <tr>
        <td><input type="radio" name="stabil" value="3"></td>
        <td>&nbsp;</td>
        <td style="color:#aaaaaa;">3 zufällig verteilt</td>
       </tr>
       <tr>
        <td><input type="radio" name="stabil" value="4"></td>
        <td>&nbsp;</td><td style="color:#aaaaaa;">4 zufällig verteilt</td>
       </tr>
       <tr>
        <td><input type="radio" name="stabil" value="5"></td>
        <td>&nbsp;</td>
        <td style="color:#aaaaaa;">5 zufällig verteilt</td>
       </tr>
       <tr>
        <td><input type="radio" name="stabil" value="6"></td>
        <td>&nbsp;</td>
        <td style="color:#aaaaaa;">1 verbindet die Nordquadranten mit den Südquadranten</td>
       </tr>
       <tr>
        <td><input type="radio" name="stabil" value="7"></td>
        <td>&nbsp;</td>
        <td style="color:#aaaaaa;">2 verbinden die Nordquadranten mit den Südquadranten</td>
       </tr>
       <tr>
        <td><input type="radio" name="stabil" value="8"></td>
        <td>&nbsp;</td>
        <td style="color:#aaaaaa;">1 verbindet die Westquadranten mit den Ostquadranten</td>
       </tr>
       <tr>
        <td><input type="radio" name="stabil" value="9"></td>
        <td>&nbsp;</td>
        <td style="color:#aaaaaa;">2 verbinden die Westquadranten mit den Ostquadranten</td>
       </tr>
       <tr>
        <td><input type="radio" name="stabil" value="10"></td>
        <td>&nbsp;</td>
        <td style="color:#aaaaaa;">1 verbindet die Nordquadranten mit den Südquadranten und 1 verbindet die Westquadranten mit den Ostquadranten</td>
       </tr>
       <tr>
        <td><input type="radio" name="stabil" value="11"></td>
        <td>&nbsp;</td>
        <td style="color:#aaaaaa;">1 verbindet den NordWestquadranten mit dem SüdOstquadranten</td>
       </tr>
       <tr>
        <td><input type="radio" name="stabil" value="12"></td>
        <td>&nbsp;</td>
        <td style="color:#aaaaaa;">1 verbindet den NordOstquadranten mit dem SüdWestquadranten</td>
       </tr>
       <tr>
        <td><input type="radio" name="stabil" value="13"></td>
        <td>&nbsp;</td>
        <td style="color:#aaaaaa;">2 verbinden die Quadranten jeweils diagonal über Kreuz</td>
       </tr>
      </table>
     </td>
    </tr>
    <tr>
     <td>&nbsp;</td>
    </tr>
   </table>
  </center>
  <center>
  <table border="0" cellspacing="0" cellpadding="0">
   <tr>
    <td><input type="submit" name="bla" value="Weiter mit Schritt 9"></td>
    <td></form></td>
   </tr>
  </table>
 </center>
 <?
 $footer -> easy_print();
 }

if ($HTTP_GET_VARS["fu"]==8)
 {
 $header = new EasyTemplate ("$usedpfath/templates/usedheader.tpl");
 $footer = new EasyTemplate ("$usedpfath/templates/usedfooter.tpl");
 $header -> assign("TITLE","Skrupel - UsedComm Spiel erstellen Schritt 9");
 $header -> assign("URL",$usedurl);
 $header -> easy_print();
 ?>

<body text="#ffffff" bgcolor="#444444" link="#000000" vlink="#000000" alink="#000000" leftmargin="0" rightmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<center>
 <table border="0" cellspacing="0" cellpadding="4">
  <tr>
   <td style="font-size:20px; font-weight:bold; filter:DropShadow(color=black, offx=2, offy=2)">Neues Spiel erstellen</td>
  </tr>
 </table>
</center>
<form name="formular" method="post" action="spiel_alpha.php?fu=9">
<input type="hidden" name="spiel_name" value="<?=$HTTP_POST_VARS["spiel_name"]?>">
<input type="hidden" name="siegbedingungen" value="<?=$HTTP_POST_VARS["siegbedingungen"]?>">
<input type="hidden" name="zielinfo_1" value="<?=$HTTP_POST_VARS["zielinfo_1"]?>">
<input type="hidden" name="zielinfo_2" value="<?=$HTTP_POST_VARS["zielinfo_2"]?>">
<input type="hidden" name="zielinfo_3" value="<?=$HTTP_POST_VARS["zielinfo_3"]?>">
<input type="hidden" name="zielinfo_4" value="<?=$HTTP_POST_VARS["zielinfo_4"]?>">
<input type="hidden" name="zielinfo_5" value="<?=$HTTP_POST_VARS["zielinfo_5"]?>">
<input type="hidden" name="user_1" value="<?=$HTTP_POST_VARS["user_1"]?>">
<input type="hidden" name="user_2" value="<?=$HTTP_POST_VARS["user_2"]?>">
<input type="hidden" name="user_3" value="<?=$HTTP_POST_VARS["user_3"]?>">
<input type="hidden" name="user_4" value="<?=$HTTP_POST_VARS["user_4"]?>">
<input type="hidden" name="user_5" value="<?=$HTTP_POST_VARS["user_5"]?>">
<input type="hidden" name="user_6" value="<?=$HTTP_POST_VARS["user_6"]?>">
<input type="hidden" name="user_7" value="<?=$HTTP_POST_VARS["user_7"]?>">
<input type="hidden" name="user_8" value="<?=$HTTP_POST_VARS["user_8"]?>">
<input type="hidden" name="user_9" value="<?=$HTTP_POST_VARS["user_9"]?>">
<input type="hidden" name="user_10" value="<?=$HTTP_POST_VARS["user_10"]?>">
<input type="hidden" name="rasse_1" value="<?=$HTTP_POST_VARS["rasse_1"]?>">
<input type="hidden" name="rasse_2" value="<?=$HTTP_POST_VARS["rasse_2"]?>">
<input type="hidden" name="rasse_3" value="<?=$HTTP_POST_VARS["rasse_3"]?>">
<input type="hidden" name="rasse_4" value="<?=$HTTP_POST_VARS["rasse_4"]?>">
<input type="hidden" name="rasse_5" value="<?=$HTTP_POST_VARS["rasse_5"]?>">
<input type="hidden" name="rasse_6" value="<?=$HTTP_POST_VARS["rasse_6"]?>">
<input type="hidden" name="rasse_7" value="<?=$HTTP_POST_VARS["rasse_7"]?>">
<input type="hidden" name="rasse_8" value="<?=$HTTP_POST_VARS["rasse_8"]?>">
<input type="hidden" name="rasse_9" value="<?=$HTTP_POST_VARS["rasse_9"]?>">
<input type="hidden" name="rasse_10" value="<?=$HTTP_POST_VARS["rasse_10"]?>">
<input type="hidden" name="spieler_admin" value="<?=$HTTP_POST_VARS["spieler_admin"]?>">
<input type="hidden" name="startposition" value="<?=$HTTP_POST_VARS["startposition"]?>">
<input type="hidden" name="imperiumgroesse" value="<?=$HTTP_POST_VARS["imperiumgroesse"]?>">
<input type="hidden" name="geldmittel" value="<?=$HTTP_POST_VARS["geldmittel"]?>">
<input type="hidden" name="mineralienhome" value="<?=$HTTP_POST_VARS["mineralienhome"]?>">
<input type="hidden" name="sternendichte" value="<?=$HTTP_POST_VARS["sternendichte"]?>">
<input type="hidden" name="mineralien" value="<?=$HTTP_POST_VARS["mineralien"]?>">
<input type="hidden" name="spezien" value="<?=$HTTP_POST_VARS["spezien"]?>">
<input type="hidden" name="max" value="<?=$HTTP_POST_VARS["max"]?>">
<input type="hidden" name="wahr" value="<?=$HTTP_POST_VARS["wahr"]?>">
<input type="hidden" name="lang" value="<?=$HTTP_POST_VARS["lang"]?>">
<input type="hidden" name="instabil" value="<?=$HTTP_POST_VARS["instabil"]?>">
<input type="hidden" name="stabil" value="<?=$HTTP_POST_VARS["stabil"]?>">
<input type="hidden" name="leminvorkommen" value="<?=$HTTP_POST_VARS["leminvorkommen"]?>">
<input type="hidden" name="umfang" value="<?=$HTTP_POST_VARS["umfang"]?>">
<input type="hidden" name="struktur" value="<?=$HTTP_POST_VARS["struktur"]?>">
<input type="hidden" name="modul_0" value="<?=$HTTP_POST_VARS["modul_0"]?>">
<input type="hidden" name="modul_2" value="<?=$HTTP_POST_VARS["modul_2"]?>">
<?
if ($HTTP_POST_VARS["siegbedingungen"]==6)
   {?>
   <input type="hidden" name="team1" value="<?=$HTTP_POST_VARS["team1"]?>">
   <input type="hidden" name="team2" value="<?=$HTTP_POST_VARS["team2"]?>">
   <input type="hidden" name="team3" value="<?=$HTTP_POST_VARS["team3"]?>">
   <input type="hidden" name="team4" value="<?=$HTTP_POST_VARS["team4"]?>">
   <input type="hidden" name="team5" value="<?=$HTTP_POST_VARS["team5"]?>">
   <input type="hidden" name="team6" value="<?=$HTTP_POST_VARS["team6"]?>">
   <input type="hidden" name="team7" value="<?=$HTTP_POST_VARS["team7"]?>">
   <input type="hidden" name="team8" value="<?=$HTTP_POST_VARS["team8"]?>">
   <input type="hidden" name="team9" value="<?=$HTTP_POST_VARS["team9"]?>">
   <input type="hidden" name="team10" value="<?=$HTTP_POST_VARS["team10"]?>"><?
   }?>
<center>
<table border="0" cellspacing="0" cellpadding="2">
 <tr>
  <td>Wie stark soll der Nebel des Krieges ausgeprägt sein?</td>
 </tr>
 <tr>
  <td>&nbsp;</td>
 </tr>
 <tr>
  <td>
   <table border="0" cellspacing="0" cellpadding="0">
    <tr>
     <td><input type="radio" name="nebel" value="0"></td>
     <td>&nbsp;</td>
     <td style="color:#aaaaaa;">kein Nebel (für jeden ist die komplette Galaxie sichtbar)</td>
    </tr>
    <tr>
     <td><input type="radio" name="nebel" value="1"></td>
     <td>&nbsp;</td>
     <td style="color:#aaaaaa;">voller Nebel (man sieht die Sektoren, in denen man Kolonien oder Schiffe hat)</td>
    </tr>
    <tr>
     <td><input type="radio" name="nebel" value="2"></td><td>&nbsp;</td>
     <td style="color:#aaaaaa;">Nebel samt Datenbank (wie voller Nebel, nur Positionen von Planeten besuchter Sektoren bleiben erhalten)</td>
    </tr>
    <tr>
     <td><input type="radio" name="nebel" value="3" checked></td>
     <td>&nbsp;</td>
     <td style="color:#aaaaaa;">Nebel samt Datenbank und Langstreckensensoren (wie Nebel samt Datenbank, nur werden die Planeten der Nachbarsektoren erfasst)</td>
    </tr>
   </table>
  </td>
 </tr>
 <tr>
  <td>&nbsp;</td>
 </tr>
 <tr>
  <td>Wie verhalten sich die Raumpiraten in dier Galaxie?</td>
 </tr>
 <tr>
  <td>&nbsp;</td>
 </tr>
 <tr>
  <td>
   <table border="0" cellspacing="0" cellpadding="0">
    <tr>
     <td style="color:#aaaaaa;">Mit welcher Wahrscheinlichkeit kommt es im Zentrum zu Übergriffen?</td>
     <td>&nbsp;</td>
     <td><select name="piraten_mitte" style="width:60px;">
          <option value="0" selected>0 %</option>
          <option value="1">1 %</option>
          <option value="2">2 %</option>
          <option value="3">3 %</option>
          <option value="4">4 %</option>
          <option value="5">5 %</option>
          <option value="6">6 %</option>
          <option value="7">7 %</option>
          <option value="8">8 %</option>
          <option value="9">9 %</option>
          <option value="10">10 %</option>
          <option value="15">15 %</option>
          <option value="20">20 %</option>
          <option value="25">25 %</option>
          <option value="30">30 %</option>
          <option value="35">35 %</option>
          <option value="40">40 %</option>
          <option value="45">45 %</option>
          <option value="50">50 %</option>
          <option value="55">55 %</option>
          <option value="60">60 %</option>
          <option value="65">65 %</option>
          <option value="70">70 %</option>
          <option value="75">75 %</option>
          <option value="80">80 %</option>
          <option value="85">85 %</option>
          <option value="90">90 %</option>
          <option value="95">95 %</option>
          <option value="100">100 %</option>
         </select>
     </td>
    </tr>
    <tr>
     <td style="color:#aaaaaa;">Mit welcher Wahrscheinlichkeit kommt es in den Randzonen zu Übergriffen?</td>
     <td>&nbsp;</td>
     <td><select name="piraten_aussen" style="width:60px;">
          <option value="0">0 %</option>
          <option value="1">1 %</option>
          <option value="2">2 %</option>
          <option value="3">3 %</option>
          <option value="4">4 %</option>
          <option value="5">5 %</option>
          <option value="6">6 %</option>
          <option value="7">7 %</option>
          <option value="8">8 %</option>
          <option value="9">9 %</option>
          <option value="10">10 %</option>
          <option value="15">15 %</option>
          <option value="20">20 %</option>
          <option value="25">25 %</option>
          <option value="30">30 %</option>
          <option value="35">35 %</option>
          <option value="40" selected>40 %</option>
          <option value="45">45 %</option>
          <option value="50">50 %</option>
          <option value="55">55 %</option>
          <option value="60">60 %</option>
          <option value="65">65 %</option>
          <option value="70">70 %</option>
          <option value="75">75 %</option>
          <option value="80">80 %</option>
          <option value="85">85 %</option>
          <option value="90">90 %</option>
          <option value="95">95 %</option>
          <option value="100">100 %</option>
         </select>
     </td>
    </tr>
    <tr>
     <td style="color:#aaaaaa;">Wieviel Fracht erbeuten sie mindestens?</td>
     <td>&nbsp;</td>
     <td><select name="piraten_min" style="width:60px;">
          <option value="1">1 %</option>
		  <option value="2">2 %</option>
          <option value="3">3 %</option>
		  <option value="4">4 %</option>
          <option value="5" selected>5 %</option>
		  <option value="6">6 %</option>
          <option value="7">7 %</option>
		  <option value="8">8 %</option>
          <option value="9">9 %</option>
		  <option value="10">10 %</option>
          <option value="15">15 %</option>
		  <option value="20">20 %</option>
          <option value="25">25 %</option>
		  <option value="30">30 %</option>
          <option value="35">35 %</option>
		  <option value="40">40 %</option>
          <option value="45">45 %</option>
		  <option value="50">50 %</option>
          <option value="55">55 %</option>
		  <option value="60">60 %</option>
          <option value="65">65 %</option>
		  <option value="70">70 %</option>
          <option value="75">75 %</option>
		  <option value="80">80 %</option>
          <option value="85">85 %</option>
		  <option value="90">90 %</option>
          <option value="95">95 %</option>
		  <option value="100">100 %</option>
          </select>
     </td>
    </tr>
    <tr>
     <td style="color:#aaaaaa;">Wieviel Fracht erbeuten sie maximal?</td>
     <td>&nbsp;</td>
     <td><select name="piraten_max" style="width:60px;">
          <option value="1">1 %</option>
		  <option value="2">2 %</option>
		  <option value="3">3 %</option>
		  <option value="4">4 %</option>
		  <option value="5">5 %</option>
		  <option value="6">6 %</option>
          <option value="7">7 %</option>
		  <option value="8">8 %</option>
          <option value="9">9 %</option>
		  <option value="10">10 %</option>
          <option value="15">15 %</option>
		  <option value="20">20 %</option>
          <option value="25">25 %</option>
		  <option value="30">30 %</option>
          <option value="35">35 %</option>
		  <option value="40">40 %</option>
          <option value="45">45 %</option>
		  <option value="50" selected>50 %</option>
          <option value="55">55 %</option>
		  <option value="60">60 %</option>
          <option value="65">65 %</option>
		  <option value="70">70 %</option>
          <option value="75">75 %</option>
		  <option value="80">80 %</option>
          <option value="85">85 %</option>
		  <option value="90">90 %</option>
          <option value="95">95 %</option>
		  <option value="100">100 %</option>
         </select>
        </td>
       </tr>
      </table>
     </td>
    </tr>
    <tr>
     <td>&nbsp;</td>
    </tr>
   </table>
  </center>
  <center>
   <table border="0" cellspacing="0" cellpadding="0">
    <tr>
     <td><input type="submit" name="bla" value="Spiel erstellen"></td>
     <td></form></td>
    </tr>
   </table>
  </center>
  <?
  $footer -> easy_print();
  }
  
if ($HTTP_GET_VARS["fu"]==9)
 {
 $header = new EasyTemplate ("$usedpfath/templates/usedheader.tpl");
 $footer = new EasyTemplate ("$usedpfath/templates/usedfooter.tpl");
 $header -> assign("TITLE","Skrupel - UsedComm Spiel erstellen Schritt 10");
 $header -> assign("URL",$usedurl);
 $header -> easy_print();

  if ($create>0)
     {

     $spiel_name=$HTTP_POST_VARS["spiel_name"];
     $siegbedingungen=$HTTP_POST_VARS["siegbedingungen"];
     $zielinfo_1=$HTTP_POST_VARS["Zielinfo_1"];
     $zielinfo_2=$HTTP_POST_VARS["Zielinfo_2"];
     $zielinfo_3=$HTTP_POST_VARS["Zielinfo_3"];
     $zielinfo_4=$HTTP_POST_VARS["Zielinfo_4"];
     $zielinfo_5=$HTTP_POST_VARS["Zielinfo_5"];
	 $user_1=$HTTP_POST_VARS["user_1"];
	 $user_2=$HTTP_POST_VARS["user_2"];
	 $user_3=$HTTP_POST_VARS["user_3"];
	 $user_4=$HTTP_POST_VARS["user_4"];
	 $user_5=$HTTP_POST_VARS["user_5"];
	 $user_6=$HTTP_POST_VARS["user_6"];
	 $user_7=$HTTP_POST_VARS["user_7"];
	 $user_8=$HTTP_POST_VARS["user_8"];
	 $user_9=$HTTP_POST_VARS["user_9"];
	 $user_10=$HTTP_POST_VARS["user_10"];
	 $rasse_1=$HTTP_POST_VARS["rasse_1"];
	 $rasse_2=$HTTP_POST_VARS["rasse_2"];
	 $rasse_3=$HTTP_POST_VARS["rasse_3"];
	 $rasse_4=$HTTP_POST_VARS["rasse_4"];
	 $rasse_5=$HTTP_POST_VARS["rasse_5"];
	 $rasse_6=$HTTP_POST_VARS["rasse_6"];
	 $rasse_7=$HTTP_POST_VARS["rasse_7"];
	 $rasse_8=$HTTP_POST_VARS["rasse_8"];
	 $rasse_9=$HTTP_POST_VARS["rasse_9"];
	 $rasse_10=$HTTP_POST_VARS["rasse_10"];
	 
  	 $spieler_admin=$HTTP_POST_VARS["user_1"];

	 $startposition=$HTTP_POST_VARS["startposition"];
	 $imperiumgroesse=$HTTP_POST_VARS["imperiumgroesse"];
	 $geldmittel=$HTTP_POST_VARS["geldmittel"];
	 $mineralienhome=$HTTP_POST_VARS["mineralienhome"];
	 $sternendichte=$HTTP_POST_VARS["sternendichte"];
	 $mineralien=$HTTP_POST_VARS["mineralien"];
	 $spezien=$HTTP_POST_VARS["spezien"];
	 $max=$HTTP_POST_VARS["max"];
	 $wahr=$HTTP_POST_VARS["wahr"];
	 $lang=$HTTP_POST_VARS["lang"];
	 $instabil=$HTTP_POST_VARS["instabil"];
	 $stabil=$HTTP_POST_VARS["stabil"];
	 $leminvorkommen=$HTTP_POST_VARS["leminvorkommen"];
     $umfang=$HTTP_POST_VARS["umfang"];
     $struktur=$HTTP_POST_VARS["struktur"];
     $modul_0=$HTTP_POST_VARS["modul_0"];
     $modul_2=$HTTP_POST_VARS["modul_2"];
     $piraten_mitte=$HTTP_POST_VARS["piraten_mitte"];
     $piraten_aussen=$HTTP_POST_VARS["piraten_aussen"];
     $piraten_min=$HTTP_POST_VARS["piraten_min"];
     $piraten_max=$HTTP_POST_VARS["piraten_max"];
     $nebel=$HTTP_POST_VARS["nebel"];
     $team1=$HTTP_POST_VARS["team1"];
     $team2=$HTTP_POST_VARS["team2"];
     $team3=$HTTP_POST_VARS["team3"];
     $team4=$HTTP_POST_VARS["team4"];
     $team5=$HTTP_POST_VARS["team5"];
     $team6=$HTTP_POST_VARS["team6"];
     $team7=$HTTP_POST_VARS["team7"];
     $team8=$HTTP_POST_VARS["team8"];
     $team9=$HTTP_POST_VARS["team9"];
     $team10=$HTTP_POST_VARS["team10"];

     $speichern = "INSERT INTO skrupel_usedcommspiele (spiel_name,siegbedingungen,zielinfo_1,zielinfo_2,zielinfo_3,zielinfo_4,zielinfo_5,user_1,user_2,user_3,user_4,user_5,user_6,user_7,user_8,user_9,user_10,rasse_1,rasse_2,rasse_3,rasse_4,rasse_5,rasse_6,rasse_7,rasse_8,rasse_9,rasse_10,spieler_admin,startposition,imperiumgroesse,geldmittel,mineralienhome,sternendichte,mineralien,spezien,max,wahr,lang,instabil,stabil,leminvorkommen,umfang,struktur,modul_0,modul_2,team1,team2,team3,team4,team5,team6,team7,team8,team9,team10,nebel,piraten_mitte,piraten_aussen,piraten_min,piraten_max) values('$spiel_name','$siegbedingungen','$zielinfo_1','$zielinfo_2','$zielinfo_3','$zielinfo_4','$zielinfo_5','$user_1','$user_2','$user_3','$user_4','$user_5','$user_6','$user_7','$user_8','$user_9','$user_10','$rasse_1','$rasse_2','$rasse_3','$rasse_4','$rasse_5','$rasse_6','$rasse_7','$rasse_8','$rasse_9','$rasse_10','$spieler_admin','$startposition','$imperiumgroesse','$geldmittel','$mineralienhome','$sternendichte','$mineralien','$spezien','$max','$wahr','$lang','$instabil','$stabil','$leminvorkommen','$umfang','$struktur','$modul_0','$modul_2','$team1','$team2','$team3','$team4','$team5','$team6','$team7','$team8','$team9','$team10','$nebel','$piraten_mitte','$piraten_aussen','$piraten_min','$piraten_max')";
     @mysql_query($speichern);

	 $speichern="INSERT INTO skrupel_usedcommchatrooms(realname,descr,moderator) VALUES('$spiel_name','','$user_1')";
	 @mysql_query($speichern);

     $abfrage = mysql_query("SELECT * FROM skrupel_usedcommspiele WHERE spiel_name = '$spiel_name'");
     $row = mysql_fetch_object ($abfrage);
     $id = $row->id;

	 $speichern="UPDATE skrupel_usedcommchatrooms SET name='$id' WHERE realname='$spiel_name'";
	 @mysql_query($speichern);

 	 $erstellen="CREATE TABLE skrupel_usedcommchatmessages_$id (
	             id int(10) NOT NULL auto_increment,
   	 			 message longtext NOT NULL default '',
   				 user varchar(250) NOT NULL default '',
   				 datum date NOT NULL DEFAULT '0000-00-00',
   				 ip varchar(15) NOT NULL default '',
   				 xforwarded text NOT NULL default '',
   				 hostname varchar(100) NOT NULL default '',
   				 PRIMARY KEY (id)
   				 )
				";
	 @mysql_query($erstellen);

     ?>
     <body text="#ffffff" bgcolor="#444444" link="#000000" vlink="#000000" alink="#000000" leftmargin="0" rightmargin="0" topmargin="0" marginwidth="0" marginheight="0">
	 <center>
	  <table valign="top" border="0" cellspacing="0" cellpadding="4">
       <tr>
        <td style="font-size:20px; font-weight:bold; filter:DropShadow(color=black, offx=2, offy=2)">Neues Spiel erstellen</td>
       </tr>
       <tr>
        <td>&nbsp;</td>
       </tr>
	   <tr>
        <td>Dein Spiel wurde erfolgreich als Benutzerspiel zwischengespeichert.<br>Wenn alle Slots durch Mitspieler belegt wurden, erhälts Du eine EMail und kannst dann das Spiel starten.<br>Deine Mitspieler erhalten anschließend eine Benachrichtung über den Spielbeginn.</td>
       </tr>
       <tr>
        <td>Für Deine wartendes Spiel wurde ein Chatraum eingerichtet indem sich interessierte über Deine Spiel unterhalten können.</td>
       </tr>
	   <tr>
        <td>&nbsp;</td>
       </tr>
	   <tr>
        <form name="bla" method="post" action="welcome.php?fu=1">
        <td><input type="submit" name="bla" value="Zurück"></td>
        <td></form></td>
       </tr>
      </table>
     </center>
     <?
     }

  $footer -> easy_print();
  }

Return current item: Skrupel User Game Administration