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

index 06a7b06..2a47748 100644 (file)
@@ -78,12 +78,12 @@ 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}";
+                //$path = $ff->baseURL. "Images/Thumb/150/{$filesJ->POST->onid}";
         foreach($filesJ->FILES as $f){
             $imageFile = $ff->Pman['event_log_dir']. "/{$user}" . date('/Y/m/d/',strtotime($ev->event_when)). $f->tmp_name;
             list($width, $height, $type, $attr) = getimagesize($imageFile);
             
-            echo "<img src=\"img/flag.jpg\" $attr alt=\"getimagesize() example\" />";
+            echo "<img src=\"$imageFile\" $attr alt=\"getimagesize() example\" />";
             //$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);