<?

/*
// +--------------------------------------------------------------------------+
// | Project:    NVTracker - NetVision BitTorrent Tracker                     |
// +--------------------------------------------------------------------------+
// | This file is part of NVTracker. NVTracker is based on BTSource,          |
// | originally by RedBeard of TorrentBits, extensively modified by           |
// | Gartenzwerg.                                                             |
// |                                                                          |
// | NVTracker is free software; you can redistribute it and/or modify        |
// | it under the terms of the GNU General Public License as published by     |
// | the Free Software Foundation; either version 2 of the License, or        |
// | (at your option) any later version.                                      |
// |                                                                          |
// | NVTracker is distributed in the hope that it will be useful,             |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of           |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            |
// | GNU General Public License for more details.                             |
// |                                                                          |
// | You should have received a copy of the GNU General Public License        |
// | along with NVTracker; if not, write to the Free Software Foundation,     |
// | Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA            |
// +--------------------------------------------------------------------------+
// | Obige Zeilen dürfen nicht entfernt werden!    Do not remove above lines! |
// +--------------------------------------------------------------------------+
 */

require_once("include/bittorrent.php");

hit_start();

dbconn(false);

hit_count();

loggedinorreturn();
$res = mysql_query("SELECT COUNT(*) FROM messages WHERE receiver=" . $CURUSER["id"] . " AND folder_in<>0") or print(mysql_error());
$arr = mysql_fetch_row($res);
$messages = $arr[0];
$res = mysql_query("SELECT COUNT(*) FROM messages WHERE receiver=" . $CURUSER["id"] . " AND folder_in<>0 AND unread='yes'") or print(mysql_error());
$arr = mysql_fetch_row($res);
$unread = $arr[0];
$res = mysql_query("SELECT COUNT(*) FROM messages WHERE sender=" . $CURUSER["id"] . " AND folder_out<>0") or print(mysql_error());
$arr = mysql_fetch_row($res);
$outmessages = $arr[0];


stdhead($CURUSER["username"] . "s Profil", false);

?>

<table cellpadding="4" cellspacing="1" border="0" style="width:600px" class="tableinborder">
 <tr class="tabletitle">
  <td colspan="10" width="100%"><span class="normalfont"><center><b> 
<?
if ($_GET["edited"]) {
	print("Dein Profil wurde aktualisiert!");
	if ($_GET["mailsent"])
		print("Best&auml;tigungsmail wurde versandt!");
}
elseif ($_GET["emailch"])
	print("eMail-Addresse ge&auml;ndert!\n");
else
	print("Willkommen, <a href=userdetails.php?id=$CURUSER[id]>$CURUSER[username]</a>!\n");

?> </b></center></span></td> 
 </tr><tr><td width="100%" class="tablea">
<table class="tableinborder" border="0" cellspacing="1" cellpadding="5" align="center" width="100%">
<tr>
<td class="tablea" style="text-align:center" width="25%"><a href="logout.php"><b>Logout</b></a></td>
<td class="tableb" style="text-align:center" width="25%"><a href="mytorrents.php"><b>Meine Torrents</b></a></td>
<td class="tablea" style="text-align:center" width="25%"><a href="friends.php"><b>Meine Buddyliste</b></a></td>

<td class="tablea" style="text-align:center" width="25%"><a href="uploadapp.php"><b><font color=red>UPLOADER-BEWERBUNG</b></font></a></td>
</tr>
<?php
$announcement = $CURUSER['announce'];
if ($announcement)
print("<tr><td class=tablea colspan=4 align=center><b><a href=$BASEURL/announcement.php>Ankündigungen!</b></a></td></tr>");
if ($messages){
  print("<tr><td class=tablea colspan=5 align=center>Du hast $messages Nachricht" . ($messages != 1 ? "en" : "") . ' ('.$unread.' ungelesene) in Deinem <a href="messages.php?folder='.PM_FOLDERID_INBOX.'"><b>Posteingang</b></a>, '."\n");
	if ($outmessages)
		print('<br>und '.$outmessages.' Nachricht' . ($outmessages != 1 ? "en" : "") . ' in Deinem <a href="messages.php?folder='.PM_FOLDERID_OUTBOX.'"><b>Postausgang</b></a>.'."\n".'</td></tr>');
	else
		print('<br>und Dein <a href="messages.php?folder='.PM_FOLDERID_OUTBOX.'"><b>Postausgang</b></a> ist leer.</td></tr>');
}
else
{
  print('<tr><td class=tablea colspan=5 align=center>Dein <a href="messages.php?folder='.PM_FOLDERID_INBOX.'">'."<b>Posteingang</b></a> ist leer, \n");
	if ($outmessages)
		print("<br>und Du hast $outmessages Nachricht" . ($outmessages != 1 ? "en" : "") . ' in Deinem <a href="messages.php?folder='.PM_FOLDERID_OUTBOX.'">'."<b>Postausgang</b></a>.\n</td></tr>");
	else
		print('<br>und Dein <a href="messages.php?folder='.PM_FOLDERID_OUTBOX.'"><b>Postausgang</b></a> auch.</td></tr>');
}

