From daa92dd99446fb166a903ca23d18414d54ed7ecf Mon Sep 17 00:00:00 2001 From: john Date: Wed, 20 Dec 2017 12:59:24 +0800 Subject: [PATCH] ImportMailMessage.php --- ImportMailMessage.php | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/ImportMailMessage.php b/ImportMailMessage.php index 6c55b73e..ce4ea30d 100644 --- a/ImportMailMessage.php +++ b/ImportMailMessage.php @@ -8,17 +8,14 @@ class Pman_Core_ImportMailMessage extends Pman_Core_ConvertStyle { function getAuth() { - if (HTML_FlexyFramework::get()->cli) { return true; } - $this->authUser = $this->getAuthUser(); if (!$this->authUser) { return false; } - - return true; + return true; } function get($v, $opts=array()) @@ -30,7 +27,6 @@ class Pman_Core_ImportMailMessage extends Pman_Core_ConvertStyle function post($v) { - if(isset($_REQUEST['_convertToPlain'])) { require_once 'System.php'; @@ -68,18 +64,12 @@ class Pman_Core_ImportMailMessage extends Pman_Core_ConvertStyle // Import from URL if(isset($_REQUEST['importUrl'])) { - $this->checkHeader($_REQUEST['importUrl']); - - var_dump('die');exit; - $data = $this->convertStyle($_REQUEST['importUrl'], '', true); $this->jok($data); } - - // Import from file $htmlFile = DB_DataObject::factory('images'); -- 2.39.2