Show browse.php syntax highlighted
<?php
/*
Copyright 2003,2004,2005,2006 Dashamir Hoxha, dashohoxha@users.sf.net
This file is part of phpWebApp.
phpWebApp is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
phpWebApp is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with phpWebApp; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/**
* This is a tool that is used to browse the files
* of the application, to test templates and webboxes
* separately from the rest of the application, etc.
*
* @package sample-application
*/
/** */
include "webapp.php";
if (WebApp::first_time())
{
$path = $_SERVER["QUERY_STRING"];
WebApp::addSVar("folderListing->fileFilter", ".*");
WebApp::addSVar("folderListing->root", APP_PATH);
WebApp::addSVar("folderListing->currentPath", $path);
}
WebApp::addVar("APP_STYLE", APP_URL."modules/styles.css");
WebApp::constructHtmlPage(BROWSER_PATH."fileBrowser.html");
?>
See more files for this project here