projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b3016ca
)
ImportMailMessage.php
author
john
<john@roojs.com>
Wed, 20 Dec 2017 04:59:24 +0000
(12:59 +0800)
committer
john
<john@roojs.com>
Wed, 20 Dec 2017 04:59:24 +0000
(12:59 +0800)
ImportMailMessage.php
patch
|
blob
|
history
diff --git
a/ImportMailMessage.php
b/ImportMailMessage.php
index
6c55b73
..
ce4ea30
100644
(file)
--- a/
ImportMailMessage.php
+++ b/
ImportMailMessage.php
@@
-8,17
+8,14
@@
class Pman_Core_ImportMailMessage extends Pman_Core_ConvertStyle
{
function getAuth()
{
{
function getAuth()
{
-
if (HTML_FlexyFramework::get()->cli) {
return true;
}
if (HTML_FlexyFramework::get()->cli) {
return true;
}
-
$this->authUser = $this->getAuthUser();
if (!$this->authUser) {
return false;
}
$this->authUser = $this->getAuthUser();
if (!$this->authUser) {
return false;
}
-
- return true;
+ return true;
}
function get($v, $opts=array())
}
function get($v, $opts=array())
@@
-30,7
+27,6
@@
class Pman_Core_ImportMailMessage extends Pman_Core_ConvertStyle
function post($v)
{
function post($v)
{
-
if(isset($_REQUEST['_convertToPlain']))
{
require_once 'System.php';
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']))
{
// Import from URL
if(isset($_REQUEST['importUrl']))
{
-
$this->checkHeader($_REQUEST['importUrl']);
$this->checkHeader($_REQUEST['importUrl']);
-
- var_dump('die');exit;
-
$data = $this->convertStyle($_REQUEST['importUrl'], '', true);
$this->jok($data);
}
$data = $this->convertStyle($_REQUEST['importUrl'], '', true);
$this->jok($data);
}
-
-
// Import from file
$htmlFile = DB_DataObject::factory('images');
// Import from file
$htmlFile = DB_DataObject::factory('images');