From ec5d8f568a48b578234d736a21e151b315711a82 Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Sat, 5 Jun 2010 11:47:24 +0200 Subject: remove php gd dependency Image error messages were shown using PHP GD. People who haven't installed PHP GD don't understand what is going on when an image is not shown. It is replaced by a static image referring to the error log for more information. --- inc/functions.inc.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'inc') diff --git a/inc/functions.inc.php b/inc/functions.inc.php index b0706d5..04e58e3 100644 --- a/inc/functions.inc.php +++ b/inc/functions.inc.php @@ -27,4 +27,10 @@ function crc32hex($str) { return sprintf("%x",crc32($str)); } +function error_image() { + header("Content-Type: image/png"); + readfile('layout/error.png'); + exit; +} + ?> -- cgit v1.1