View file includes/header.php

File size: 1.91Kb
<?php
global $userid;
include_once ('includes/connect.php');
include_once('includes/lang.php');
echo '<?xml version="1.0" encoding="UTF-8" ?>';
echo '<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN"
"http://www.wapforum.org/DTD/xhtml-mobile10.dtd">';
echo '<html xmlns="http://www.w3.org/1999/xhtml">';
echo '<head><title>'.$set['title'].' - '.$title.'</title>';
echo '<link rel="stylesheet" href="'.$url.'/style.css" type="text/css" media="all,handheld"/>
<meta property="fb:admins" content="'.$fb_id.'"/>
</head>';
echo '<body>';
//Facebook comment js
echo '<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/'.$comlang.'/sdk.js#xfbml=1&version=v2.0";
  fjs.parentNode.insertBefore(js, fjs);
}(document, \'script\', \'facebook-jssdk\'));</script>';

echo '<div class="head">
<img src="'.$url.'/images/logo.jpg"/></div><div class="content">';
echo '<div class="list">
<a href="'.$url.'" title="home"><img src="'.$url.'/images/home.png" alt="*"> '.$lang["home"].'</a> |'; 
	if($userid) { 
		echo ' <a href="'.$url.'/user"><img src="'.$url.'/images/myacc.png" alt="*"> '.$lang["mycp"].'</a> |'; 
			if($rights>1) { 
				echo ' <a href="'.$url.'/admin"><img src="'.$url.'/images/syspan.png" alt="*"> SysPanel</a> |'; 
							}
		echo ' <a href="'.$url.'/logout.php"><img src="'.$url.'/images/lout.png" alt="*"> '.$lang["logout"].'</a> |'; 
} else { 
	echo ' <a href="'.$url.'/login.php"><img src="'.$url.'/images/lin.png" alt="*"> '.$lang["login"].'</a> | <a href="'.$url.'/registration.php"><img src="'.$url.'/images/reg.png" alt="*"> '.$lang["reg"].'</a> |'; 
	} 
echo ' <img src="'.$url.'/images/faq.png" alt="*"> <a href="'.$url.'/about.php">'.$lang["about"].'</a> | <a href="'.$url.'/terms.php"><img src="'.$url.'/images/terms.png" alt="*"> '.$lang["terms"].'</a>
</div><br/>';
?>