Ejemplo n.º 1
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}");
Ejemplo n.º 2
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.º 3
0
 /**
  * @test
  */
 public function can_resolve_http_schemes()
 {
     $r = new DirectoryResolver();
     $this->assertInstanceOf('Quickmire\\ApiTester\\Fetchers\\HttpFetcher', $r->resolve('http://httpbin.org/ip'), "http uri did not resolve to HttpFetcher");
     $this->assertInstanceOf('Quickmire\\ApiTester\\Fetchers\\HttpFetcher', $r->resolve('https://httpbin.org/ip?param=123&param2=#afdaf'), "https uri with query string and hashes did not resolve to HttpFetcher");
 }