<?php require('framework/session.php'); ?>
<?php require('framework/ready.php'); ?>
<?php require('style/layout/header.php'); ?>
<div id="content_wrapper">
<div class="content">
<?php
echo '<div class="content_left">
<div id="breadcrumb">
<ul class="crumbs">
<li class="first"><a href="index.php" style="z-index:9;"><span></span>' . $lang['index'] . '</a></li>
<li><a href="member.php?id=' . intval($_GET['id']) . '" style="z-index:8;">'; include_once('framework/functions/retrieve.php'); echo '</a></li>
</ul>
</div>
</div>
<div class="content_right">';
include('modules/search.inc.php');
echo '</div>
<div class="clear_long"></div>';
$ret = 1;
echo '<div class="main_menu">';
$ret = include 'framework/templates/'.$main_content['menu'];
echo '<div id="line"></div>';
$ret = include 'framework/templates/'.$main_content['infos'];
echo '</div>';
echo '<div class="main_content">';
if((isset($_GET['id'])) && (is_numeric($_GET['id']))) {
$id = mysql_real_escape_string($_GET['id']);
$id = intval($_GET['id']);
}else{
echo '<p class="false">' . $lang['invalid_id'] . '</p>';
exit();
}
$sql = "SELECT
members.id AS memID,
members.*,
profiles.*
FROM
members
LEFT JOIN
profiles
ON
members.id = profiles.id
WHERE
members.id = " . $id;
$result = mysql_query($sql) OR die(mysql_error());
if(!$result) {
echo '<p class="false">' . $lang['user_not_exists'] . '</p>' . mysql_error();
}else{
if(intval(mysql_num_rows($result)) == 0) {
echo '<p class="false">' . $lang['user_not_exists'] . '</p>' . mysql_error();
}else{
while($row = mysql_fetch_assoc($result)) {
echo '<h1 class="p_space">' . htmlentities($row['name'], ENT_QUOTES) . '’s ' . $lang['profile'] . '</h1>';
echo '<div class="left">';
echo '<p><strong>' . $lang['re_name'] . ':</strong> ' . htmlentities($row['name'], ENT_QUOTES) . ' ';
if($row['sex']=='male') { echo '♂'; }elseif ($row['sex']=='female') { echo '♀'; }
echo '</p>
<p><strong>' . $lang['member_id'] . ':</strong> ' . (int)$row['memID'] . '</p>
<p><strong>' . $lang['last_signin'] . ':</strong> ';
if($row['status'] > 0) { echo date('d.m.Y', strtotime($row['status'])); }else{ echo $lang['no_signins']; }
echo '</p>
<p><strong>' . $lang['number_of_signins'] . ':</strong> ';
if($row['visits'] > 0) { echo (int)$row['visits']; }else{ echo $lang['no_signins']; }
echo '</p>
<p><strong>' . $lang['sex'] . ':</strong> ';
if($row['sex']=='male') { echo 'männlich'; }elseif ($row['sex']=='female') { echo 'weiblich'; }else{ echo $lang['no_informations']; }
echo '</p>
<p><strong>' . $lang['birthday'] . ':</strong> ';
if($row['birthday'] > 0) { echo date('d.m.Y', strtotime($row['birthday'])); }else{ echo $lang['no_informations']; }
echo '</p>
<p><strong>' . $lang['e_mail_adress'] . ':</strong> ';
if($row['showmail'] == 1) { echo '<a href="mailto:' . htmlentities($row['email'], ENT_QUOTES) . '">' . htmlentities($row['email'], ENT_QUOTES) . '</a>'; }else{ echo $lang['no_informations']; }
echo '</p>
<p><strong>' . $lang['date_of_register'] . ':</strong> ' . date('d.m.Y', strtotime($row['date'])) . '</p>';
echo '</div>';
echo '<div class="right">
<span class="propic"><p><img src="' . htmlentities($row['avatar']) . '" class="Avatar" border="0" vspace="5" alt="Avatar"></p>
<p><a href="pinboard.php?id=' . $id . '" class="picpro_link">' . $lang['pinboard'] . '</a></p>
<p><a href="guestbook.php?id=' . $id . '" class="picpro_link">' . $lang['guestbook'] . '</a></p>
<p><a href="photos.php?id=' . $id . '" class="picpro_link">' . $lang['my_photos'] . '</a></p>
<p><a href="new_message.php?name=' . htmlentities($row['name'], ENT_QUOTES) . '" class="picpro_link">' . $lang['send_a_message'] . '</a></p>
<p><a href="javascript:void(0)" onclick="javascript:chatWith(\'' . $id . '\')" class="picpro_link">' . $lang['mem_open_chat'] . '</a></p>
</span>
</div>';
echo '<div class="spacer"></div>';
echo '<div id="pr_line"> </div>';
echo '<p><strong>' . $lang['homepage'] . ':</strong> ';
if(!empty($row['homepage'])) { echo htmlentities($row['homepage'], ENT_QUOTES); }else{ echo $lang['no_informations']; }
echo '</p>';
echo '<p><strong>' . $lang['icq'] . ':</strong> ';
if(!empty($row['icq'])) { echo htmlentities($row['icq'], ENT_QUOTES); }else{ echo $lang['no_informations']; }
echo '</p>';
echo '<p><strong>' . $lang['live'] . ':</strong> ';
if(!empty($row['live'])) { echo htmlentities($row['live'], ENT_QUOTES); }else{ echo $lang['no_informations']; }
echo '</p>';
echo '<p><strong>' . $lang['skype'] . ':</strong> ';
if(!empty($row['skype'])) { echo htmlentities($row['skype'], ENT_QUOTES); }else{ echo $lang['no_informations']; }
echo '</p>';
echo '<p><strong>' . $lang['facebook'] . ':</strong> ';
if(!empty($row['facebook'])) { echo htmlentities($row['facebook'], ENT_QUOTES); }else{ echo $lang['no_informations']; }
echo '</p>';
echo '<p><strong>' . $lang['twitter'] . ':</strong> ';
if(!empty($row['twitter'])) { echo htmlentities($row['twitter'], ENT_QUOTES); }else{ echo $lang['no_informations']; }
echo '</p>';
echo '<p><strong>' . $lang['google'] . ':</strong> ';
if(!empty($row['google'])) { echo htmlentities($row['google'], ENT_QUOTES); }else{ echo $lang['no_informations']; }
echo '</p>';
echo '<p><strong>' . $lang['about_me'] . ':</strong> ';
if(!empty($row['about'])) { echo stripslashes(nl2br($row['about'])); }else{ echo $lang['no_informations']; }
echo '</p>';
echo '<p><strong>' . $lang['signature'] . ':</strong> ';
if(!empty($row['signature'])) { echo stripslashes(nl2br($row['signature'])); }else{ echo $lang['no_informations']; }
echo '</p>';
}
}
}
?>
<?php require('style/layout/footer.php'); ?>