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

index 0572356..06a7b06 100644 (file)
@@ -80,8 +80,12 @@ class Pman_Admin_EventView extends Pman
         
                 $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\" />";
             //$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.'" />';
+            //echo '<img src="'.$path.'" />';
             print_r($ff->baseURL);
         }