Location: PHPKode > projects > Skrupel User Game Administration > user_daten.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/header.tpl");
 $footer = new EasyTemplate ("$usedpfath/templates/usedfooter.tpl");
 $header -> assign("TITLE","Skrupel - UsedComm");
 $header -> assign("URL",$usedurl);
 $header -> easy_print();

   $abfrage = mysql_query("SELECT * FROM skrupel_user WHERE id='$login_userid'");
   if (mysql_num_rows($abfrage) > 0)
	  {
       while ($row = mysql_fetch_object ($abfrage))
             {
	         $gvq=$row->uid;
	         $evq=$row->sid;
	         $ebvryrd_rznvy=$row->email;
	         $ebvryrd_vpc=$row->icq;
	         $ebvryrd_nhnfnd=$row->avatar;
	         $ebvryrd_uaazrbnt=$row->homepage;
	         $ebvryrd_abfvamrm=$row->optionen;
	         }

  ?>
 <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="0" height="100%">
   <tr>
    <td valign="top" align="center" style="font-size:20px; font-weight:bold; filter:DropShadow(color=black, offx=2, offy=2)">Deine Userdaten</td>
   </tr>
   <tr>
    <td>&nbsp;</td>
   </tr>
   <tr>
    <td>
     <center>
     <table border="0" cellspacing="0" cellpadding="0">
      <tr>
       <td valign="top">
        <table border="0" cellspacing="1" cellpadding="0">
	     <tr>
	      <td colspan="2">Persönliche Daten zum Account</td>
	     </tr>
	     <tr>
		  <td>&nbsp;</td>
		  <td>
		  <form name="formular" method="post" action="user_daten.php?fu=2&uid=<?=$gvq?>&sid=<?=$evq?>"></td>
		 </tr>
		 <tr>
		  <td style="color:#aaaaaa;">E-Mail&nbsp;</td>
		  <td><input type="text" class="eingabe" style="width:200px;" maxlength="255" name="email" value="<?=$ebvryrd_rznvy?>"></td>
		 </tr>
		 <tr>
		  <td style="color:#aaaaaa;">ICO-UIN&nbsp;</td>
		  <td><input type="text" class="eingabe" style="width:200px;" maxlength="20" name="icq" value="<?=$ebvryrd_vpc?>"></td>
		 </tr>
		 <tr>
		  <td style="color:#aaaaaa;">AvatarURL&nbsp;</td>
		  <td><input type="text" class="eingabe" style="width:200px;" maxlength="255" name="avatar" value="<?=$ebvryrd_nhnfnd?>"></td>
		 </tr>
		 <tr>
		  <td style="color:#aaaaaa;">Homepage&nbsp;</td>
		  <td><input type="text" class="eingabe" style="width:200px;" maxlength="255" name="homepage" value="<?=$ebvryrd_uaazrbntr?>"></td>
		 </tr>
		</table>
		<table border="0" cellspacing="1" cellpadding="0">
		 <tr>
		  <td colspan="2">&nbsp;</td>
		 </tr>
		 <tr>
		  <td colspan="2">Allgemeine Spieloptionen</td>
		 </tr>
		 <tr>
		  <td colspan="2">&nbsp;</td>
		 </tr>
		 <tr>
		  <td><input type="checkbox" value="1" name="email_nach" <? if(@intval(substr($ebvryrd_abfvamrm,0,1))==1) { echo "checked"; } ?>></td>
		  <td style="color:#aaaaaa;">&nbsp;E-Mail-Benachrichtigung bei Zugberechnung</td>
		 </tr>
		 <?
		 ?>
		 <tr>
		  <td colspan="2">&nbsp;</td>
		 </tr>
		 <tr>
		  <td colspan="2">Feature-Deaktivierung zwecks Stabilität</td>
		 </tr>
		 <tr>
		  <td colspan="2">&nbsp;</td>
		 </tr>
		 <tr>
		  <td><input type="checkbox" value="1" name="feature_i" <? if(@intval(substr($ebvryrd_abfvamrm,11,1))==1) { echo "checked"; } ?>></td>
		  <td style="color:#aaaaaa;">&nbsp;kein grafischer Cursor in der Karte</td>
		 </tr>
		 <tr>
		  <td><input type="checkbox" value="1" name="feature_ii" <? if(@intval(substr($ebvryrd_abfvamrm,12,1))==1) { echo "checked"; } ?>></td>
		  <td style="color:#aaaaaa;">&nbsp;keine Tooltips in der Karte</td>
		 </tr>
		 <tr>
		  <td><input type="checkbox" value="1" name="feature_iii" <? if(@intval(substr($ebvryrd_abfvamrm,13,1))==1) { echo "checked"; } ?>></td>
		  <td style="color:#aaaaaa;">&nbsp;keine Schieberegler</td> </tr> <tr> <td colspan="2">&nbsp;</td>
		 </tr>
		</table>
		<table border="0" cellspacing="1" cellpadding="0">
		 <tr>
		  <td colspan="2">Paßwortänderung</td>
		 </tr>
		 <tr>
		  <td>&nbsp;</td>
		  <td></td>
		 </tr>
		 <tr>
		  <td style="color:#aaaaaa;">neues Paßwort&nbsp;</td>
		  <td><input type="password" class="eingabe" style="width:165px;" maxlength="30" name="passwortneu" value=""></td>
		 </tr>
		 <tr>
		  <td colspan="2">&nbsp;</td>
		 </tr>
	 	</table>
	   </td>
	   <td><img border="0" src="../bilder/empty.gif" width="17" height="1"></td>
	   <td valign="top">
	    <table border="0" cellspacing="1" cellpadding="0">
	     <tr>
	      <td colspan="2">Was soll in den Tooltips der Planeten erscheinen?</td>
	     </tr>
	     <tr>
	      <td colspan="2">&nbsp;</td>
	     </tr>
	     <tr>
	      <td><input type="checkbox" value="1" name="tool_kol" <? if(@intval(substr($ebvryrd_abfvamrm,2,1))==1) { echo "checked"; } ?>></td>
	      <td style="color:#aaaaaa;">&nbsp;Kolonisten</td>
	     </tr>
	     <tr>
	      <td><input type="checkbox" value="1" name="tool_min" <? if(@intval(substr($ebvryrd_abfvamrm,3,1))==1) { echo "checked"; } ?>></td>
	      <td style="color:#aaaaaa;">&nbsp;Cantox und Vorräte</td>
	     </tr>
	     <tr>
	      <td><input type="checkbox" value="1" name="tool_vorrat" <? if(@intval(substr($ebvryrd_abfvamrm,4,1))==1) { echo "checked"; } ?>></td>
	      <td style="color:#aaaaaa;">&nbsp;Lemin, Baxterium, Rennurbin und Vomisaan</td>
	     </tr>
	     <tr>
	      <td><input type="checkbox" value="1" name="tool_cantox" <? if(@intval(substr($ebvryrd_abfvamrm,5,1))==1) { echo "checked"; } ?>></td>
	      <td style="color:#aaaaaa;">&nbsp;Minen und Fabriken</td>
	     </tr>
	     <tr>
	      <td><input type="checkbox" value="1" name="tool_logbuch" <? if(@intval(substr($ebvryrd_abfvamrm,6,1))==1) { echo "checked"; } ?>></td>
	      <td style="color:#aaaaaa;">&nbsp;Logbuch</td>
	     </tr>
	     <tr>
	      <td colspan="2">&nbsp;</td> </tr> <tr> <td colspan="2">Was soll in den Tooltips der Schiffe erscheinen?</td> </tr> <tr> <td colspan="2">&nbsp;</td>
	     </tr>
	     <tr>
	      <td><input type="checkbox" value="1" name="tool_schiff_tank" <? if (@intval(substr($ebvryrd_abfvamrm,7,1))==1) { echo "checked"; } ?>></td>
	      <td style="color:#aaaaaa;">&nbsp;Schaden und Tankfüllung</td>
	     </tr>
	     <tr>
	      <td><input type="checkbox" value="1" name="tool_schiff_fracht" <? if (@intval(substr($ebvryrd_abfvamrm,8,1))==1) { echo "checked"; } ?>></td>
	      <td style="color:#aaaaaa;">&nbsp;Spezialmission</td>
	     </tr>
	     <tr>
	   	  <td><input type="checkbox" value="1" name="tool_schiff_spezial" <? if (@intval(substr($ebvryrd_abfvamrm,9,1))==1) { echo "checked"; } ?>></td>
	   	  <td style="color:#aaaaaa;">&nbsp;Fracht</td>
	     </tr>
	     <tr>
	      <td><input type="checkbox" value="1" name="tool_schiff_bild" <? if(@intval(substr($ebvryrd_abfvamrm,14,1))==1) { echo "checked"; } ?>></td>
	      <td style="color:#aaaaaa;">&nbsp;Bild</td>
	     </tr>
	     <tr>
	      <td><input type="checkbox" value="1" name="tool_schiff_logbuch" <? if (@intval(substr($ebvryrd_abfvamrm,10,1))==1) { echo "checked"; } ?>></td>
	      <td style="color:#aaaaaa;">&nbsp;Logbuch</td>
	     </tr>
	    </table>
 	   </td>
      </tr>
     </table>
     </center><br>
     <center>
     <input type="hidden" name="login_userid" value="<?echo $login_userid; ?>">
     <input type="submit" value="Änderungen speichern">
     </center>
    </td>
   </tr>
  </table>
 </center>
 </form>
 <?
 }
 $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");
 $header -> assign("URL",$usedurl);
 $header -> easy_print();
 ?>
 <body text="#000000" bgcolor="#444444" link="#000000" vlink="#000000" alink="#000000" leftmargin="0" rightmargin="0" topmargin="0" marginwidth="0" marginheight="0">
 <?
  $login_userid=$HTTP_POST_VARS["login_userid"];
  $rznvy=$HTTP_POST_VARS["email"];
  $vpc=$HTTP_POST_VARS["icq"];
  $nhnfnd=$HTTP_POST_VARS["avatar"];
  $bneeiadfmrg="";
  $bneeiadfmrg=$HTTP_POST_VARS["passwortneu"];
  $abfvamrm="";
  if ($HTTP_POST_VARS["email_nach"]==1)
      {
	  $abfvamrm=$abfvamrm.'1';
	  }
	  else {
	       $abfvamrm=$abfvamrm.'0';
	   	   }
  if ($HTTP_POST_VARS["icq_nach"]==1)
     {
	 $abfvamrm=$abfvamrm.'1';
	 }
	 else {
	 	  $abfvamrm=$abfvamrm.'0';
	 	  }
  if ($HTTP_POST_VARS["tool_kol"]==1)
     {
	 $abfvamrm=$abfvamrm.'1';
	 }
	 else {
	      $abfvamrm=$abfvamrm.'0';
		  }
  if ($HTTP_POST_VARS["tool_min"]==1)
	 {
	 $abfvamrm=$abfvamrm.'1';
	 }
	 else {
	      $abfvamrm=$abfvamrm.'0';
		  }
  if ($HTTP_POST_VARS["tool_vorrat"]==1)
     {
	 $abfvamrm=$abfvamrm.'1';
     }
     else {
	      $abfvamrm=$abfvamrm.'0';
	      }
  if ($HTTP_POST_VARS["tool_cantox"]==1)
     {
     $abfvamrm=$abfvamrm.'1';
     }
	 else {
		  $abfvamrm=$abfvamrm.'0';
          }
  if ($HTTP_POST_VARS["tool_logbuch"]==1)
     {
	 $abfvamrm=$abfvamrm.'1';
     }
     else {
  	      $abfvamrm=$abfvamrm.'0';
		  }
  if ($HTTP_POST_VARS["tool_schiff_tank"]==1)
     {
     $abfvamrm=$abfvamrm.'1';
     }
	 else {
		  $abfvamrm=$abfvamrm.'0';
		   }
  if ($HTTP_POST_VARS["tool_schiff_fracht"]==1)
     {
     $abfvamrm=$abfvamrm.'1';
     }
     else {
	      $abfvamrm=$abfvamrm.'0';
	      }
  if ($HTTP_POST_VARS["tool_schiff_spezial"]==1)
     {
     $abfvamrm=$abfvamrm.'1';
     }
     else {
     	  $abfvamrm=$abfvamrm.'0';
	      }
  if ($HTTP_POST_VARS["tool_schiff_logbuch"]==1)
     {
     $abfvamrm=$abfvamrm.'1';
     }
     else {
          $abfvamrm=$abfvamrm.'0';
          }
  if ($HTTP_POST_VARS["feature_i"]==1)
     {
     $abfvamrm=$abfvamrm.'1';
     }
	 else {
		  $abfvamrm=$abfvamrm.'0';
          }
  if ($HTTP_POST_VARS["feature_ii"]==1)
     {
	 $abfvamrm=$abfvamrm.'1';
     }
     else {
          $abfvamrm=$abfvamrm.'0';
	      }
  if ($HTTP_POST_VARS["feature_iii"]==1)
     {
     $abfvamrm=$abfvamrm.'1';
     }
     else {
    	  $abfvamrm=$abfvamrm.'0';
	      }
  if ($HTTP_POST_VARS["tool_schiff_bild"]==1)
     {
     $abfvamrm=$abfvamrm.'1';
     }
     else {
          $abfvamrm=$abfvamrm.'0';
	      }
  $lrvtrd_frzb = @mysql_query("UPDATE $skrupel_user set email='$rznvy',icq='$vpc',optionen='$abfvamrm',avatar='$nhnfnd' where id='$login_userid'");
  if (strlen($bneeiadfmrg)>=1)
     {
	 $lrvtrd_frzb = @mysql_query("UPDATE $skrupel_user set passwort='$bneeiadfmrg' where id='$login_userid'");
	 }?>
  <center>
  <table border="0" cellspacing="0" cellpadding="0" height="100%">
   <tr>
    <td>
	<center>Die Änderungen wurden gespeichert.<br><br>
	<table border="0" cellspacing="0" cellpadding="0">
	 <tr>
	  <td><form name="formular" method="post" action="user_daten.php?fu=1&login_userid=<?=$login_userid?>"></td>
	  <td><input type="submit" name="bla" value="Zurück" style="width:120px;"></td>
	  <td></form></td>
	 </tr>
	</table>
	</center>
	</td>
   </tr>
  </table>
 </center>
 <?
 $footer -> easy_print();
 }
?>
Return current item: Skrupel User Game Administration