EventView.php
authorChris <chris@roojs.com>
Fri, 12 Oct 2012 09:05:59 +0000 (17:05 +0800)
committerChris <chris@roojs.com>
Fri, 12 Oct 2012 09:05:59 +0000 (17:05 +0800)
EventView.php

index 95a1b91..0572356 100644 (file)
@@ -78,10 +78,10 @@ class Pman_Admin_EventView extends Pman
         $filesJ = json_decode(file_get_contents($file));
         echo '<br /><PRE>Images Preview</PRE>';
         
-                
+                $path = $ff->baseURL. "Images/Thumb/150/{$filesJ->POST->onid}";
         foreach($filesJ->FILES as $f){
-            $path = $ff->baseURL. "Images/Thumb/150/$ff->Pman['event_log_dir']. "/{$user}" . date('/Y/m/d/',strtotime($ev->event_when)). $f->tmp_name;
-            echo '<img src="'.htmlspecialchars(file_get_contents($path)).'" />';
+            //$path = $ff->baseURL. "Images/Thumb/150/$ff->Pman['event_log_dir']. "/{$user}" . date('/Y/m/d/',strtotime($ev->event_when)). $f->tmp_name;
+            echo '<img src="'.$path.'" />';
             print_r($ff->baseURL);
         }