00001 <?php 00002 /* 00003 This file is part of phpWebApp, which is a framework for building 00004 web application based on relational databases. 00005 00006 Copyright 2001, 2002, 2003, 2004, 2005, 2006, 2007 00007 Dashamir Hoxha, dashohoxha@users.sourceforge.net 00008 00009 phpWebApp is free software; you can redistribute it and/or modify 00010 it under the terms of the GNU General Public License as published 00011 by the Free Software Foundation; either version 2 of the License, 00012 or (at your option) any later version. 00013 00014 phpWebApp is distributed in the hope that it will be useful, but 00015 WITHOUT ANY WARRANTY; without even the implied warranty of 00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00017 General Public License for more details. 00018 00019 You should have received a copy of the GNU General Public License 00020 along with phpWebApp; if not, write to the Free Software 00021 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 00022 USA 00023 */ 00024 00025 //browsing is disabled for security reasons 00026 //remove or comment exit to enable it 00027 exit(0); 00028 00037 include "webapp.php"; 00038 00039 if (WebApp::first_time()) 00040 { 00041 $path = $_SERVER["QUERY_STRING"]; 00042 WebApp::addSVar("folderListing->fileFilter", ".*"); 00043 WebApp::addSVar("folderListing->root", APP_PATH); 00044 WebApp::addSVar("folderListing->currentPath", $path); 00045 } 00046 00047 WebApp::addVar("APP_STYLE", APP_URL."templates/styles.css"); 00048 WebApp::constructHtmlPage(BROWSER_PATH."fileBrowser.html"); 00049 ?>