aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc
diff options
context:
space:
mode:
authorPim van den Berg2010-06-05 11:47:24 +0200
committerPim van den Berg2010-06-05 11:47:24 +0200
commitec5d8f568a48b578234d736a21e151b315711a82 (patch)
treecbf0954ed5e68329c307fbce2df7a6d2eb67ec75 /inc
parentDefine alternating odd/even css classes for rows in main summary (diff)
downloadapt-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.php6
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
30function error_image() {
31 header("Content-Type: image/png");
32 readfile('layout/error.png');
33 exit;
34}
35
30?> 36?>