diff options
author | Pim van den Berg | 2010-06-05 11:47:24 +0200 |
---|---|---|
committer | Pim van den Berg | 2010-06-05 11:47:24 +0200 |
commit | ec5d8f568a48b578234d736a21e151b315711a82 (patch) | |
tree | cbf0954ed5e68329c307fbce2df7a6d2eb67ec75 /inc | |
parent | Define alternating odd/even css classes for rows in main summary (diff) | |
download | apt-panopticon_cgp-ec5d8f568a48b578234d736a21e151b315711a82.zip apt-panopticon_cgp-ec5d8f568a48b578234d736a21e151b315711a82.tar.gz apt-panopticon_cgp-ec5d8f568a48b578234d736a21e151b315711a82.tar.bz2 apt-panopticon_cgp-ec5d8f568a48b578234d736a21e151b315711a82.tar.xz |
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.
Diffstat (limited to 'inc')
-rw-r--r-- | inc/functions.inc.php | 6 |
1 files changed, 6 insertions, 0 deletions
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) { | |||
27 | return sprintf("%x",crc32($str)); | 27 | return sprintf("%x",crc32($str)); |
28 | } | 28 | } |
29 | 29 | ||
30 | function error_image() { | ||
31 | header("Content-Type: image/png"); | ||
32 | readfile('layout/error.png'); | ||
33 | exit; | ||
34 | } | ||
35 | |||
30 | ?> | 36 | ?> |