Location: PHPKode > projects > WH Community > wh_community/layout/header.php
<?php require('framework/session.php'); ?>
<!DOCTYPE html>
<html>

<head>
    <title><?php echo $title; ?></title>

    <meta charset="ISO-8859-1" />
    <meta name="keywords" content="forum, blog, social network, community, board" />
    <meta name="revisit-after" content="7 days" />
    <meta name="robots" content="index,follow" />

    <link href="css/design.css" rel="stylesheet" />
    <link href="images/favicon.ico" rel="shortcut icon" />
    
    <script src="functions/javascript/jquery.js"></script>
	<script src="functions/javascript/notification.js"></script>
	<script src="functions/javascript/editor.js"></script>
	<script type="text/javascript">$(document).ready(function() {});</script>
	<script>bkLib.onDomLoaded(function() { nicEditors.allTextAreas() });</script>

	<!--[if IE]>
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
</head>

<body><a name="top" id="top"></a>

<div id="wrapper">

<header>
    <div class="header_main">
        <div class="header_left"><a href="<?php echo $index; ?>" class="logo_text"><?php echo $logo; ?></a></div>
        <div class="header_right">

        <?php if(!isset($_SESSION['signed_in'])) {
        echo '<a href="signup.php" class="header2">' . $lang['signup'] . '?</a> <span class="bigbutton"><a href="signin.php" class="bigbutton">' . $lang['signin'] . '</a></span>';
        }else{
        $sql = mysql_query("SELECT user_id, user_avatar FROM users WHERE user_id = '" . $_SESSION['user_id'] . "'") OR die(mysql_error());
        $row = mysql_fetch_assoc($sql);
        echo '<span class="bigbutton"><a href="myprofile.php" class="bigbutton">' . $lang['my_profile'] . '</a></span> <img src="images/avatars/' . htmlentities($row['user_avatar'], ENT_QUOTES) . '" border="0" width="40" border="40">';
		include_once('framework/messages.php');
		} ?>
        </div>
    </div>
</header>

<div class="clear"></div>

<nav>
    <div class="menu">
        <div class="menu_left"><?php if(isset($_SESSION['signed_in'])) { echo '' . $lang['welcome'] . ' ' . $_SESSION['user_name'] . ' (<a href="signout.php">' . $lang['signout'] . '</a>)'; } ?></div>
        <div class="menu_right"><a href="index.php" class="footerlink">Forum</a>&nbsp;&nbsp;&nbsp;<a href="blog.php" class="footerlink">Blog</a>&nbsp;&nbsp;&nbsp;<a href="discussion.php" class="footerlink"><?php echo $lang['discussions']; ?></a>&nbsp;&nbsp;&nbsp;<a href="userlist.php" class="footerlink"><?php echo $lang['index_members']; ?></a>&nbsp;&nbsp;&nbsp;<a href="search.php" class="footerlink"><?php echo $lang['go_to_search']; ?></a></div>
    </div>
</nav>

<div id="main">
Return current item: WH Community