Update of /cvsroot/openfirst/members/phpicalendar/includes
In directory sc8-pr-cvs1:/tmp/cvs-serv23812
Modified Files:
header.inc.php
Log Message:
This should clear up some problems, and also eliminate many of the errors people experience.
Index: header.inc.php
===================================================================
RCS file: /cvsroot/openfirst/members/phpicalendar/includes/header.inc.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** header.inc.php 5 Oct 2003 15:31:07 -0000 1.2
--- header.inc.php 22 Dec 2003 19:38:42 -0000 1.3
***************
*** 1,4 ****
--- 1,12 ----
<?php
+ global $header, $footer, $calendar_path;
include($header);
+ if(! is_readable($calendar_path)) {
+ echo("<p>In order to use the Team Calendar functionality you must create a calendar directory, and set
+ the appropriate permissions on it.
+ <br>The calendar directory should be placed under the <tt>phpicalendar</tt> directory of
+ the members module. It should be readable and writable by the web-user.</p>");
+ die(include($footer));
+ }
if(! isset($user->user) || $user->user == "") {
die(showlogin() . include($footer));
|