Location: PHPKode > projects > ZompLog > admin/header.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 = "..";


// 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
$sortableLists = new SLLists('scriptaculous');
$sortableLists->debug = false;


$user = loadUser($_SESSION['login'],$link,$table_users);

<!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">
<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";

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 language="javascript" type="text/javascript">
function OpenLarge (c) {

<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>


$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>

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



<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