Location: PHPKode > projects > CzarNews > czarnews/cn_head.php
<?
##########################################
### 
### CzarNews
### Made by: Czaries  [hide@address.com]
### http://www.czaries.net/scripts/
### for more scripts and updates.
###
##########################################

// Include configuration file
include_once("cn_config.php");

function userlink() {
	global $useri, $lang;
	if(isset($useri)) {
		print $lang['lblWelcome'] . " $useri[user] | <a href=\"?op=logout\">" . $lang['navLogout'] . "</a>";
	} else {
		print "&nbsp;";
	}
}
?>
<html>

<head>
<title>CzarNews v<? print $set['version']; ?> :: <?=$pagetitle;?></title>
<meta name="Author" content="Vance Lucas (Czaries)">
<meta name="Copyright" content="Copyright <?=date("Y")?> Vance Lucas - www.czaries.net">
<link rel="stylesheet" href="sv_styles.css" type="text/css">
<script type="text/javascript">
function popBox(url) {
win2=window.open('' + url + '','',
'width=550,height=450,left=150,top=150,status=1,resizable=yes,scrollbars=yes');
win2.creator=self
}
function openBox(cid) {
	document.getElementById(cid).style.display=(document.getElementById(cid).style.display!="block")? "block" : "none"
}
</script>
</head>

<body bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#800080" alink="#ff0000">

<table width="760" border="0" cellspacing="0" cellpadding="0" align="center">
	<tr>
		<td bgcolor="#FFFFFF">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td bgcolor="#FFFFFF">
<a href="/"><img src="<?=$imgdir?>cn_logo_s.gif" width="140" height="100" alt="CzarNews" border="0" /></a><br />
		</td>
		<td bgcolor="#000000">
<img src="<?=$imgdir?>spacer.gif" width="1" height="1" /><br />
		</td>
		<td width="99%" valign="bottom" bgcolor="#FFFFFF">
<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr>
<td><img src="<?=$imgdir?>cn_logo_l.gif" width="300" height="100" alt="CzarNews" /><br /></td>
<td valign="bottom" align="right"><? print userlink(); ?></td>
</tr></table>
		</td>
	</tr>
	<tr>
		<td colspan="3" bgcolor="#000000">
<img src="<?=$imgdir?>spacer.gif" width="1" height="1" /><br />
		</td>
	</tr>
</table>
<br />
<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr>
<td valign="top" width="150" align="left">
<table border="0" width="135" align="left">
	<? if(isset($useri)) { ?><tr><td width="100%"><a href="index.php" class="menulink"><?=$lang['navNews']?></a></td></tr><? } ?>
	<? if($set[images] == "on") { ?>
	<? if($useri[images] == "on" || $useri[admin] == "on") { ?><tr><td width="100%"><a href="cn_images.php" class="menulink"><?=$lang['navImages']?></a></td></tr><? } ?><? } ?>
	<? if($useri[cats] == "on" || $useri[admin] == "on") { ?><tr><td width="100%"><a href="cn_cats.php" class="menulink"><?=$lang['navCategories']?></a></td></tr><? } ?>
	<? if($useri[words] == "on" || $useri[admin] == "on") { ?><tr><td width="100%"><a href="cn_words.php" class="menulink"><?=$lang['navKeywords']?></a></td></tr><? } ?>
	<? if($useri[users] == "on" || $useri[admin] == "on") { ?><tr><td width="100%"><a href="cn_users.php" class="menulink"><?=$lang['navUsers']?></a></td></tr><? } ?>
	<? if($useri[config] == "on" || $useri[admin] == "on") { ?><tr><td width="100%"><a href="cn_webconfig.php" class="menulink"><?=$lang['navConfig']?></a></td></tr><? } ?>
	<? if($useri[admin] == "on") { ?><tr><td width="100%"><a href="cn_generate.php" class="menulink"><?=$lang['navCodeGen']?></a></td></tr><? } ?>
	<? if($useri[admin] == "on") { ?><tr><td width="100%"><a href="cn_update.php" class="menulink"><?=$lang['navUpdates']?></a></td></tr><? } ?>
	<? if(isset($useri)) { ?><tr><td width="100%"><a href="cn_info.php" class="menulink"><?=$lang['navInfo']?></a></td></tr><? } ?>
	<? if(isset($useri)) { ?><tr><td width="100%"><a href="?op=logout" class="menulink"><?=$lang['navLogout']?></a></td></tr><? } ?>
	<tr><td width="100%">&nbsp;</td></tr>
</table>
</td><td valign="top" width="570">
<font class="title"><?=$pagetitle;?></font><br /><br />
Return current item: CzarNews