Location: PHPKode > projects > ZompLog > admin/header.php
<?php
//determine base path, so the plugins can also use this header

$currentdir = getcwd();

// basepath is zomplog root folder
if (preg_match("/plugins/i", "$currentdir")) {
   $basepath = "../..";
} else {
  $basepath = "..";
}

include("$basepath/admin/loadsettings.php");

// note: I've included the tinyMCE config in the SSlists class
// the reason behind this is that prototype should be called first, then tinyMCE and then Scriptaculous
include_once("$basepath/admin/SLLists.class.php");
$sortableLists = new SLLists('scriptaculous');
$sortableLists->addList('categories','categoriesListOrder');
$sortableLists->debug = false;


include("$basepath/language/$settings[language].php"); 

$user = loadUser($_SESSION['login'],$link,$table_users);
checkLoggedIn("yes");
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Zomplog <?php echo $version; ?></title>

<style type="text/css">
   @import "<?php echo "$basepath/admin/"; ?>style.css";
  </style>
  

	
<script>
function verify(){
msg = "Are you sure you want to delete this entire record from the database?";
//all we have to do is return the return value of the confirm() method
return confirm(msg);
}
</script>

<script language="javascript" type="text/javascript">
function OpenLarge (c) {
    window.open(c,
                    'large',
                    'width=350,height=500,scrollbars=yes,status=yes');
}
</script> 


<SCRIPT LANGUAGE="Javascript" SRC="<?php echo "$basepath/admin/"; ?>jscripts/switch.js"></SCRIPT>
<SCRIPT LANGUAGE="Javascript" SRC="<?php echo "$basepath/admin/"; ?>jscripts/colorpicker.js"></SCRIPT>

<script src="<?php echo "$basepath/admin/"; ?>jscripts/multifile_compressed.js"></script>

<?php
$sortableLists->printTopJS();
?>

<?php
include('includes/browsercheck.php');
$a_browser_data = browser_detection('full');


if($a_browser_data[0] == 'saf') // if it is safari, that is
{
if ( $a_browser_data[1] >= 5 )
{
?>
<script src="<?php echo "$basepath/admin/"; ?>jscripts/editor.js"></script>

<?php
}
}
else
{
?>
<script src="<?php echo "$basepath/admin/"; ?>jscripts/editor.js"></script>
<?php
}
?>



</head>

<body>

<div id="wrapper">
<div id="header">
  <div id="tabs"><ul class="menu" name="menucontent">
  <li> <a href="<?php echo "$basepath/admin/"; ?>newentry.php"><?php echo "$lang_entries"; ?></a></li><?php if($user[admin] || !$settings[pages_admin]){ ?> 
<li><a href="<?php echo "$basepath/admin/"; ?>newpage.php"><?php echo "$lang_pages"; ?></a></li><?php } ?> <li><a href="<?php echo "$basepath/admin/"; ?>profile.php"><?php echo "$lang_users"; ?></a></li><?php if ($user[admin]){ ?> <li><a href="<?php echo "$basepath/admin/"; ?>settings.php"><?php echo "$lang_settings"; ?></a></li> <li><a href="<?php echo "$basepath/admin/"; ?>changeclothes.php"><?php echo "$lang_themes"; ?></a></li> <li><a href="<?php echo "$basepath/admin/"; ?>plugins.php">plugins</a></li><?php } ?>  <li><a href="<?php echo "$basepath/admin/"; ?>members.php"><?php echo "$lang_dashboard"; ?></a></li></ul></div></div>


<div id="logo"><a href="http://zomplog.zomp.nl" target="_blank"><img src="<?php echo "$basepath/admin/"; ?>images/zomplog.jpg" alt="zomplog" width="116" height="146" border="0" /></a></div>
<div id="subhead"></div>
<div id="actions"><?php echo "<a href=\"$basepath/admin/logout.php?".session_name()."=".session_id()."\" class=\"sub\">$lang_logout</a> ".$_SESSION["login"].""; ?> | <a href="<?php echo "$basepath/"; ?>index.php" class="sub"><?php echo "$lang_view_site"; ?></a></div>
Return current item: ZompLog