Mailer.php
authorEdward <edward@roojs.com>
Mon, 15 Dec 2014 08:46:58 +0000 (16:46 +0800)
committerEdward <edward@roojs.com>
Mon, 15 Dec 2014 08:46:58 +0000 (16:46 +0800)
Mailer.php

index 117ba36..143c2c7 100644 (file)
@@ -459,7 +459,8 @@ class Pman_Core_Mailer {
         // unix only...
         $uinfo = posix_getpwuid( posix_getuid () ); 
         $user = $uinfo['name']; 
-        
+        print_R('run');
+        echo '\n';
         $cache = ini_get('session.save_path')."/Pman_Core_Mailer-{$user}/" . md5($url);
         if (file_exists($cache) and filemtime($cache) > strtotime('NOW - 1 WEEK')) {
             $ret =  json_decode(file_get_contents($cache), true);
@@ -474,8 +475,7 @@ class Pman_Core_Mailer {
         $a = new HTTP_Request($url);
         $a->sendRequest();
         file_put_contents($cache .'.data', $a->getResponseBody());
-        print_R('run');
-        echo "\n";
+        
         $mt = $a->getResponseHeader('Content-Type');
         
         require_once 'File/MimeType.php';