Location: PHPKode > projects > Wexplorer > weXplorer/header.php
<?php
require_once('session.php');
require_once('config.inc.php');
if(isset($_GET['logout'])){
	logout();
echo <<<EOS0
<script language="JavaScript">
parent.tree.document.cache = new Object();
parent.tree.reget();	
</script>
EOS0;
}
readfile('header.html');
$rootURL = ROOT_URL;
if(isLogged()){
echo <<<EOS1
<script language="JavaScript">
function loginout(){
	location.href="header.php?logout&nocache="+new Date().getTime();
}
if(parent.folder != null){
	document.getElementById('loginimg').src='$rootURL/images/logout.gif';	
}
</script>
EOS1;
} else {
echo <<<EOS2
<script language="JavaScript">
function loginout(){
	parent.folder.location.href="login.php";	
}  
if(parent.folder != null){
	document.getElementById('loginimg').src='$rootURL/images/login.gif';	
}
</script>
EOS2;
}
?>

Return current item: Wexplorer