X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=ImportMailMessage.php;h=ce4ea30d905b74816b063e3e43e3bb0b7a2ab56b;hp=8d7e3974665493e2e7aaeb2dc18eb808e162f844;hb=8cd2a9237c684aa16bc21e3ac6d3793c49c65400;hpb=f075c5fa5f039169396c20cb7d0016b0f0f1126c diff --git a/ImportMailMessage.php b/ImportMailMessage.php index 8d7e3974..ce4ea30d 100644 --- a/ImportMailMessage.php +++ b/ImportMailMessage.php @@ -1,8 +1,10 @@ post(); return $this->jerr("not allowed"); } - function post() - { - print_r('run');exit; + function post($v) + { if(isset($_REQUEST['_convertToPlain'])) { require_once 'System.php'; @@ -55,6 +56,7 @@ class Pman_Crm_ImportHtml extends Pman_Core_ConvertStyle } require_once 'File/Convert.php'; $fc = new File_Convert($path, 'text/html'); + $plain = $fc->convert('text/plain'); $this->jok(file_get_contents($plain)); } @@ -62,7 +64,6 @@ class Pman_Crm_ImportHtml extends Pman_Core_ConvertStyle // Import from URL if(isset($_REQUEST['importUrl'])) { - print_r($_REQUEST);exit; $this->checkHeader($_REQUEST['importUrl']); $data = $this->convertStyle($_REQUEST['importUrl'], '', true);