?>
</tr>
</table>
<br>
<form method="post" action="takeprofedit.php">
<table class="tableinborder" border="0" cellspacing="1" cellpadding="4" align="center" width="100%">
<?

/***********************

$res = mysql_query("SELECT COUNT(*) FROM ratings WHERE user=" . $CURUSER["id"]);
$row = mysql_fetch_array($res);
tr("Ratings submitted", $row[0]);

$res = mysql_query("SELECT COUNT(*) FROM comments WHERE user=" . $CURUSER["id"]);
$row = mysql_fetch_array($res);
tr("Written comments", $row[0]);

****************/

$ss_r = mysql_query("SELECT * from stylesheets") or die;
$ss_sa = array();
while ($ss_a = mysql_fetch_array($ss_r))
{
  $ss_id = $ss_a["id"];
  $ss_name = $ss_a["name"];
  $ss_sa[$ss_name] = $ss_id;
}
ksort($ss_sa);
reset($ss_sa);
while (list($ss_name, $ss_id) = each($ss_sa))
{
  if ($ss_id == $CURUSER["stylesheet2"]) $ss = " selected=\"selected\""; else $ss = "";
  $stylesheets .= "<option value=\"$ss_id\" $ss>$ss_name</option>\n";
}

$ss_r = mysql_query("SELECT * from stylesheets") or die;
$ss_sa = array();
while ($ss_a = mysql_fetch_array($ss_r))
{
  $ss_id = $ss_a["id"];
  $ss_name = $ss_a["name"];
  $ss_sa[$ss_name] = $ss_id;
}
ksort($ss_sa);
reset($ss_sa);
while (list($ss_name, $ss_id) = each($ss_sa))
{
  if ($ss_id == $CURUSER["stylesheet"]) $ss = " selected"; else $ss = "";
  $stylesheets .= "<option value=$ss_id$ss>$ss_name</option>\n";
}

$countries = "<option value=0>---- Keines ausgew&auml;hlt ----</option>\n";

$ct_r = mysql_query("SELECT id,name FROM countries ORDER BY name") or die;
while ($ct_a = mysql_fetch_array($ct_r))
  $countries .= "<option value=$ct_a[id]" . ($CURUSER["country"] == $ct_a['id'] ? " selected" : "") . ">$ct_a[name]</option>\n";

function format_tz($a)
{
	$h = floor($a);
	$m = ($a - floor($a)) * 60;
	return ($a >= 0?"+":"-") . (strlen(abs($h)) > 1?"":"0") . abs($h) .
		":" . ($m==0?"00":$m);
}
print("<tr><td class=\"tablecat\" colspan=\"2\" align=left><center>Kontakt Einstellung</center></td></tr>\n");

if(get_user_class()>=UC_MODERATOR){
tr("Abwesend", "<input type=radio name=wech" . ($CURUSER["wech"] == "yes" ? " checked" : "") . " value=yes>Ja
<input type=radio name=wech" .  ($CURUSER["wech"] == "no" ? " checked" : "") . " value=no>Nein<br><font class=small size=1>Sich selber als abwesend anzeigen lassen wenn mann mal länger weg sein sollte.</font>"
,1);
}

tr("PNs akzeptieren",
"<input type=\"radio\" name=\"acceptpms\"" . ($CURUSER["acceptpms"] == "yes" ? " checked\"checked\"" : "") . " value=yes>Alle (au&szlig;er blockierte)
<input type=\"radio\" name=\"acceptpms\"" .  ($CURUSER["acceptpms"] == "friends" ? " checked\"checked\"" : "") . " value=friends><b>nur</b> Freunde (Buddyliste)
<input type=\"radio\" name=\"acceptpms\"" .  ($CURUSER["acceptpms"] == "no" ? " checked\"checked\"" : "") . " value=no><b>nur</b> Team"
,1);



