Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $requid=$_GET['uid'];
- $edit=$_GET['edit'];
- $speichern=$_POST['speichern'];
- $host = "localhost";
- $user = "clubbeatz_db";
- $password = "QcPkRsSC";
- $dbname = "maindatabase";
- $connect = mysql_connect($host, $user, $password);
- $dbverbindung = mysql_connect ($host, $user, $password);
- @mysql_select_db($dbname,$connect) or die("Kann Datenbank nicht öffnen!");
- if($speichern!=""){
- $queryinto="insert into profil (id, uid, name, nachname, geschlecht, geburtstag, plz, ort, land, sendezeit, stil, im, www) VALUES ('', '".$_POST['uid']."', '".$_POST['name']."', '".$_POST['nachname']."', '".$_POST['geschlecht']."', '".$_POST['geburtstag']."', '".$_POST['plz']."', '".$_POST['ort']."', '".$_POST['land']."', '".$_POST['sendezeit']."', '".$_POST['stil']."', '".$_POST['im']."', '".$_POST['www']."')";
- mysql_query($queryinto,$connect);
- $gespeichert="jipp";
- }
- if($requid!=""){
- $query="SELECT * FROM profil WHERE uid='".$loggedInUser->display_username."'";
- }
- else {
- $query="SELECT * FROM profil WHERE uid='".$requid."'";
- }
- $result = mysql_query($query,$dbverbindung);
- while($ergebnis = mysql_fetch_array ($result)){
- }
- if ((isset($ergebnis['uid'])) or ($edit=="true")) {
- if ($edit=="true") {
- echo "<form method=\"post\" action=\"content.php?site=profile\">";
- }
- ?>
- <? if($gespeichert=="jipp"){echo("<font style=\"color=\"red\";\">Profil wurde gespeichert!</span>");}?>
- <table width="279" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="279" align="left" style="font-size:14px; font-stretch:50; color:#CCC;"><img src="../images/profil_24.jpg" width="137" height="34"></td>
- </tr>
- <tr>
- <td align="center" height="28" style="font-size:14px; font-stretch:50; color:#CCC;"><?php
- if ($edit=="true") {
- echo "".$loggedInUser->display_username."<input type=\"hidden\" name=\"uid\" value=\"".$loggedInUser->display_username."\">";
- } else { ?>
- <strong><?php echo $ergebnis['uid'];?></strong><?php }?></td>
- </tr>
- <tr>
- <td height="263"><table width="280" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="83" align="center" bgcolor="#323506" style="padding-left:3px;"><img src="images/01-home2_60.jpg" width="70" height="70" /></td>
- <td width="204" align="right" bgcolor="#323506" style="padding-left:3px;"><table width="195" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="70" height="25" bgcolor="#1E2004" style="padding-left:3px;">Vorname:</td>
- <td width="125" bgcolor="#1E2004" style="color:#FFF;"><?php
- if ($edit=="true") {
- ?><input style="background-image:url(images/form_back.jpg); width:184px; height: 15px; border: 0; font-family: 'Lucida Sans Unicode', 'Lucida Grande', sans-serif; font-size: 10px; color: #DDD; padding-left: 4px; padding-top: 1px; background-repeat: no-repeat; background-color: #121406;" type="text" name="name" id="name2" maxlength="45" value="<?php echo $ergebnis['name'];?>" /><?php }
- else {
- echo $ergebnis['name']; }?></td>
- </tr>
- <tr>
- <td height="25" style="padding-left:3px;">Nachname:</td>
- <td style="color:#FFF;"><?php
- if ($edit=="true") {
- ?><input style="background-image:url(images/form_back.jpg); width:184px; height: 15px; border: 0; font-family: 'Lucida Sans Unicode', 'Lucida Grande', sans-serif; font-size: 10px; color: #DDD; padding-left: 4px; padding-top: 1px; background-repeat: no-repeat; background-color: #121406;" type="text" name="nachname" id="name2" maxlength="45" value="<?php echo $ergebnis['nachname'];?>"/><?php }
- else {
- echo $ergebnis['nachname']; }?></td>
- </tr>
- <tr>
- <td height="25" bgcolor="#1E2004" style="padding-left:3px;">Geschlecht:</td>
- <td bgcolor="#1E2004" style="color:#FFF;"><?php
- if ($edit=="true") {
- ?><select name="geschlecht" id="select">
- <option value="männlich">männlich</option>
- <option value="weiblich">weiblich</option>
- </select><?php }
- else {
- echo $ergebnis['geschlecht']; }?></td>
- </tr>
- <tr>
- <td height="25" style="padding-left:3px;">Geburtstag:</td>
- <td style="color:#FFF;"><?php
- if ($edit=="true") {
- ?><input style="background-image:url(images/form_back.jpg); width:184px; height: 15px; border: 0; font-family: 'Lucida Sans Unicode', 'Lucida Grande', sans-serif; font-size: 10px; color: #DDD; padding-left: 4px; padding-top: 1px; background-repeat: no-repeat; background-color: #121406;" type="text" name="geburtstag" id="name2" maxlength="45" value="<?php echo $ergebnis['geburtstag'];?>"/><?php }
- else {
- echo $ergebnis['geburtstag']; }?></td>
- </tr>
- </table></td>
- </tr>
- <tr>
- <td colspan="2" bgcolor="#323506"><table width="280" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="82" height="25" bgcolor="#1E2004" style="padding-left:3px;">PLZ:</td>
- <td width="198" align="left" bgcolor="#1E2004" style="color:#FFF;"><?php
- if ($edit=="true") {
- ?><input style="background-image:url(images/form_back.jpg); width:184px; height: 15px; border: 0; font-family: 'Lucida Sans Unicode', 'Lucida Grande', sans-serif; font-size: 10px; color: #DDD; padding-left: 4px; padding-top: 1px; background-repeat: no-repeat; background-color: #121406;" type="text" name="plz" id="name2" maxlength="45" value="<?php echo $ergebnis['plz'];?>"/><?php }
- else {
- echo $ergebnis['plz']; }?></td>
- </tr>
- <tr>
- <td height="25" style="padding-left:3px;">Ort:</td>
- <td align="left" style="color:#FFF;"><?php
- if ($edit=="true") {
- ?><input style="background-image:url(images/form_back.jpg); width:184px; height: 15px; border: 0; font-family: 'Lucida Sans Unicode', 'Lucida Grande', sans-serif; font-size: 10px; color: #DDD; padding-left: 4px; padding-top: 1px; background-repeat: no-repeat; background-color: #121406;" type="text" name="ort" id="name2" maxlength="45" value="<?php echo $ergebnis['ort'];?>"/><?php }
- else {
- echo $ergebnis['ort']; }?></td>
- </tr>
- <tr>
- <td height="25" bgcolor="#1E2004" style="padding-left:3px;">Land:</td>
- <td align="left" bgcolor="#1E2004" style="color:#FFF;"><?php
- if ($edit=="true") {
- ?><input style="background-image:url(images/form_back.jpg); width:184px; height: 15px; border: 0; font-family: 'Lucida Sans Unicode', 'Lucida Grande', sans-serif; font-size: 10px; color: #DDD; padding-left: 4px; padding-top: 1px; background-repeat: no-repeat; background-color: #121406;" type="text" name="land" id="name2" maxlength="45" value="<?php echo $ergebnis['land'];?>"/><?php }
- else {
- echo $ergebnis['land']; }?></td>
- </tr>
- <tr>
- <td height="25" style="padding-left:3px;">Gewöhnliche<br />
- Sendezeit:</td>
- <td align="left" style="color:#FFF;"><?php
- if ($edit=="true") {
- ?><input style="background-image:url(images/form_back.jpg); width:184px; height: 15px; border: 0; font-family: 'Lucida Sans Unicode', 'Lucida Grande', sans-serif; font-size: 10px; color: #DDD; padding-left: 4px; padding-top: 1px; background-repeat: no-repeat; background-color: #121406;" type="text" name="sendezeit" id="name2" maxlength="45" value="<?php echo $ergebnis['sendezeit'];?>"/><?php }
- else {
- echo $ergebnis['sendezeit']; }?></td>
- </tr>
- <tr>
- <td height="25" bgcolor="#1E2004" style="padding-left:3px;">Musikstil:</td>
- <td align="left" bgcolor="#1E2004" style="color:#FFF;"><?php
- if ($edit=="true") {
- ?><input style="background-image:url(images/form_back.jpg); width:184px; height: 15px; border: 0; font-family: 'Lucida Sans Unicode', 'Lucida Grande', sans-serif; font-size: 10px; color: #DDD; padding-left: 4px; padding-top: 1px; background-repeat: no-repeat; background-color: #121406;" type="text" name="stil" id="name2" maxlength="45" value="<?php echo $ergebnis['stil'];?>"/><?php }
- else {
- echo $ergebnis['stil']; }?></td>
- </tr>
- <tr>
- <td height="25" style="padding-left:3px;">IM:</td>
- <td align="left" style="color:#FFF;"><?php
- if ($edit=="true") {
- ?><input style="background-image:url(images/form_back.jpg); width:184px; height: 15px; border: 0; font-family: 'Lucida Sans Unicode', 'Lucida Grande', sans-serif; font-size: 10px; color: #DDD; padding-left: 4px; padding-top: 1px; background-repeat: no-repeat; background-color: #121406;" type="text" name="im" id="name2" maxlength="45" value="<?php echo $ergebnis['im'];?>"/><?php }
- else {
- echo $ergebnis['im']; }?></td>
- </tr>
- <?php
- if ($edit=="true") {?>
- <tr>
- <td height="25" style="padding-left:3px;">Bild (www):</td>
- <td align="left" style="color:#FFF;"><input style="background-image:url(images/form_back.jpg); width:184px; height: 15px; border: 0; font-family: 'Lucida Sans Unicode', 'Lucida Grande', sans-serif; font-size: 10px; color: #DDD; padding-left: 4px; padding-top: 1px; background-repeat: no-repeat; background-color: #121406;" type="text" name="www" id="name" value="<?php echo $ergebnis['www'];?>"/>
- </td>
- </tr><?php }?>
- </table></td>
- </tr>
- <tr>
- <td colspan="2" align="center" bgcolor="#323506"><a href="#"></a></td>
- </tr>
- <?php
- if ($edit=="true") { } else {?>
- <tr>
- <td height="20" colspan="2" align="center" bgcolor="#1E2004"><a href="#">Jetzt PN Nachricht schicken!</a></td>
- </tr>
- <tr>
- <td height="20" colspan="2" align="center" bgcolor="#1E2004"><a href="content.php?site=profile&edit=true">PERSÖNLICHE DATEN ÄNDERN</a></td>
- </tr>
- <?php }?>
- </table></td>
- </tr>
- </table>
- <?php
- if ($edit=="true") {?>
- <input type="submit" value="speichern" name="speichern">
- </form><?php }?>
- <?php
- } else {
- ?>
- <table width="279" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="279" align="left" style="font-size:14px; font-stretch:50; color:#CCC;"><img src="../images/profil_24.jpg" width="137" height="34"></td>
- </tr>
- <tr>
- <td align="center" height="28" style="font-size:14px; font-stretch:50; color:#CCC;"><strong>djcrackhome</strong></td>
- </tr>
- <tr>
- <td height="97"><table width="280" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td bgcolor="#323506"><table width="280" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td height="25" style="padding-left:3px;">Aktuell ist die Profilfunktion noch nicht ganz funktionsbereit,<br />wir arbeiten dran!</td>
- </tr>
- </table></td>
- </tr>
- <tr>
- <td align="center" bgcolor="#323506"><a href="#"></a></td>
- </tr>
- <tr>
- <td height="20" align="center" bgcolor="#1E2004"><a href="#">Jetzt PN Nachricht schicken!</a></td>
- </tr>
- <tr>
- <td height="20" colspan="2" align="center" bgcolor="#1E2004"><a href="#">PERSÖNLICHE DATEN ÄNDERN</a></td>
- </tr>
- </table></td>
- </tr>
- </table>
- <?php }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement