Exemplo n.º 1
0
<?php

session_start();
include 'config.php';
include 'functions.php';
@($uid = $_SESSION['user_id']);
@($user = $_SESSION['user']);
$date = time();
$dateAjax = date("M j G", $date);
echo "<div id='dateAjax' class='{$dateAjax}'></div>";
loggedin();
//IF USER ONLINE OR NO
$unread_notif = unread_notif($uid);
echo "Welcome back , " . $user;
echo "\t <a href='user/{$user}'>PROFILE</a> | <a href='friends.php?id={$uid}'>My friends</a> |<a href='notifications.php'>Notifications (" . $unread_notif . ")</a> | <a href='freq.php'>Friend requests( " . Nfreq($uid) . " )</a> |<a href='settings.php'>Settings</a>| <a href='search.php'>Search</a> | Help | <a href='logout.php'>Sign out</a><hr />";
//GET LAST ID POSTED
$lastID = mysql_query("select * from notes order by notes_id desc limit 1");
$IDoop = mysql_fetch_array($lastID);
$lastUsedID = $IDoop['notes_id'];
$lastUsedID1 = $lastUsedID++;
$lastUsedID = hashit($lastUsedID);
echo "<input type='hidden' name='lastID' id='lastID' value='{$lastUsedID}' />";
?>
<script type="text/javascript" src="jquery.js"></script>

<script type="text/javascript">
jQuery(function($) {
					
	//ADD A NOTE///////////////////////////////////////////////////////////////////////
	$('#send_note').click(function() {
							   
Exemplo n.º 2
0
		<ul>
			<!--li>Hey, <?php 
echo $user;
?>
!</span-->
			<li><a href='user/<?php 
echo $user;
?>
'>Profile</a></li>
            <li><a href='settings.php'>Settings</a></li>
			<li><a href='friends.php?id=<?php 
echo $uid;
?>
'>Friends</a></li>
			<li><a href="freq.php">Requests</a>(<?php 
echo Nfreq($uid);
?>
)</a></li>
			<li><a href='notifications.php'>Notifications</a>(<?php 
echo $unread_notif;
?>
)</a></li>
			<li class="last"><a href='logout.php'>Sign out</a></li>
		</ul>
	</div>
</div>
<!-- END HEADER -->


<div id="content">