partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit 6f994c97e5cfa7bf900eda26f79604ce6d363db7
parent b52e5eb608091df8186c9507e65a6b990e8cfc03
Author: Felicitus <felicitus@felicitus.org>
Date:   Mon,  2 Jul 2012 18:58:24 +0200

Merge branch 'master' of github.com:partkeepr/PartKeepr

Diffstat:
Msrc/backend/PartKeepr/Image/ImageRenderer.php | 18+++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/backend/PartKeepr/Image/ImageRenderer.php b/src/backend/PartKeepr/Image/ImageRenderer.php @@ -19,20 +19,20 @@ class ImageRenderer { * @param int $h Height of the image */ public static function outputRenderNotFoundImage ($w, $h) { - $image = imagecreate($w, $h); - $white = imagecolorallocate($image, 255,255,255); - $black = imagecolorallocate($image, 0,0,0); + $image = \imagecreate($w, $h); + $white = \imagecolorallocate($image, 255,255,255); + $black = \imagecolorallocate($image, 0,0,0); header("Content-Type: image/png"); - $w = $_REQUEST["w"]-1; - $h = $_REQUEST["h"]-1; - imagefill($image, 0,0, $white); + $w = $w-1; + $h = $h-1; + \imagefill($image, 0,0, $white); /* Draw the X */ - imageline($image, 0,0,$w,$h, $black); - imageline($image, $w,0,0,$h, $black); - imagepng($image); + \imageline($image, 0,0,$w,$h, $black); + \imageline($image, $w,0,0,$h, $black); + \imagepng($image); } /**