<?php
if($i=="k") { $unn=mysql_query("SELECT * FROM ".$dbx."_user WHERE id='".$s."'"); $un=mysql_fetch_array($unn); if($u=="freundschaft" && $lg=="ok") { echo genTitel('01/16/05','Предложить дружить'); $cff=mysql_query("SELECT * FROM ".$dbx."_user_freunde WHERE (u1='".$usrd[id]."' AND u2='".$un[id]."') OR (u2='".$usrd[id]."' AND u1='".$un[id]."')"); $cf=mysql_fetch_array($cff); if($usrd[id]==$un[id]) echo "Добавьте меня в список Ваших друзей, пожалуйста."; elseif($cf[id]!="") echo "Das Mitglied \"".ucfirst($un[user])."\" уже находится в списке знакомых или уже подал запрос на дружбу."; else { if($o=="k") { mysql_query("INSERT INTO ".$dbx."_user_freunde (u1,u2) VALUES ('".$usrd[id]."','".$un[id]."')"); echo "<img src=icon/03/16/02.png width=16 height=16 align=absmiddle> Freundschaftsantrag erfolgreich versendet.<br><br>Sobald \"".ucfirst($un[user])."\" Принято, пользователь появится в списке знакомых."; $ph1=array('%uservorname%','%usernachname%','%absender%','%webtitel%','%weburl%'); $ph2=array($un[vorname],$un[nachname],ucfirst($usrd[user]),$cdb[titel],$cdb[url]); $mailtext = str_replace($ph1,$ph2,$cdb[mail_freunde]); if($un[e_freundemail]!="1") mail($un[email],"[".$cdb[titel]."] Freundschaftsanfrage",$mailtext,"From: $cdb[titel] <$cdb[email]>"); } else echo "Mцchten Sie dem Mitglied \"".ucfirst($un[user])."\"Предложение добавиться в Ваш список друзей. Добавить?<br><br><form action=box.php><input type=hidden name=iframe value=user><input type=hidden name=i value=k><input type=hidden name=s value=\"".$s."\"><input type=hidden name=u value=freundschaft><input type=hidden name=o value=k><input type=submit value=\"Ja, weiter\" class=formbutton></form>"; } } elseif($u=="nachricht") { echo genTitel('01/16/04','Отправить для  "'.ucfirst($un[user]).'" сообщение'); ?><script type=text/javascript>
function insert(aTag, eTag) { var input = document.forms['neu'].elements['cont']; input.focus();
if(typeof document.selection != 'undefined') {
var range = document.selection.createRange(); var insText = range.text;
range.text = aTag + insText + eTag; range = document.selection.createRange();
if (insText.length == 0) { range.move('character', -eTag.length); } else { range.moveStart('character', aTag.length + insText.length + eTag.length); }}
else if(typeof input.selectionStart != 'undefined') {
var start = input.selectionStart; var end = input.selectionEnd; var insText = input.value.substring(start, end);
input.value = input.value.substr(0, start) + aTag + insText + eTag + input.value.substr(end);
var pos; if (insText.length == 0) { pos = start + aTag.length; } else { pos = start + aTag.length + insText.length + eTag.length; }}}
</script><?php
 $betreff=$_POST[betreff]; $cont=$_POST[cont]; if($usrd[id]==$un[id]) echo "Вы не можете отправить себе сообщение."; elseif($betreff!="" || $cont!="") { mysql_query("INSERT INTO ".$dbx."_postfach (abs,empf,betreff,cont,datum) VALUES ('".$usrd[id]."','".$un[id]."','".secure_cont($betreff)."','".secure_cont($cont)."','".time()."')"); echo "<img src=icon/03/16/02.png width=16 height=16 align=absmiddle> Die Nachricht wurde erfolgreich ьbermittelt."; $ph3=array('%uservorname%','%usernachname%','%absender%','%webtitel%','%weburl%'); $ph4=array($un[vorname],$un[nachname],ucfirst($usrd[user]),$cdb[titel],$cdb[url]); $mailtext = str_replace($ph3,$ph4,$cdb[mail_nachricht]); if($un[e_nachrichtmail]!="1") mail($un[email],"[".$cdb[titel]."] Neue Nachricht",$mailtext,"From: $cdb[titel] <$cdb[email]>"); } else echo "<form action=box.php method=post name=neu><input type=hidden name=iframe value=user><input type=hidden name=i value=k><input type=hidden name=s value=\"".$s."\"><input type=hidden name=u value=nachricht><table border=0 cellspacing=0 cellpadding=5 width=100%><tr><td>Тема:</td><td align=right><input type=text name=betreff style=width:300px></td></tr><tr><td valign=top>Сообщение:</td><td align=right><textarea name=cont style=width:300px;height:70px></textarea><table border=0 cellspacing=3 cellpadding=3><tr><td class=small>Смайлики:</td><td><img src=icon/01/16/35.png width=16 height=16 style=cursor:pointer onClick=\"insert('', ' :-D ')\"> <img src=icon/01/16/36.png width=16 height=16 style=cursor:pointer onClick=\"insert('', ' :-) ')\"> <img src=icon/01/16/37.png width=16 height=16 style=cursor:pointer onClick=\"insert('', ' :-| ')\"> <img src=icon/01/16/38.png width=16 height=16 style=cursor:pointer onClick=\"insert('', ' :-( ')\"> <img src=icon/01/16/39.png width=16 height=16 style=cursor:pointer onClick=\"insert('', ' :-o ')\"> <img src=icon/01/16/40.png width=16 height=16 style=cursor:pointer onClick=\"insert('', ' :-p ')\"></td></tr></table></td></tr><tr><td colspan=2 align=right><input type=submit value=Отправить class=formbutton></td></tr></table></form>"; } elseif($u=="gaestebuch") { echo genTitel('04/16/14','Оставить отзыв пользователю "'.ucfirst($un[user]).'" '); ?><script type=text/javascript>
function insert(aTag, eTag) { var input = document.forms['neu'].elements['cont']; input.focus();
if(typeof document.selection != 'undefined') {
var range = document.selection.createRange(); var insText = range.text;
range.text = aTag + insText + eTag; range = document.selection.createRange();
if (insText.length == 0) { range.move('character', -eTag.length); } else { range.moveStart('character', aTag.length + insText.length + eTag.length); }}
else if(typeof input.selectionStart != 'undefined') {
var start = input.selectionStart; var end = input.selectionEnd; var insText = input.value.substring(start, end);
input.value = input.value.substr(0, start) + aTag + insText + eTag + input.value.substr(end);
var pos; if (insText.length == 0) { pos = start + aTag.length; } else { pos = start + aTag.length + insText.length + eTag.length; }}}
</script><?php
 $cont=$_POST[cont]; if($betreff!="" || $cont!="") { mysql_query("INSERT INTO ".$dbx."_gaestebuch (gast,user,cont,datum) VALUES ('".$usrd[id]."','".$un[id]."','".secure_cont($cont)."','".time()."')"); echo "<script type=text/javascript>
function Weiterleitung() {
parent.window.location.href = \"index.php?d=user&s=".$v2."&t=gaestebuch\";
}
window.setTimeout(\"Weiterleitung()\", 100);
</script><img src=icon/03/16/02.png width=16 height=16 align=absmiddle> Der Eintrag wurde erfolgreich hinzugefьgt."; $ph5=array('%uservorname%','%usernachname%','%absender%','%webtitel%','%weburl%'); $ph6=array($un[vorname],$un[nachname],ucfirst($usrd[user]),$cdb[titel],$cdb[url]); $mailtext = str_replace($ph5,$ph6,$cdb[mail_nachricht]); if($un[e_gbtmail]!="1") mail($un[email],"[".$cdb[titel]."] Neuer Gдstebucheintrag",$mailtext,"From: $cdb[titel] <$cdb[email]>"); } else echo "<form action=box.php method=post name=neu><input type=hidden name=iframe value=user><input type=hidden name=i value=k><input type=hidden name=s value=\"".$s."\"><input type=hidden name=v2 value=\"".$v2."\"><input type=hidden name=u value=gaestebuch><table border=0 cellspacing=0 cellpadding=5 width=100%><tr><td valign=top>Текст:</td><td align=right><textarea name=cont style=width:300px;height:80px></textarea><table border=0 cellspacing=3 cellpadding=3><tr><td class=small>Смайлики:</td><td><img src=icon/01/16/35.png width=16 height=16 style=cursor:pointer onClick=\"insert('', ' :-D ')\"> <img src=icon/01/16/36.png width=16 height=16 style=cursor:pointer onClick=\"insert('', ' :-) ')\"> <img src=icon/01/16/37.png width=16 height=16 style=cursor:pointer onClick=\"insert('', ' :-| ')\"> <img src=icon/01/16/38.png width=16 height=16 style=cursor:pointer onClick=\"insert('', ' :-( ')\"> <img src=icon/01/16/39.png width=16 height=16 style=cursor:pointer onClick=\"insert('', ' :-o ')\"> <img src=icon/01/16/40.png width=16 height=16 style=cursor:pointer onClick=\"insert('', ' :-p ')\"></td></tr></table></td></tr><tr><td colspan=2 align=right><input type=submit value=Отправить class=formbutton></td></tr></table></form>"; } } else { if($s!="") { $getp=mysql_query("SELECT * FROM ".$dbx."_user WHERE user='".$s."'"); $b=mysql_fetch_array($getp); } if($b[id]=="") echo genMsg('03/16/01','Das Profil konnte nicht gefunden werden.'); else { if($b[geschlecht]=="w") $mwi=9; else $mwi=6; echo genTitel('01/16/0'.$mwi,'Профиль '.ucfirst($b[user])); echo "<table border=0 cellspacing=0 cellpadding=0><tr><td valign=top>"; if(file_exists("avatar/".$b[id]."_m.jpg")==1) { $tn=$b[id]."_m.jpg"; $bn=$b[id]."_b.jpg"; } elseif(file_exists("avatar/".$b[id]."_m.png")==1) { $tn=$b[id]."_m.png"; $bn=$b[id]."_b.png"; } else { $tn="leer_".$b[geschlecht].".gif"; $bn="leer_".$b[geschlecht].".gif"; } if($tn!="leer_".$b[geschlecht].".gif") echo "<a href=avatar/".$bn."?".time()." rel=facebox>"; echo "<img src=avatar/".$tn."?".time()." width=200 height=200 style=\"border: 1px solid #ccc;padding:2px;vertical-align:middle;\"></a>
<div style=\"width:194px;padding:5px;border:1px solid #ccc;border-top:0px;text-align:left;\" class=small><img src=icon/01/10/05.png width=10 height=10 align=absmiddle>&nbsp;&nbsp;<a href=\""; if($lg!="ok") echo "box.php?box=login&d=user&s=".$s.""; else echo "box.php?iframe=user&s=".$b[id]."&u=freundschaft"; echo "\" rel=facebox>Предложить дружить</a></div>
<div style=\"width:194px;padding:5px;border:1px solid #ccc;border-top:0px;text-align:left;\" class=small><img src=icon/01/10/04.png width=10 height=10 align=absmiddle>&nbsp;&nbsp;<a href=\""; if($lg!="ok") echo "box.php?box=login&d=user&s=".$s.""; else echo "box.php?iframe=user&s=".$b[id]."&u=nachricht"; echo "\" rel=facebox>	Отправить сообщение</a></div>
<div style=\"width:194px;padding:5px;border:1px solid #ccc;border-top:0px;text-align:left;\" class=small><img src=icon/04/10/14.png width=10 height=10 align=absmiddle>&nbsp;&nbsp;<a href=\""; if($lg!="ok") echo "box.php?box=login&d=user&s=".$s.""; else echo "box.php?iframe=user&s=".$b[id]."&v2=".$b[user]."&u=gaestebuch"; echo "\" rel=facebox>Гостевая книга</a></div>
</td><td valign=top>"; $a=$b[id]; $fseite=$_GET[fseite]; if(!$fseite || $fseite==0) $fsza=0; else $fsza = $fseite * 10; $facc=0; $rando=$_GET[rando]; if(!$rando) $rando = rand(); $fgetaaa=mysql_query("SELECT * FROM ".$dbx."_user_freunde WHERE (u1='".$a."' OR u2='".$a."') AND status='ok'"); $fgetfff=mysql_query("SELECT * FROM ".$dbx."_user_freunde WHERE (u1='".$a."' OR u2='".$a."') AND status='ok' ORDER BY RAND($rando) LIMIT $fsza,10"); $faaanz=mysql_num_rows($fgetaaa); $fap1=$fsza+1; $fdsanz=$fap1+9; if($faaanz<$fdsanz) $fdsanz=$faaanz; $fans=ceil($faaanz/10); $faks=$fseite+1; $fnext=$fseite+1; $fprev=$fseite-1; $gseite=$_GET[gseite]; if(!$gseite || $gseite==0) $gsza=0; else $gsza = $gseite * 5; $gacc=0; $rando=$_GET[rando]; if(!$rando) $rando = rand(); $ggetaaa=mysql_query("SELECT * FROM ".$dbx."_gaestebuch WHERE user='".$b[id]."'"); $ggg=mysql_query("SELECT * FROM ".$dbx."_gaestebuch WHERE user='".$b[id]."' ORDER BY datum DESC LIMIT $gsza,5"); $gaaanz=mysql_num_rows($ggetaaa); $gap1=$gsza+1; $gdsanz=$gap1+4; if($gaaanz<$gdsanz) $gdsanz=$gaaanz; $gans=ceil($gaaanz/5); $gaks=$gseite+1; $gnext=$gseite+1; $gprev=$gseite-1; $aseite=$_GET[aseite]; if(!$aseite || $aseite==0) $asza=0; else $asza = $aseite * 10; $gacc=0; $rando=$_GET[rando]; if(!$rando) $rando = rand(); $agetaaa=mysql_query("SELECT * FROM ".$dbx."_user_fotos WHERE user='".$b[id]."'"); $agg=mysql_query("SELECT * FROM ".$dbx."_user_fotos WHERE user='".$b[id]."' ORDER BY RAND($rando) LIMIT $asza,10"); $aaaanz=mysql_num_rows($agetaaa); $aap1=$asza+1; $adsanz=$aap1+9; if($aaaanz<$adsanz) $adsanz=$aaaanz; $aans=ceil($aaaanz/10); $aaks=$aseite+1; $anext=$aseite+1; $aprev=$aseite-1; echo "<script type=text/javascript>
$(function() {
"; if($t=="freunde") echo "$('#container-5 > ul').tabs({ selected: 2 });"; elseif($t=="gaestebuch") echo "$('#container-5 > ul').tabs({ selected: 3 });"; elseif($t=="fotos") echo "$('#container-5 > ul').tabs({ selected: 4 });"; echo "
$('#container-5 > ul').tabs({ fx: { height: 'toggle', opacity: 'toggle' } });
});
</script>
<div style=width:642px;><div id=container-5><ul>
<li><a href=#profil><span>Профиль</span></a></li>
<li"; if($b[i_musik]=="" && $b[i_sport]=="" && $b[i_ziele]=="" && $b[i_essen]=="" && $b[i_hobby]=="") echo " class=ui-tabs-disabled"; echo "><a href=#interessen><span>Интересы</span></a></li>
<li"; if(mysql_num_rows($fgetaaa)==0) echo " class=ui-tabs-disabled"; echo "><a href=#freunde><span>Друзья (".mysql_num_rows($fgetaaa).")</span></a></li>
<li"; if(mysql_num_rows($ggetaaa)==0) echo " class=ui-tabs-disabled"; echo "><a href=#gaestebuch><span>Гостевая книга(".mysql_num_rows($ggetaaa).")</span></a></li>
<li"; if(mysql_num_rows($agetaaa)==0) echo " class=ui-tabs-disabled"; echo "><a href=#fotos><span>Фотографии (".mysql_num_rows($agetaaa).")</span></a></li>
</ul>
<div id=profil>
<table border=0 cellspacing=0 cellpadding=4 width=100%>
<tr><td colspan=3 style=\"border-bottom: 2px solid #ddd;\"><b>О мне</b></td></tr>
<tr><td colspan=3 style=\"border-bottom: 1px dotted #ddd;\"><div style=\"max-height:150px;overflow:auto;\">"; if($b[ueber]!="") echo nl2br($b[ueber]); else echo "<i>Bisher keine Angaben gemacht.</i>"; echo "</div></td></tr>
<tr><td colspan=3>&nbsp;</td></tr>
<tr><td colspan=3 style=\"border-bottom: 2px solid #ddd;\"><b>Persцnliches</b></td></tr>
<tr><td style=\"border-bottom: 1px dotted #ddd;\">Имя:</td><td colspan=2 style=\"border-bottom: 1px dotted #ddd;\">".$b[vorname]."</td></tr>
<tr><td style=\"border-bottom: 1px dotted #ddd;\">Возраст:</td><td colspan=2 style=\"border-bottom: 1px dotted #ddd;\">".alter(date("d",$b[geburtsdatum]),date("m",$b[geburtsdatum]),date("Y",$b[geburtsdatum]))." лет</td></tr>
<tr><td style=\"border-bottom: 1px dotted #ddd;\">Знак по зодиаку:</td><td colspan=2 style=\"border-bottom: 1px dotted #ddd;\"><img src=icon/sternzeichen/".str_replace("ц",oe,str_replace("ь",ue,$b[sternzeichen])).".gif width=16 height=16 align=absmiddle> ".ucfirst($b[sternzeichen])."</td></tr>
<tr><td style=\"border-bottom: 1px dotted #ddd;\">Пол:</td><td colspan=2 style=\"border-bottom: 1px dotted #ddd;\">"; if($b[geschlecht]=="m") echo "мужской"; else echo "женский"; echo "</td></tr>
<tr><td colspan=3>&nbsp;</td></tr>
<tr><td colspan=3 style=\"border-bottom: 2px solid #ddd;\"><b>Wohnort</b></td></tr>
<tr><td style=\"border-bottom: 1px dotted #ddd;\">Местонахождение:</td><td style=\"border-bottom: 1px dotted #ddd;\">".$b[ort]."</td><td align=right style=\"border-bottom: 1px dotted #ddd;\"><img src=images/map.png width=10 height=10 align=absmiddle> <a href=\"box.php?iframe=karte&v1=".$b[plz]." ".str_replace("ь","ue",str_replace("д","ae",str_replace("ц","oe",$b[ort])))."\" rel=facebox class=small>Показать на карте</a></td></tr>"; if(($b[land]=="de" || $b[land]=="ch" || $b[land]=="at") && $b[region]!="") { $dereg=array("bw"=>"Baden-Wьrttemberg","by"=>"Bayern","be"=>"Berlin","bb"=>"Brandenburg","hb"=>"Bremen","hh"=>"Hamburg","he"=>"Hessen","mv"=>"Mecklenburg-Vorpommern","ni"=>"Niedersachen","nw"=>"Nordrhein-Westfalen","rp"=>"Rheinland-Pfalz","sl"=>"Saarland","sn"=>"Sachsen","st"=>"Sachsen-Anhalt","sh"=>"Schleswig-Holstein","th"=>"Thьringen"); $chreg=array("ag"=>"Aargau","be"=>"Bern","bl"=>"Basel-Land","bs"=>"Basel-Stadt","fr"=>"Freiburg","ge"=>"Genf","gr"=>"Graubьnden","ju"=>"Jura","lu"=>"Luzern","ne"=>"Neuenburg","sg"=>"Sankt Gallen","sh"=>"Schaffhausen","so"=>"Solothurn","sz"=>"Schwyz","ti"=>"Tessin","vd"=>"Waadt","zg"=>"Zug","zh"=>"Zьrich","ur"=>"Uri","ow"=>"Obwalden","nw"=>"Nidwalden","gl"=>"Glarus","ar"=>"Appenzell Ausserrhoden","ai"=>"Appenzell Innerrhoden","tg"=>"Thurgau","vs"=>"Wallis"); $atreg=array("w"=>"Wien","n"=>"Niederцsterreich","o"=>"Oberцsterreich","b"=>"Burgenland","k"=>"Kдrnten","sa"=>"Salzburg","st"=>"Steiermark","t"=>"Tirol","v"=>"Vorarlberg"); echo "<tr><td style=\"border-bottom: 1px dotted #ddd;\">"; if($b[land]=="ch") echo "Kanton"; else echo "Bundesland"; echo ":</td><td colspan=2 style=\"border-bottom: 1px dotted #ddd;\"><img width=18 height=12 align=absmiddle src=icon/flaggen/".$b[land]."/".$b[region].".gif> "; if($b[land]=="ch") echo $chreg[$b[region]]; elseif($b[land]=="de") echo $dereg[$b[region]]; elseif($b[land]=="at") echo $atreg[$b[region]]; echo "</td></tr>"; } if($b[land]!="") { $laender=array("de"=>"Deutschland","at"=>"Цsterreich","ch"=>"Schweiz","li"=>"Liechtenstein","au"=>"Australien","be"=>"Belgien","dk"=>"Dдnemark","fi"=>"Finnland","fr"=>"Frankreich","gr"=>"Griechenland","gb"=>"Grossbritannien","it"=>"Italien","ca"=>"Kanada","lu"=>"Luxemburg","nz"=>"Neuseeland","nl"=>"Niederlande","no"=>"Norwegen","pl"=>"Polen","pt"=>"Portugal","se"=>"Schweden","sk"=>"Slowakei","es"=>"Spanien","tr"=>"Tьrkei","us"=>"USA"); echo "<tr><td style=\"border-bottom: 1px dotted #ddd;\">Страна:</td><td colspan=2 style=\"border-bottom: 1px dotted #ddd;\"><img width=18 height=12 align=absmiddle src=icon/flaggen/".$b[land].".gif> ".$laender[$b[land]]."</td></tr>"; } echo "
<tr><td style=\"border-bottom: 1px dotted #ddd;\">Погода:</td><td colspan=2 style=\"border-bottom: 1px dotted #ddd;\">"; $wetter = googleWetter($b[plz]); if($wetter=="unbekannt") echo "<i>неизвестно</i>"; else echo $wetter['wetter']." bei ".$wetter['temp']." Grad"; echo "</td></tr>
<tr><td colspan=3>&nbsp;</td></tr>
<tr><td colspan=3 style=\"border-bottom: 2px solid #ddd;\"><b>Статистика</b></td></tr>
<tr><td style=\"border-bottom: 1px dotted #ddd;\">Дата регистрации:</td><td colspan=2 style=\"border-bottom: 1px dotted #ddd;\">".date("d",$b[datum]).". ".nr2monat(date("n",$b[datum]))." ".date("Y",$b[datum])."</td></tr>
<tr><td style=\"border-bottom: 1px dotted #ddd;\">Статус:</td><td colspan=2 style=\"border-bottom: 1px dotted #ddd;\"><img width=10 height=10 align=absmiddle src=icon/04/10/0"; if($b[online]>(time()-250)) echo "2.png> онлайн"; else echo "1.png> оффлайн"; echo "</td></tr>
<tr><td style=\"border-bottom: 1px dotted #ddd;\">Последний онлайн:</td><td colspan=2 style=\"border-bottom: 1px dotted #ddd;\">"; $diff = time() - $b[online]; $days = ($diff - ($diff % 86400)) / 86400; $diff = $diff - ($days * 86400); $hours = ($diff - ($diff % 3600)) / 3600; $diff = $diff - ($hours * 3600); $minutes = ($diff - ($diff % 60)) / 60; $diff = $diff - ($minutes * 60); if($days!=0) { $egv = $days."&nbsp;Tag"; if($days!=1) $egv .= "en"; } elseif($hours!=0) { $egv = $hours."&nbsp;Stunde"; if($hours!=1) $egv .= "n"; } elseif($minutes!=0) { $egv = $minutes."&nbsp;Minute"; if($minutes!=1) $egv .= "n"; } if($egv=="") $egv="wenigen&nbsp;Sekunden"; echo "vor ".$egv."</td></tr>
</table>
</div>
<div id=interessen>
<table border=0 cellspacing=0 cellpadding=4 width=100%>
<tr><td colspan=2 style=\"border-bottom: 2px solid #ddd;\"><b>Интересы</b></td></tr>
<tr><td colspan=2 style=\"border-bottom: 1px dotted #ddd;\">"; if($b[i_hobby]=="") echo "<i>Нет сведений.</i>"; else echo str_replace("|",", ",str_replace("||","",$b[i_hobby])); echo "</td></tr>
<tr><td colspan=2>&nbsp;</td></tr>
<tr><td colspan=2 style=\"border-bottom: 2px solid #ddd;\"><b>Жанры</b></td></tr>
<tr><td colspan=2 style=\"border-bottom: 1px dotted #ddd;\">"; if($b[i_musik]=="") echo "<i>Нет сведений.</i>"; else echo str_replace("|",", ",str_replace("||","",$b[i_musik])); echo "</td></tr>
<tr><td colspan=2>&nbsp;</td></tr>
<tr><td colspan=2 style=\"border-bottom: 2px solid #ddd;\"><b>Спорт</b></td></tr>
<tr><td colspan=2 style=\"border-bottom: 1px dotted #ddd;\">"; if($b[i_sport]=="") echo "<i>Нет сведений.</i>"; else echo str_replace("|",", ",str_replace("||","",$b[i_sport])); echo "</td></tr>
<tr><td colspan=2>&nbsp;</td></tr>
<tr><td colspan=2 style=\"border-bottom: 2px solid #ddd;\"><b>Цель жизни</b></td></tr>
<tr><td colspan=2 style=\"border-bottom: 1px dotted #ddd;\">"; if($b[i_ziele]=="") echo "<i>Нет сведений.</i>"; else echo str_replace("|",", ",str_replace("||","",$b[i_ziele])); echo "</td></tr>
<tr><td colspan=2>&nbsp;</td></tr>
</table>
</div>
<div id=freunde>"; echo "<table border=0 cellspacing=0 cellpadding=0 align=center><tr>"; while($fgetf=mysql_fetch_array($fgetfff)) { $facc++; if($fgetf[u1]==$b[id]) $fdid=$fgetf[u2]; else $fdid=$fgetf[u1]; $fgetfpp=mysql_query("SELECT * FROM ".$dbx."_user WHERE id='".$fdid."'"); $fgetfp=mysql_fetch_array($fgetfpp); echo "<td align=center class=small style=width:120px;height:120px; onmouseover=\"document.getElementById('b".$fgetfp[id]."').style.width='80px';document.getElementById('b".$fgetfp[id]."').style.height='80px';\" onmouseout=\"document.getElementById('b".$fgetfp[id]."').style.width='50px';document.getElementById('b".$fgetfp[id]."').style.height='50px';\"><a href=\"".genURL('user-'.urlencode($fgetfp[user]).'/','index.php?d=user&s='.urlencode($fgetfp[user]))."\">"; if(file_exists("avatar/".$fgetfp[id]."_t.jpg")==1) echo "<img src=avatar/".$fgetfp[id]."_t.jpg?t=".time(); elseif(file_exists("avatar/".$fgetfp[id]."_t.png")==1) echo "<img src=avatar/".$fgetfp[id]."_t.png?t=".time(); else echo "<img src=avatar/leer_".$fgetfp[geschlecht].".gif"; echo " style=\"width:50px;height:50px;border: 1px solid #ccc;padding:2px;vertical-align:middle;margin-bottom:4px;\" id=b".$fgetfp[id]."></a><br><a href=\"".genURL('user-'.urlencode($fgetfp[user]).'/','index.php?d=user&s='.urlencode($fgetfp[user]))."\"><b>".ucfirst($fgetfp[user])."</b></a>&nbsp;<span class=small style=color:#aaa><img src=images/".$fgetfp[geschlecht].".gif align=absmiddle>&nbsp;".alter(date("d",$fgetfp[geburtsdatum]),date("m",$fgetfp[geburtsdatum]),date("Y",$fgetfp[geburtsdatum]))."</span></td>"; if($facc==5) echo "</tr><tr>"; } echo "</tr></table><br><div style=\"border-top:1px solid #ccc; padding: 15px; text-align:center;\" class=small><img src=icon/03/10/32.png width=10 height=10 align=absmiddle> "; if($fseite>0) echo "<a href=http://".$cdb[url]."?d=user&s=".$s."&t=freunde&fseite=".$fprev."&rando=".$rando.">Предыдущая страница</a>"; else echo "<span style=color:#aaa>Предыдущая страница</span>"; echo " &nbsp; &nbsp; | &nbsp; &nbsp; "; echo "Страница $faks из $fans"; echo " &nbsp; &nbsp; | &nbsp; &nbsp; "; if($faaanz>$fdsanz) echo "<a href=http://".$cdb[url]."?d=user&s=".$s."&t=freunde&fseite=".$fnext."&rando=".$rando.">Следующая страница</a>"; else echo "<span style=color:#aaa>Следующая страница</span>"; echo " <img src=icon/03/10/31.png width=10 height=10 align=absmiddle></div><br>
</div>
<div id=gaestebuch><table border=0 cellspacing=0 cellpadding=0 width=100%>"; while($g=mysql_fetch_array($ggg)) { $uuu=mysql_query("SELECT * FROM ".$dbx."_user WHERE id='".$g[gast]."'"); $uu=mysql_fetch_array($uuu); if(file_exists("avatar/".$uu[id]."_t.jpg")==1) $tn=$uu[id]."_t.jpg"; elseif(file_exists("avatar/".$uu[id]."_t.png")==1) $tn=$uu[id]."_t.png"; else $tn="leer_".$uu[geschlecht].".gif"; $ulink=genURL('user-'.urlencode($uu[user]),'index.php?d=user&s='.urlencode($uu[user])); $egv=""; $diff = time() - $g[datum]; $days = ($diff - ($diff % 86400)) / 86400; $diff = $diff - ($days * 86400); $hours = ($diff - ($diff % 3600)) / 3600; $diff = $diff - ($hours * 3600); $minutes = ($diff - ($diff % 60)) / 60; $diff = $diff - ($minutes * 60); if($days!=0) { $egv = $days."&nbsp;Tag"; if($days!=1) $egv .= "en"; } elseif($hours!=0) { $egv = $hours."&nbsp;Stunde"; if($hours!=1) $egv .= "n"; } elseif($minutes!=0) { $egv = $minutes."&nbsp;Minute"; if($minutes!=1) $egv .= "n"; } if($days>30) $egv="am ".date("d.m.Y",$b[lastdatum]); elseif($egv=="") $egv="gerade eben"; else $egv="vor ".$egv; echo "<tr><td valign=top align=right style=\"width:66px;border-top:1px solid #ccc;\"><a href=\"".$ulink."\"><img src=avatar/".$tn." width=60 height=60 style=\"border: 1px solid #ccc;padding:2px;margin:2px;margin-bottom:10px;\"></a></td><td valign=top style=\"border-top:1px solid #ccc;\"><div class=small style=\"background-color:#F5F5F5;padding:5px;margin:0px;\"><img src=images/user.gif width=8 height=12 align=absmiddle> <a href=\"".$ulink."\">".ucfirst($uu[user])."</a> schrieb ".$egv.":</div><div style=padding:5px;margin-bottom:10px;max-height:150px;overflow:auto;>".forum_wrap($g[cont],30)."</div></td></tr>"; } echo "</table><div style=\"padding: 15px; text-align:center;border-top:1px solid #ccc;\" class=small><img src=icon/03/10/32.png width=10 height=10 align=absmiddle> "; if($gseite>0) echo "<a href=http://".$cdb[url]."?d=user&s=".$s."&t=gaestebuch&gseite=".$gprev."&rando=".$rando.">Предыдущая страница</a>"; else echo "<span style=color:#aaa>Предыдущая страница</span>"; echo " &nbsp; &nbsp; | &nbsp; &nbsp; "; echo "Страница $gaks из $gans"; echo " &nbsp; &nbsp; | &nbsp; &nbsp; "; if($gaaanz>$gdsanz) echo "<a href=http://".$cdb[url]."?d=user&s=".$s."&t=gaestebuch&gseite=".$gnext."&rando=".$rando.">	Следующая страница</a>"; else echo "<span style=color:#aaa>Следующая страница</span>"; echo " <img src=icon/03/10/31.png width=10 height=10 align=absmiddle></div><br>
</div>
<div id=fotos>"; echo "<table border=0 cellspacing=0 cellpadding=0 align=center><tr>"; while($agetfp=mysql_fetch_array($agg)) { $aacc++; echo "<td align=center style=width:120px;height:120px; onmouseover=\"document.getElementById('f".$agetfp[id]."').style.width='100px';document.getElementById('f".$agetfp[id]."').style.height='100px';\" onmouseout=\"document.getElementById('f".$agetfp[id]."').style.width='60px';document.getElementById('f".$agetfp[id]."').style.height='60px';\">"; if(file_exists("fotos/a_".$agetfp[id]."_m.jpg")==1) echo "<a href=fotos/a_".$agetfp[id]."_b.jpg?t=".time()." rel=facebox><img src=fotos/a_".$agetfp[id]."_m.jpg?t=".time(); elseif(file_exists("fotos/a_".$agetfp[id]."_m.png")==1) echo "<a href=fotos/a_".$agetfp[id]."_b.png?t=".time()." rel=facebox><img src=fotos/a_".$agetfp[id]."_m.png?t=".time(); else echo "<img src=fotos/leer_m.gif"; echo " style=\"width:60px;height:60px;border: 1px solid #ccc;padding:2px;vertical-align:middle;margin-bottom:4px;\" id=f".$agetfp[id]."></a></td>"; if($aacc==5) echo "</tr><tr>"; } echo "</tr></table><br><div style=\"border-top:1px solid #ccc; padding: 15px; text-align:center;\" class=small><img src=icon/03/10/32.png width=10 height=10 align=absmiddle> "; if($aseite>0) echo "<a href=http://".$cdb[url]."?d=user&s=".$s."&t=fotos&aseite=".$aprev."&rando=".$rando.">Предыдущая страница</a>"; else echo "<span style=color:#aaa>	Предыдущая страница</span>"; echo " &nbsp; &nbsp; | &nbsp; &nbsp; "; echo "Страница $aaks из $aans"; echo " &nbsp; &nbsp; | &nbsp; &nbsp; "; if($aaaanz>$adsanz) echo "<a href=http://".$cdb[url]."?d=user&s=".$s."&t=fotos&aseite=".$anext."&rando=".$rando.">Следующая страница</a>"; else echo "<span style=color:#aaa>	Следующая страница</span>"; echo " <img src=icon/03/10/31.png width=10 height=10 align=absmiddle></div><br>
</div>
</div></div>"; echo "</td></tr></table>"; }} ?>