Update of /cvsroot/openfirst/photogallery/admin
In directory sc8-pr-cvs1:/tmp/cvs-serv27259
Modified Files:
makethumb.php
Log Message:
Add some friendly error trapping for systems without the GD libraries
Index: makethumb.php
===================================================================
RCS file: /cvsroot/openfirst/photogallery/admin/makethumb.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** makethumb.php 23 Aug 2003 20:32:49 -0000 1.5
--- makethumb.php 26 Aug 2003 03:22:54 -0000 1.6
***************
*** 36,39 ****
--- 36,45 ----
if (isset($user->user)){
+ if(function_exists("gd_info") == false) {
+ echo("<p>Cannot create thumbnails because your version of PHP was not compiled with GD support.
+ [ <a href='index.php'>Manage</a> ]</p>");
+ die(include($footer));
+ }
+
$query = ofirst_dbquery("SELECT * FROM ofirst_photogallery_galleries WHERE ID = '".$_GET['ID']."'") or die(ofirst_dberror());
$gallery = ofirst_dbfetch_object($query);
***************
*** 65,67 ****
}
include($footer);
! ?>
\ No newline at end of file
--- 71,73 ----
}
include($footer);
! ?>
|