示例#1
0
<?php

# vim: ts=4:sw=4
include '../Pjf.class.php';
$your_path_here = realpath(dirname(__FILE__) . '/..');
$fb = new Pjf(true);
$fb->setBasePath($your_path_here);
# <pre> tags set so you can actually see the debug style output in the browser
echo '<pre>';
echo $fb->getContent();
echo "\n\n" . $fb->getAbsolutePath('/test/index.php');
echo '</pre>';
示例#2
0
文件: get.php 项目: dsohler/pjf-class
<?php

# vim: ts=4:sw=4
# This file is used as XHR “target”. It takes ?path=X where X is the desired
# path within the base directory that gets defined by the configuration. If
# ?path=X is missing this script simply returns nothing. Otherwise the result
# of the path request processed by PJF will be shown.
if (!isset($_GET['path'])) {
    return;
}
$path = $_GET['path'];
include '../Pjf.class.php';
$pjf = new Pjf();
$pjf->setBasePath('../');
$pjf->openDirectory($path);
echo $pjf->getContent();