|
From: Benjamin C. <bc...@us...> - 2002-03-26 17:12:33
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv19966
Modified Files:
index.php
Log Message:
Added permission check and warning concerning the jpgraph images subdirectory
Index: index.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/index.php,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- index.php 20 Mar 2002 15:14:48 -0000 1.20
+++ index.php 26 Mar 2002 17:12:29 -0000 1.21
@@ -94,7 +94,11 @@
// Show the overall bug stats
if (USE_JPGRAPH) {
- $t->set_var('sblock', build_image($restricted_projects));
+ if (!is_writeable('jpgimages')) {
+ $t->set_var('sblock', $STRING['image_path_not_writeable']);
+ } else {
+ $t->set_var('sblock', build_image($restricted_projects));
+ }
} else {
$stats = grab_data($restricted_projects);
$total = 0;
|