EventView.php
authorChris <chris@roojs.com>
Fri, 12 Oct 2012 11:03:25 +0000 (19:03 +0800)
committerChris <chris@roojs.com>
Fri, 12 Oct 2012 11:03:25 +0000 (19:03 +0800)
EventView.php

index 1fe444f..0989d47 100644 (file)
@@ -98,32 +98,5 @@ class Pman_Admin_EventView extends Pman
         
     }
     
-    function readImage($ip){
-        $url= str_replace('.jpg','',$url);
-        $bits = explode('/', $url);
-        
-        $opts = PEAR::getStaticProperty('Hebe','options');
-         
-        if ( $bits[0] != 'members') {
-            $bits[1] = $bits[0] . '/'.$bits[1];
-            $bits[0] = 'members';
-        }
-        
-        if (!isset($opts[$bits[0].'_photo_dir'])) {
-            echo "NO OPT SET?";
-            exit;
-        }
-        $file = $ff->Pman['event_log_dir']. "/{$user}" . date('/Y/m/d/',strtotime($ev->event_when)). $f->tmp_name;
-         
-        if (!file_exists($ip)) {
-            echo "NO FILE? $file";
-            exit;
-        }
-        
-        header ('Content-Type: image/jpeg');
-        $fh = fopen($file,'r');
-        echo fread($fh,filesize($file));
-    }
-    
     
 }