tr("Empfohlene Torrents", "<input type=\"checkbox\" name=\" showrec\"" . ($CURUSER["showrec"] == "yes" ? " checked\"checked\"" : "") . "> Empfohlene Torrents in der Liste anzeigen",1);
tr("Geschlecht",
"<input type=\"radio\" name=\"geschlecht\"" .  ($CURUSER["geschlecht"] == "Keine"     ? " checked\"checked\"" : "") . " value=Keine>Keine Angabe
 <input type=\"radio\" name=\"geschlecht\"" .  ($CURUSER["geschlecht"] == "Weiblich"  ? " checked\"checked\"" : "") . " value=Weiblich>Weiblich
 <input type=\"radio\" name=\"geschlecht\"" .  ($CURUSER["geschlecht"] == "Männlich" ? " checked\"checked\"" : "") . " value=Männlich>Männlich"
,1);
tr("Familienstand",
"<input type=\"radio\" name=\"gender\"" .  ($CURUSER["gender"] == "Keine"     ? " checked\"checked\"" : "") . " value=Keine>Keine Angabe
 <input type=\"radio\" name=\"gender\"" .  ($CURUSER["gender"] == "Singel"  ? " checked\"checked\"" : "") . " value=Singel>Singel
 <input type=\"radio\" name=\"gender\"" .  ($CURUSER["gender"] == "Vergeben" ? " checked\"checked\"" : "") . " value=Vergeben>Vergeben"
,1);


tr("PNs l&ouml;schen", "<input type=\"checkbox\" name=\"deletepms\"" . ($CURUSER["deletepms"] == "yes" ? " checked\"checked\"" : "") . "> (Bei Antwort PN l&ouml;schen)",1);
tr("PNs speichern", "<input type=\"checkbox\" name=\"savepms\"" . ($CURUSER["savepms"] == "yes" ? " checked\"checked\"" : "") . "> (Bei Antwort PN speichern)",1);

tr("E-Mails akzeptieren",
"<input type=\"radio\" name=\"acceptemails\"" . ($CURUSER["accept_email"] == "yes" ? " checked=\"checked\"" : "") . " value=\"yes\">Alle (au&szlig;er blockierte)
<input type=\"radio\" name=\"acceptemails\"" .  ($CURUSER["accept_email"] == "friends" ? " checked=\"checked\"" : "") . " value=\"friends\"><b>nur</b> Freunde (Buddyliste)
<input type=\"radio\" name=\"acceptemails\"" .  ($CURUSER["accept_email"] == "no" ? " checked=\"checked\"" : "") . " value=\"no\"><b>nur</b> Team"
,1);
tr("Wie habt ihr den weg zum Tracker gefunden??",
"<center><input type=\"checkbox\" name=\"werbung\"" . ($CURUSER["werbung"] == "0" ? " checked\"checked\"" : "") . " value=\"0\">Keine Angabe
<input type=\"checkbox\" name=\"werbung\"" . ($CURUSER["werbung"] == "Topliste" ? " checked\"checked\"" : "") . " value=\"Topliste\">Topliste
<input type=\"checkbox\" name=\"werbung\"" . ($CURUSER["werbung"] == "PartnerTracker" ? " checked\"checked\"" : "") . " value=\"PartnerTracker\">Partner Tracker<br>
<input type=\"checkbox\" name=\"werbung\"" .  ($CURUSER["werbung"] == "Google" ? " checked\"checked\"" : "") . " value=\"Google\">Google
<input type=\"checkbox\" name=\"werbung\"" .  ($CURUSER["werbung"] == "Saugstube" ? " checked\"checked\"" : "") . " value=\"Saugstube\">Saugstube
<input type=\"checkbox\" name=\"werbung\"" .  ($CURUSER["werbung"] == "Deluxebits" ? " checked\"checked\"" : "") . " value=\"Deluxebits\">Deluxebits<br>
<input type=\"checkbox\" name=\"werbung\"" .  ($CURUSER["werbung"] == "Freunde" ? " checked\"checked\"" : "") . " value=\"Freunde\">Freunde
<input type=\"checkbox\" name=\"werbung\"" .  ($CURUSER["werbung"] == "andere" ? " checked\"checked\"" : "") . " value=\"andere\">andere</center>",1);

