Created
February 20, 2013 22:20
-
-
Save abeeku/5000216 to your computer and use it in GitHub Desktop.
My new social networking header
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
include ("inc/scripts/mysql_connect.inc.php"); | |
session_start(); | |
$user = $_SESSION["user_login"]; | |
?> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<link href="css/main.css" rel="stylesheet" type="text/css"> | |
<title>Abeeku's Social Network</title> | |
</head> | |
<body> | |
<div class="headerMenu"> | |
<div id="wrapper"> | |
<div class="logo"> | |
<img src="img/find_friends_logo.png"> | |
</div> | |
<div class="search_box"> | |
<form method="get" action="search.php" id="search"> | |
<input name="q" type="text" size="60" placeholder="Search..." /> | |
</form> | |
</div> | |
<? | |
if (isset($_SESSION["user_login"])) { | |
echo ' | |
<div id="menu"> | |
<a href="#">Home</a> | |
<a href="#">Account Settings</a> | |
<a href="profile.php?u=$user">$user\'s Profile</a> | |
<a href="index.php">Logout</a> | |
</div> | |
'; | |
} | |
else{ | |
echo '<div id="menu"> | |
<a href="#">Home</a> | |
<a href="#">About</a> | |
<a href="index.php">Sign in</a> | |
<a href="index.php">Log in</a> | |
</div>'; | |
} | |
?> | |
</div> | |
</div> | |
<br /> | |
<br /> | |
<br /> | |
<br /> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment