You are here

function brokenimage in Brilliant Gallery 6.2

Same name and namespace in other branches
  1. 5.4 image.php \brokenimage()
  2. 5.3 image.php \brokenimage()
  3. 6 image.php \brokenimage()
  4. 6.3 image.php \brokenimage()
1 call to brokenimage()
resizeimage in ./image.php

File

./image.php, line 167

Code

function brokenimage($msg) {
  $im = imagecreatetruecolor(150, 30);
  $bgc = imagecolorallocate($im, 0, 0, 0);
  $tc = imagecolorallocate($im, 255, 255, 255);
  imagefilledrectangle($im, 0, 0, 150, 30, $bgc);
  imagestring($im, 1, 5, 5, $msg, $tc);
  imagejpeg($im);
  exit;
}