$bits= explode('/', $s);
$id = 0;
- var_dump($bits);exit;
+// var_dump($bits);die('in');
// without id as first part...
if (!empty($bits[0]) && $bits[0] == 'Thumb') {
$this->thumb = true;
$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."));
+
}
$this->serve($img);
exit;
require_once 'File/Convert.php';
if (!file_exists($img->getStoreName())) {
- //print_r($img);exit;
+// print_r($img);exit;
header('Location: ' . $this->rootURL . '/Pman/templates/images/file-broken.png?reason=' .
urlencode("Original file was missing : " . $img->getStoreName()));
}
-
+// print_r($img);exit;
$x = $img->toFileConvert();
if (empty($this->as_mimetype)) {
$this->as_mimetype = $img->mimetype;