Update of /cvsroot/openfirst/members
In directory sc8-pr-cvs1:/tmp/cvs-serv15421
Modified Files:
workspace.php
Log Message:
Add iCalendar support to the workspace so that every user may upload calendars to the events list.
Index: workspace.php
===================================================================
RCS file: /cvsroot/openfirst/members/workspace.php,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** workspace.php 13 Sep 2003 15:38:25 -0000 1.10
--- workspace.php 5 Oct 2003 23:16:33 -0000 1.11
***************
*** 193,197 ****
echo("</td></tr>
</table></td><td>");
! if($fimg == "icons/mimetypes/html.png" || $fimg == "icons/mimetypes/txt.png") {
if (($fi->division == $user->division && substr($fi->permissions, 5,1) == "w") || ($fi->owner == $user->user && substr($fi->permissions, 2,1) == "w") || (substr($fi->permissions, 8,1) == "w")) {
echo("<form method='post' action='workspace.php'>");
--- 193,205 ----
echo("</td></tr>
</table></td><td>");
! if($fi->filetype == "ics") {
! if(file_exists("./phpicalendar/") && isset($_GET["transferics"]) == false) {
! echo("Would you like to send this file to PHP iCalendar?
! <a href='". $_SERVER["REQUEST_URI"] . "&transferics=true'>Yes, I would like to copy this file to PHP iCalendar</a>");
! } elseif(file_exists("./phpicalendar/") && isset($_GET["transferics"]) == true) {
! copy("$ws->virtfspath$fi->location/$fi->name", "phpicalendar/calendars/$user->user-$fi->name");
! echo("Calendar has been copied into PHP iCalendar. [ <a href='phpicalendar/'>View PHP iCalendar</a> ]");
! }
! } elseif($fimg == "icons/mimetypes/html.png" || $fimg == "icons/mimetypes/txt.png") {
if (($fi->division == $user->division && substr($fi->permissions, 5,1) == "w") || ($fi->owner == $user->user && substr($fi->permissions, 2,1) == "w") || (substr($fi->permissions, 8,1) == "w")) {
echo("<form method='post' action='workspace.php'>");
|