[phpwebapp-commits] CVS: web_app/boxes/folderManager folderEditing.php,1.4,1.5
Brought to you by:
dashohoxha
From: Dashamir H. <das...@us...> - 2004-07-22 16:25:50
|
Update of /cvsroot/phpwebapp/web_app/boxes/folderManager In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9224/boxes/folderManager Modified Files: folderEditing.php Log Message: reformated and modified the copyleft notice Index: folderEditing.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/boxes/folderManager/folderEditing.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** folderEditing.php 25 Aug 2003 13:18:33 -0000 1.4 --- folderEditing.php 22 Jul 2004 16:25:38 -0000 1.5 *************** *** 1,21 **** <?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 */ --- 1,22 ---- <?php /* ! This file is part of phpWebApp, which is a framework for building web ! application based on relational databases. ! Copyright 2001,2002,2003,2004 Dashamir Hoxha, das...@us... ! 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 */ *************** *** 28,53 **** { function eventHandler($event) ! { ! global $session; ! extract($event->args); ! $root = $session->Vars["folderListing.root"]; ! $path = $session->Vars["folderListing.currentPath"]; ! $currentFolder = $root.$path; ! switch ($event->name) ! { ! case "rename": ! $fromFolder = $currentFolder.$fromFolder; ! $toFolder = $currentFolder.$toFolder; ! rename($fromFolder, $toFolder); ! break; ! case "delete": ! rmdir($currentFolder.$delFolder); ! break; ! case "addNew": ! mkdir($currentFolder.$newFolder, 0700); ! break; ! } ! } } ?> \ No newline at end of file --- 29,54 ---- { function eventHandler($event) ! { ! global $session; ! extract($event->args); ! $root = $session->Vars["folderListing.root"]; ! $path = $session->Vars["folderListing.currentPath"]; ! $currentFolder = $root.$path; ! switch ($event->name) ! { ! case "rename": ! $fromFolder = $currentFolder.$fromFolder; ! $toFolder = $currentFolder.$toFolder; ! rename($fromFolder, $toFolder); ! break; ! case "delete": ! rmdir($currentFolder.$delFolder); ! break; ! case "addNew": ! mkdir($currentFolder.$newFolder, 0700); ! break; ! } ! } } ?> \ No newline at end of file |