<?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();