Update of /cvsroot/phpwebapp/app1
In directory sc8-pr-cvs1:/tmp/cvs-serv17951
Modified Files:
webapp.php index.php browse.php
Log Message:
Added copying permission statement for GNU GPL.
Index: webapp.php
===================================================================
RCS file: /cvsroot/phpwebapp/app1/webapp.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** webapp.php 15 Aug 2003 09:03:22 -0000 1.3
--- webapp.php 25 Aug 2003 13:41:13 -0000 1.4
***************
*** 1,3 ****
--- 1,24 ----
<?php
+ /*
+ Copyright 2001,2002,2003 Dashamir Hoxha, das...@us...
+
+ 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
+ */
+
+
//define APP_PATH and APP_URL
$script_filename = $_SERVER["SCRIPT_FILENAME"];
***************
*** 26,30 ****
include WEBAPP_PATH."WebApp.php";
! if ($event->targetPage==UNDEFINED)
{
//first time that the user enters in the application
--- 47,51 ----
include WEBAPP_PATH."WebApp.php";
! if (WebApp::first_time())
{
//first time that the user enters in the application
Index: index.php
===================================================================
RCS file: /cvsroot/phpwebapp/app1/index.php,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** index.php 21 Feb 2003 08:23:37 -0000 1.1.1.1
--- index.php 25 Aug 2003 13:41:13 -0000 1.2
***************
*** 1,3 ****
--- 1,24 ----
<?php
+ /*
+ Copyright 2001,2002,2003 Dashamir Hoxha, das...@us...
+
+ 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
+ */
+
+
include_once "webapp.php";
Index: browse.php
===================================================================
RCS file: /cvsroot/phpwebapp/app1/browse.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** browse.php 6 Aug 2003 08:55:36 -0000 1.2
--- browse.php 25 Aug 2003 13:41:13 -0000 1.3
***************
*** 1,5 ****
<?php
include "webapp.php";
WebApp::addVar("APP_STYLE", APP_URL."templates/styles.css");
WebApp::constructHtmlPage(BROWSER_PATH."fileBrowser.html");
! ?>
--- 1,35 ----
<?php
+ /*
+ Copyright 2001,2002,2003 Dashamir Hoxha, das...@us...
+
+ 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
+ */
+
+
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."templates/styles.css");
WebApp::constructHtmlPage(BROWSER_PATH."fileBrowser.html");
! ?>
\ No newline at end of file
|