Location: PHPKode > projects > Wexplorer > weXplorer/info.php
<?php
require_once('config.inc.php');
require_once('session.php');

$origin_dir = getcwd ();
//echo "o: $origin_dir f: ".TREEROOT;
if(! @chdir(expandPath($_GET['folder']))){
	echo "<b>Directory '".expandPath($_GET['folder'])."' does not exist.<br>Please configure weXplorer.ini.</b>";
	die();
}

$selfUrl = $_SERVER['SCRIPT_NAME'].'?'.$_SERVER['QUERY_STRING'];
$reload = "</td><td align='right' valign='bottom'><img style='cursor:pointer;' src='".ROOT_URL."/images/refresh.gif' onclick='parent.tree.reget();'/>";
?>
<html>
<head>
<script language="JavaScript" type="text/javascript" src="<?php echo ROOT_URL;?>/js/popup.js"></script>  
<!-- START LIST VIEW STYLES AND SCRIPTS -->
<link type="text/css" rel="StyleSheet" href="css/sortabletable.css" />
<script src="<?php echo ROOT_URL;?>/js/sorttable.js"></script>
<script src="<?php echo ROOT_URL;?>/js/spook.js"></script>
<!-- END LIST VIEW STYLES AND SCRIPTS -->  
</head>
<body style="margin:0;">
<?php
echo "<table width ='100%' class='currdir'><tr><td>";
//echo "Current directory <b>".substr($_GET['folder'],1)."</b> $reload";
echo "Current directory <a onclick='javascript:parent.location.href=this.href;return false;' href='".DISPATCHER.substr($_GET['folder'],2)."'><b>".substr($_GET['folder'],1)."</b></a> $reload";
echo "</td></tr></table>";
if(file_exists(MESSAGE_FILE)){
echo "<table width ='100%' class='sortable'><tr><td>";
readfile(MESSAGE_FILE);
echo "</td></tr></table>";	
}
chdir($origin_dir);
include('list.php');
?>
<script language="JavaScript" type="text/javascript">
parent.tree.document.cache[parent.tree.document.lastget] = document.getElementsByTagName("body")[0].innerHTML;
</script>
</body>
</html>

Return current item: Wexplorer