Copyright (C) 2005 James Grant This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; see the file COPYING. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ ?> << ".i18n("Back to Configuration")."
"; if($_POST['action']=="addimage") { if($_FILES['image']['error']==UPLOAD_ERR_OK) { //make sure its a JPEG $imagesize=getimagesize($_FILES['image']['tmp_name']); if($imagesize[2]==1 || $imagesize[2]==2 || $imagesize[2]==3) // GIF or JPG or PNG { echo notice(i18n("Creating sized logo files:
 logo-100.gif
 logo-200.gif
 logo-500.gif
 logo.gif")); //Make the gif's system("convert -sample 100 \"".$_FILES['image']['tmp_name']."\" ../data/logo-100.gif"); system("convert -sample 200 \"".$_FILES['image']['tmp_name']."\" ../data/logo-200.gif"); system("convert -sample 500 \"".$_FILES['image']['tmp_name']."\" ../data/logo-500.gif"); system("convert \"".$_FILES['image']['tmp_name']."\" ../data/logo.gif"); echo notice(i18n("Creating sized logo files:
 logo-100.png
 logo-200.png
 logo-500.png
 logo.png")); //make some PNG's as well system("convert -sample 100 \"".$_FILES['image']['tmp_name']."\" ../data/logo-100.png"); system("convert -sample 200 \"".$_FILES['image']['tmp_name']."\" ../data/logo-200.png"); system("convert -sample 500 \"".$_FILES['image']['tmp_name']."\" ../data/logo-500.png"); system("convert \"".$_FILES['image']['tmp_name']."\" ../data/logo.png"); echo happy(i18n("Logo Image successfully uploaded")); } else { echo error(i18n("Logo Image must be JPG, GIF or PNG")); } } else echo error(i18n("Error uploading Logo Image").": ".$_FILES['image']['error']); } echo "
"; echo "\n"; echo "

".i18n("Fair Logo Image")."

"; echo ""; if(file_exists("../data/logo.gif")) { echo ""; echo ""; } if(file_exists("../data/logo.png")) { echo ""; echo ""; } echo ""; echo "
".i18n("GIF Images")."
"; echo ""; echo ""; echo "",i18n("Original size")."
"; echo "".i18n("100 Pixel width")."
"; echo "".i18n("200 Pixel width")."
"; echo "500 Pixel width
"; echo "
".i18n("PNG Images")."
"; echo ""; echo ""; echo "",i18n("Original size")."
"; echo "".i18n("100 Pixel width")."
"; echo "".i18n("200 Pixel width")."
"; echo "500 Pixel width
"; echo "
"; echo ""; echo "\n"; echo "
"; echo "
"; send_footer(); ?>