$r = mysql_query("SELECT id,name FROM categories ORDER BY name") or sqlerr();
//$categories = "Default browsing categories:<br>\n";
if (mysql_num_rows($r) > 0)
{
	$categories .= "<table><tr>\n";
	$i = 0;
	while ($a = mysql_fetch_assoc($r))
	{
	  $categories .=  ($i && $i % 2 == 0) ? "</tr><tr>" : "";
	  $categories .= "<td class=bottom style='padding-right: 5px'><input name=cat$a[id] type=\"checkbox\" " . (strpos($CURUSER['notifs'], "[cat$a[id]]") !== false ? " checked" : "") . " value='yes'>&nbsp;" . htmlspecialchars($a["name"]) . "</td>\n";
	  ++$i;
	}
	$categories .= "</tr></table>\n";
}

$statboxcontent = array("top"=>"Über dem Menü", "bottom"=>"Unter dem Menü", "hide"=>"Gar nicht anzeigen");
$statbox = "";
foreach ($statboxcontent as $dbval => $dispval) {
    $statbox .= "<input id=\"statbox$dbval\" type=\"radio\" name=\"statbox\" value=\"$dbval\"";
    if ($CURUSER["statbox"] == $dbval)
        $statbox .= " checked=\"checked\"";
    $statbox .= "><label for=\"statbox$dbval\"> $dispval</label>\n";
}

tr("eMail Benachrichtigung", "<input type=checkbox name=pmnotif" . (strpos($CURUSER['notifs'], "[pm]") !== false ? " checked" : "") . " value=yes> Wenn ich eine PN erhalten habe.<br>\n" .
	 "<input type=checkbox name=emailnotif" . (strpos($CURUSER['notifs'], "[email]") !== false ? " checked" : "") . " value=yes> Wenn ein Torrent in den unten markierten Kategorien hochgeladen wurde.\n"
   , 1);
   print("<tr class=tableb><td>PM Nachricht neue Kommentare</td>" .
"<td class=tablea align=left><input type=radio name=commentpm" . ($CURUSER["commentpm"] == "yes" ? " checked" : "") . " value=yes>Ja" .
"<input type=radio name=commentpm" .  ($CURUSER["commentpm"] == "no" ? " checked" : "") . " value=no>Nein" .
"<br><font class=smallfont size=1><b>Info:</b>Benachrichtigung über neue Kommentare in deinen Hochgeladenen Torrents." . " <i>Standard ist Nein.</i></font>");
print("<tr><td class=\"tablecat\" colspan=\"2\" align=left><center>Anzeige Einstellungen</center></td></tr>\n");
tr("Shoutbox Style", "Anfang: <input name=shoutanfang size=60 value=\"" . htmlspecialchars($CURUSER["shoutanfang"]) .
  "\"><br>\n(zb. [b][color=White][font=Comic Sans MS][size=5])<br>\n<br>\nSchluss:  <input name=shoutende size=60 value=\"" . htmlspecialchars($CURUSER["shoutende"]) .
  "\">\n<br>(zb. [/size][/font][/color][/b])<br><br><font color= red><div align=center>Wenn du diese Option nutzt, kannst du deine Schriftart und Farbe nicht mehr in der Shoutbox einstellen!!!</div></font>",1);
