Location: PHPKode > projects > WH Community > wh_community/myprofile.php
<?php require('layout/header.php'); ?>

<div id="content_wrapper">
    <div class="content"><?php

        if(!isset($_SESSION['signed_in'])) {
        
		echo '<p class="false">' . $lang['just_for_users'] . '!</p>
              <p>' . $lang['you_need_to'] . ' <a href="signin.php">' . $lang['signin_s'] . '</a>.
              - ' . $lang['not_yet'] . ' <a href="signup.php">' . $lang['registered'] . '</a>?</p>';

		}else{
        
        $abfrage = "SELECT
						user_sex,
						user_bday,
						user_email,
						user_showmail,
						user_homepage,
						user_icq,
						user_live,
						user_skype,
						user_facebook,
						user_twitter,
						user_about,
						user_signature
					FROM
						users
					WHERE
						user_id = " . (int)$_SESSION['user_id'];
		
		$result = mysql_query($abfrage) OR die(mysql_error());
		$row = mysql_fetch_assoc($result);
        
		echo '<h1>' . $_SESSION['user_name'] . '&acute;s ' . $lang['main_profile'] . '</h1><br><br>';
		
		echo '<p><span class="disc_tags">' . $lang['profile_manage'] . '</span></p>
		      <br>
              <span class="profile_tags"><a href="edit_profile.php" class="profile_tags">' . $lang['edit_profile'] . '</a></span>&nbsp;&nbsp;&nbsp;
              <span class="profile_tags"><a href="guestbook.php" class="profile_tags">' . $lang['guestbook'] . '</a></span>&nbsp;&nbsp;&nbsp;
              <span class="profile_tags"><a href="password.php" class="profile_tags">' . $lang['password'] . '</a></span>&nbsp;&nbsp;&nbsp;
              <span class="profile_tags"><a href="address_book.php" class="profile_tags">' . $lang['address_book'] . '</a></span>
              <div class="spacer_div">&nbsp;</div>
              <p><span class="disc_tags">' . $lang['profile_interactive'] . '</span></p>
              <br>
              <span class="profile_tags"><a href="inbox.php" class="profile_tags">' . $lang['inbox'] . '</a></span>&nbsp;&nbsp;&nbsp;
              <span class="profile_tags"><a href="outbox.php" class="profile_tags">' . $lang['outbox'] . '</a></span>&nbsp;&nbsp;&nbsp;
              <span class="profile_tags"><a href="create_pm.php" class="profile_tags">' . $lang['m_newpm'] . '</a></span>&nbsp;&nbsp;&nbsp;
              <span class="profile_tags"><a href="messagebox.php" class="profile_tags">' . $lang['messagebox'] . '</a></span>&nbsp;&nbsp;&nbsp;
              <span class="profile_tags"><a href="todo.php" class="profile_tags">' . $lang['m_todo'] . '</a></span>
              <div class="spacer_div">&nbsp;</div>
              <p><span class="disc_tags">' . $lang['profile_internal'] . '</span></p>
              <br>
              <span class="profile_tags"><a href="mypostings.php" class="profile_tags">' . $lang['my_posts'] . '</a></span>&nbsp;&nbsp;&nbsp;
              <span class="profile_tags"><a href="infos.php" class="profile_tags">' . $lang['informations'] . '</a></span>&nbsp;&nbsp;&nbsp;
              <span class="profile_tags"><a href="news.php" class="profile_tags">' . $lang['news'] . '</a></span>&nbsp;&nbsp;&nbsp;
              <span class="profile_tags"><a href="search.php" class="profile_tags">' . $lang['forum_search'] . '</a></span>&nbsp;&nbsp;&nbsp;
              <span class="profile_tags"><a href="contact.php" class="profile_tags">' . $lang['contact'] . '</a></span>';
		      }
		
		echo '<div class="spacer_div">&nbsp;</div>';

		?>
    </div>
</div>

<div id="infobox_wrapper">
    <div class="infobox">
        <?php include('layout/infobox.php'); ?>
    </div>
</div>

<?php require('layout/footer.php'); ?>
Return current item: WH Community