Ejemplo n.º 1
0
<? 
include_once('include/db.php');
include_once('include/File.php');
db_open();
$rootId = $_REQUEST['id']; 
$row = fetchFileById($rootId);
$dir = new DirectoryResolver();
$fullPath = $dir->getFullPath($rootId);

?>
<html>
<head>
<script type="text/javascript" language="JavaScript" src="js/nanotree.js"></script>
<script type="text/javascript" language="JavaScript" src="js/xmlload.js"></script>
<script type="text/javascript" language="JavaScript" src="js/diskat_tree.js"></script>
<script type="text/javascript" language="JavaScript">

rootNode = new TreeNode(1,'/');
var node1 = new TreeNode(<?php 
echo $rootId;
?>
, '<?php 
echo $row['Filename'];
?>
', new Array(closedGif,openGif), '<?php 
echo $fullPath;
?>
');
node1.setHasChilds(true);
rootNode.addChild(node1)
Ejemplo n.º 2
0
<?php

include_once 'include/db.php';
include_once 'include/File.php';
include_once 'config.inc';
$_REQUEST["id"] = 40172;
$dir = new DirectoryResolver();
$fullPath = $dir->getFullPath($_REQUEST["id"]);
system("start c:/far/far d:{$fullPath}");