tr("Shoutbox-BG",
"<input type=radio name=bgshout" . ($CURUSER["bgshout"] == "1" ? " checked" : "") . " value=1> 
<input type=radio name=bgshout" .  ($CURUSER["bgshout"] == "2" ? " checked" : "") . " value=2>
<input type=radio name=bgshout" . ($CURUSER["bgshout"] == "3" ? " checked" : "") . " value=3> 
<input type=radio name=bgshout" . ($CURUSER["bgshout"] == "4" ? " checked" : "") . " value=4> 
<input type=radio name=bgshout" . ($CURUSER["bgshout"] == "5" ? " checked" : "") . " value=5> 
<input type=radio name=bgshout" . ($CURUSER["bgshout"] == "6" ? " checked" : "") . " value=6> 
<input type=radio name=bgshout" . ($CURUSER["bgshout"] == "7" ? " checked" : "") . " value=7> 
",1);


tr("Diese Kategorien beim<br>browsen anzeigen",$categories,1);
tr("Stylesheet", "<select name=stylesheet>\n$stylesheets\n</select>",1);

tr("Land", "<select name=country>\n$countries\n</select>",1);
tr("Avatar URL", "<input name=avatar size=60 value=\"" . htmlspecialchars($CURUSER["avatar"]) .
  "\"><br>\nDie Breite sollte 150 Pixel betragen (wird ge&auml;ndert, wenn n&ouml;tig!).</a>!",1);
tr("Avatar Gallerie", "<a href=/avatar.php>Hier eine kleine Auswahl von Ava´s.</a>", 1);
if ($GLOBALS["CLIENT_AUTH"] == CLIENT_AUTH_PASSKEY)
    tr("PassKey","<input type=\"checkbox\" name=\"chpasskey\" value=\"1\"> PassKey neu generieren (Bitte vorher das <a href=\"faq.php#userf\"><b>FAQ LESEN</b></a>!)",1);
tr("Torrentliste","<input type=\"radio\" id=\"torrentlistnew\" name=\"torrentlist\" value=\"new\"".($CURUSER["oldtorrentlist"]=="no"?" checked=\"checked\"":"")."><label for=\"torrentlistnew\"> Platzsparendes Layout mit PopUp für zusätzliche Informationen</label><br><input type=\"radio\" id=\"torrentlistold\" name=\"torrentlist\" value=\"old\"".($CURUSER["oldtorrentlist"]=="yes"?" checked=\"checked\"":"")."><label for=\"torrentlistold\"> Tabellarisches Layout, sehr breite Darstellung</label>",1);




tr("Useruploads","<input type=\"radio\" id=\"useruploadsno\" name=\"useruploads\" value=\"no\"".($CURUSER["hideuseruploads"]=="no"?" checked=\"checked\"":"")."><label for=\"useruploadsno\"> Alle Uploads anzeigen</label>",1);

tr("Userbar", "<img src=\"bar.php/".$CURUSER["id"].".png\" border=\"0\"><br />Dies ist dein Userbar.<br /><input type=\"text\" size=65 value=\"[url=$DEFAULTBASEURL][img]$DEFAULTBASEURL/bar.php/".$CURUSER["id"].".png[/img][/url]\" readonly />",1);

tr("Torrents pro Seite", "<input type=text size=10 name=torrentsperpage value=$CURUSER[torrentsperpage]> (0=Standardwert)",1);
tr("Topics pro Seite", "<input type=text size=10 name=topicsperpage value=$CURUSER[topicsperpage]> (0=Standardwert)",1);
tr("Posts pro Seite", "<input type=text size=10 name=postsperpage value=$CURUSER[postsperpage]> (0=Standardwert)",1);
print("<tr><td class=\"tablecat\" colspan=\"2\" align=left><center>Navigation Anzeige</center></td></tr>\n");
tr("Uhr-Anzeige Navibar",
"<input type=radio name=showtspeaknav" . ($CURUSER["showtspeaknav"] == "yes" ? " checked" : "") . " value=yes>Ja
<input type=radio name=showtspeaknav" . ($CURUSER["showtspeaknav"] == "no" ? " checked" : "") . " value=no>Nein",1);
tr("Index-Anzeige",
"<input type=radio name=indexnav" . ($CURUSER["indexnav"] == "open" ? " checked" : "") . " value=open>Offen
<input type=radio name=indexnav" .  ($CURUSER["indexnav"] == "closed" ? " checked" : "") . " value=closed>Geschlossen",1);
tr("Torrents-Anzeige",
"<input type=radio name=tornav" . ($CURUSER["tornav"] == "open" ? " checked" : "") . " value=open>Offen
<input type=radio name=tornav" .  ($CURUSER["tornav"] == "closed" ? " checked" : "") . " value=closed>Geschlossen",1);
tr("MY Account-Anzeige",
"<input type=radio name=usernav" . ($CURUSER["usernav"] == "open" ? " checked" : "") . " value=open>Offen
<input type=radio name=usernav" .  ($CURUSER["usernav"] == "closed" ? " checked" : "") . " value=closed>Geschlossen",1);
tr("Uhr-Anzeige",
"<input type=radio name=tspeaknav" . ($CURUSER["tspeaknav"] == "open" ? " checked" : "") . " value=open>Offen
<input type=radio name=tspeaknav" .  ($CURUSER["tspeaknav"] == "closed" ? " checked" : "") . " value=closed>Geschlossen",1);
if (get_user_class() >= UC_MODERATOR)
tr("Team-Anzeige",
"<input type=radio name=adminnav" . ($CURUSER["adminnav"] == "open" ? " checked" : "") . " value=open>Offen
<input type=radio name=adminnav" .  ($CURUSER["adminnav"] == "closed" ? " checked" : "") . " value=closed>Geschlossen",1);
{
	
}
print("<tr><td class=\"tablecat\" colspan=\"2\" align=left><center>User Details Einstellungen</center></td></tr>\n");
//Begin Account Parken by volcem
if(get_user_class()>=UC_USER)
{
  tr("Account Parken","<input type=checkbox name=parked value=yes ".($CURUSER["parked"]=="yes"?" checked":"")."> Account Parken, um Automatisches Löschen zu verhindern, schränkt die Funktionalität ein",1);
  tr("XXX Files", "<input type=radio name=xxx" . ($CURUSER["xxx"] == "yes" ? " checked" : "") . " value=yes>Ja
<input type=radio name=xxx" .  ($CURUSER["xxx"] == "no" ? " checked" : "") . " value=no>Nein<br><font class=small size=1>Hier kannst du in der Torrentliste XXX Files anzeigen lassen.</font>"
,1);
}

//ende Account Parken by volcem

// BEGIN: Anonymous Torrent Liste by truenoir
if(get_user_class()>=UC_POWER_USER)
{
  tr("Anonym bleiben","<input type=checkbox name=anon value=yes ".($CURUSER["anon"]=="yes"?" checked":"")."> Bei den Torrents als Anonym anzeigen lassen",1);
}
// END: Anonymous Torrent Liste by truenoir
tr("Avatare anzeigen", "<input type=checkbox name=avatars" . ($CURUSER["avatars"] == "yes" ? " checked" : "") . "> (User mit niedriger Bandbreite, sollten diese Option deaktivieren)",1);
/* tr("Ratio- und Torrentstatistik", $statbox, 1); */
tr("Ratio-Histogramm", "<input type=checkbox name=log_ratio" . ($CURUSER["log_ratio"] == "yes" ? " checked" : "") . " value=yes> Aktivieren<br><br>Das Histogramm erscheint auf der Seite \"Mein Profil\", sobald eine Schwankung der Ratio auftritt, frühestens jedoch nach zwei Stunden. Ein Deaktivieren der Option löscht alle bisher gespeicherten Daten!",1);
tr("wget-Kommando", "<input type=checkbox name=wgeturl" . ($CURUSER["wgeturl"] == "yes" ? " checked" : "") . " value=yes> Anzeigen<br><br>Dieses Kommando kann dazu benutzt werden, um den gewünschten Torrent schnell über die Kommandozeile herunterzuladen. Wird in der Torrent-Detailansicht angezeigt.",1);
tr("Info", "<textarea name=info cols=60 rows=4>" . $CURUSER["info"] . "</textarea><br>Wird in Deinem Profil angezeigt. <a href=tags.php target=_new>BBCodes</a> d&uuml;rfen verwendet werden.", 1);
tr("DSL Speed",
"<input type=\"radio\" name=\"dsl_speed\"" . ($CURUSER["dsl_speed"] == "1000" ? " checked\"checked\"" : "") . " value=1000> bis 1000
<input type=\"radio\" name=\"dsl_speed\"" .  ($CURUSER["dsl_speed"] == "2000" ? " checked\"checked\"" : "") . " value=2000>2000
<input type=\"radio\" name=\"dsl_speed\"" .  ($CURUSER["dsl_speed"] == "3000" ? " checked\"checked\"" : "") . " value=3000>3000
<input type=\"radio\" name=\"dsl_speed\"" .  ($CURUSER["dsl_speed"] == "4000" ? " checked\"checked\"" : "") . " value=4000>4000
<input type=\"radio\" name=\"dsl_speed\"" .  ($CURUSER["dsl_speed"] == "6000" ? " checked\"checked\"" : "") . " value=6000>6000
<input type=\"radio\" name=\"dsl_speed\"" .  ($CURUSER["dsl_speed"] == "16000" ? " checked\"checked\"" : "") . " value=16000>über 16000"
,1);

//PC STATUS
tr("PC Status",
"<input type=radio name=pcoff" .  ($CURUSER["pcoff"] == "ka" ? " checked" : "") . " value=ka>Keine Angaben
<input type=radio name=pcoff" . ($CURUSER["pcoff"] == "yes" ? " checked" : "") . " value=yes>PC in der Nacht an
<input type=radio name=pcoff" .  ($CURUSER["pcoff"] == "no" ? " checked" : "") . " value=no>PC in der Nacht aus"
,1);
//ende
tr("Speedtest"," Down und Uploadspeed testen <a target=\"blank\" href=\"speedtest.php\"><b>SPEEDTEST</b></a>",1);
tr("Bandbreite und Anbiter", "<b>Upload</b> <input type=text name=uplspeed size=5 value=\"" . htmlentities($CURUSER["uplspeed"]) .
  "\"> <b>kb/s</b> - <b>Download</b> <input type=text name=downspeed size=5 value=\"" . htmlentities($CURUSER["downspeed"]) .
  "\"> <b>Mbit</b> - <b>Provider</b> <input type=text name=isp size=5 value=\"" . htmlentities($CURUSER["isp"]) .
  "\">", 1);

tr("E-Mail-Addresse", "<input type=\"text\" name=\"email\" size=50 value=\"" . htmlspecialchars($CURUSER["email"]) . "\" />", 1);
tr("Messenger Informationen ", "    <table cellSpacing=\"3\" cellPadding=\"0\" width=\"100%\" border=\"0\">
            <tr>
        <td style=\"font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif\" colspan=2>
        Wenn du möchtest das andere Member dich schnellst möglich kontaktieren können dann fülle doch die folgenden Fenster aus.</td>
      </tr>
      <tr>
        <td style=\"font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif\">
        ICQ Nummer<br>
        <img alt src=pic/icq.gif width=\"17\" height=\"17\">
        <input maxLength=\"30\" size=\"25\" name=\"icq\" value=\"" . htmlspecialchars($CURUSER["icq"]) . "\" ></td>
        <td style=\"font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif\">
        AIM Screenname<br>
        <img alt src=pic/aim.gif width=\"17\" height=\"17\">
        <input maxLength=\"30\" size=\"25\" name=\"aim\" value=\"" . htmlspecialchars($CURUSER["aim"]) . "\" ></td>
      </tr>
      <tr>
        <td style=\"font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif\">
        MSN Addresse<br>
        <img alt src=pic/msn.gif width=\"17\" height=\"17\">
        <input maxLength=\"50\" size=\"25\" name=\"msn\" value=\"" . htmlspecialchars($CURUSER["msn"]) . "\" ></td>
        <td style=\"font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif\">
        Yahoo Screenname<br>
        <img alt src=pic/yahoo.gif width=\"17\" height=\"17\">
        <input maxLength=\"30\" size=\"25\" name=\"yahoo\" value=\"" . htmlspecialchars($CURUSER["yahoo"]) . "\" ></td>
      </tr>
      <tr>
        <td style=\"font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif\">
        Skypename<br>
        <img alt src=pic/skype.gif width=\"17\" height=\"17\">
        <input maxLength=\"32\" size=\"25\" name=\"skype\" value=\"" . htmlspecialchars($CURUSER["skype"]) . "\" ></td>
        <td style=\"font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif\">
         </td>
      </tr>
    </table>",1);
print("<tr><td class=\"tablecat\" colspan=\"2\" align=left><center><b>Hinweis:</b> Du bekommst eine eMail zur Best&auml;tigung zugeschickt!</center></td></tr>\n");
tr("Passwort &auml;ndern", "<input type=\"password\" name=\"chpassword\" size=\"50\" />", 1);
tr("Passwort wiederholen", "<input type=\"password\" name=\"passagain\" size=\"50\" />", 1);

function priv($name, $descr) {
	global $CURUSER;
	if ($CURUSER["privacy"] == $name)
		return "<input type=\"radio\" name=\"privacy\" value=\"$name\" checked=\"checked\" /> $descr";
	return "<input type=\"radio\" name=\"privacy\" value=\"$name\" /> $descr";
}

/* tr("Privacy level",  priv("normal", "Normal") . " " . priv("low", "Low (email address will be shown)") . " " . priv("strong", "Strong (no info will be made available)"), 1); */



?>

<tr><td class="tablea" colspan="2" style="text-align:center"><input type="submit" value="Ok!" style='height: 25px'> <input type="reset" value="Zur&uuml;cksetzen!" style='height: 25px'></td></tr>
<tr><td class="tableb" colspan="2" style="text-align:center"><a href="delacct.php">Mitgliedschaft beenden (Account l&ouml;schen)</a></td></tr>
</table>
</form>
</td></tr></table>

<?

stdfoot();

hit_end();

?>