Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

1gd.php

Go to the documentation of this file.
00001 <?php
00002 /* $Id: 1gd.php,v 1.4 2003/10/17 08:14:47 mikko Exp $ */
00003 /*
00004  * ImaComm - a web based photo album software
00005  * Copyright (C) 2003, Mikko Kokkonen
00006  *
00007  * This program is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU General Public License as published by
00009  * the Free Software Foundation; either version 2 of the License, or (at
00010  * your option) any later version.
00011  * 
00012  * This program is distributed in the hope that it will be useful, but
00013  * WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  * General Public License for more details.
00016  * 
00017  * You should have received a copy of the GNU General Public License
00018  * along with this program; if not, write to the Free Software
00019  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00020  */
00021 // Notice! Also this is allowed!
00022 if (function_exists("gd_info"))
00023 {
00024         $info = gd_info();
00025         $ver = $info['GD Version'];
00026 }
00027 $module = array(
00028                 "name"      => "GD Library support",
00029                 "var"       => "gdlib",
00030                 "type"      => "function_check",
00031                 "functions" => "imagecreatetruecolor:imagecreatefromjpeg:imagecreatefromgif:imagecreatefrompng:imagecopyresampled:imagejpeg:imagegif:imagepng",
00032                 "serious"   => true,
00033                 "error"     => 7,
00034                 "warning"   => 0,
00035                 "passed"    => "All needed GD functions founded.",
00036                 "failed"    => "Too many (or all) GD functions were missing. Please check that you have GD 2.0.0 or newer installed in PHP!<br />".(($ver != "") ? "Currently installed PHP: $ver" : "No GD installed!"),
00037                 "notpassed" => "Some functions are missing from GD support. You will need GD 2.0.0 or newer!");
00038 ?>

Generated on Sun Oct 19 11:08:00 2003 for ImaComm by doxygen1.3