$img->limit(1);
if (!$img->find(true)) {
- header('Location: ' . $this->rootURL . '/Pman/templates/images/file-broken.png');
- die("No file exists");
+ header('Location: ' . $this->rootURL . '/Pman/templates/images/file-broken.png?reason='.;
+ urlencode("No file exists");
}
$id = $img->id;
$img = DB_DataObjecT::factory('Images');
if (!$id || !$img->get($id)) {
header('Location: ' . $this->rootURL . '/Pman/templates/images/file-broken.png?reason=' .
- urlencode("image has been removed or deleted."));
+ urlencode("image has been removed or deleted."));
}
$this->serve($img);
exit;