<?php
include('header.php');
$lang = "";
$pageTitle = "$l_ucp";
$male_c = "";
$female_c = "";
$upload_avatar = "";
$fl = "";
if (!isset($_SESSION['signed_in'])) {
//header('location: signin.php');
$pageContents = ob_get_contents();
ob_end_clean();
echo str_replace('<!--TITLE-->', $pageTitle, $pageContents);
//the user is not signed in
echo '<hr/><br /><div align="center">' . $l_you_need_to . ' <a class="loginlink" href="signin.php">' . $l_login_s . '</a> ' . $l_in_order_view . ' <br>' . $l_u_also . ' <a class="loginlink" href="signup.php">' . $l_register_s . '</a> ' . $l_for_acc . '</div><br />';
exit;
} else {
echo "<hr /><br /><div align='left' style='margin-left:12px;'>
<a class='profile' href='profile.php?profile=1'>$l_edit_profile</a>
<a class='profile' href='profile.php?contact=1'>$l_edit_contact</a>
<a class='profile' href='profile.php?board'>$l_edit_board</a>";
if ($allow_avatars == '1') {
echo " <a class='profile' href='profile.php?avatar=1'>$l_edit_avatar</a>";
}
if ($friend_list == 1) {$fl = "<a class='profile' href='profile.php?friends=1'>$l_friend_list</a>
<a class='profile' href='profile.php?activities=1'>$l_friend_activities</a>";}
echo " <a class='profile' href='profile.php?signature=1'>$l_edit_sig</a>
<a class='profile' href='profile.php?notifications=1'>$l_notifications</a>
$fl
<br/><br/>
</div>
";
include './includes/avatars.php';
}
include './includes/profile.php';
include './includes/notifications.php';
include './includes/signature.php';
include './includes/contact.php';
include './includes/friends.php';
include './includes/board_pref.php';
$pageContents = ob_get_contents();
ob_end_clean();
echo str_replace('<!--TITLE-->', $pageTitle, $pageContents);
?>