projects
/
Pman.Core
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SimpleExcel.php
[Pman.Core]
/
ImportMailMessage.php
diff --git
a/ImportMailMessage.php
b/ImportMailMessage.php
index
1f9f1b2
..
ce4ea30
100644
(file)
--- a/
ImportMailMessage.php
+++ b/
ImportMailMessage.php
@@
-1,5
+1,7
@@
<?php
<?php
+// should be in import folder... need to know where this is used though...
+
require_once 'ConvertStyle.php';
class Pman_Core_ImportMailMessage extends Pman_Core_ConvertStyle
require_once 'ConvertStyle.php';
class Pman_Core_ImportMailMessage extends Pman_Core_ConvertStyle
@@
-16,14
+18,14
@@
class Pman_Core_ImportMailMessage extends Pman_Core_ConvertStyle
return true;
}
return true;
}
- function get()
+ function get(
$v, $opts=array()
)
{
$this->post();
return $this->jerr("not allowed");
}
{
$this->post();
return $this->jerr("not allowed");
}
- function post()
+ function post(
$v
)
{
if(isset($_REQUEST['_convertToPlain']))
{
{
if(isset($_REQUEST['_convertToPlain']))
{
@@
-54,6
+56,7
@@
class Pman_Core_ImportMailMessage extends Pman_Core_ConvertStyle
}
require_once 'File/Convert.php';
$fc = new File_Convert($path, 'text/html');
}
require_once 'File/Convert.php';
$fc = new File_Convert($path, 'text/html');
+
$plain = $fc->convert('text/plain');
$this->jok(file_get_contents($plain));
}
$plain = $fc->convert('text/plain');
$this->jok(file_get_contents($plain));
}
@@
-61,7
+64,6
@@
class Pman_Core_ImportMailMessage extends Pman_Core_ConvertStyle
// Import from URL
if(isset($_REQUEST['importUrl']))
{
// Import from URL
if(isset($_REQUEST['importUrl']))
{
- print_r($_REQUEST);exit;
$this->checkHeader($_REQUEST['importUrl']);
$data = $this->convertStyle($_REQUEST['importUrl'], '', true);
$this->checkHeader($_REQUEST['importUrl']);
$data = $this->convertStyle($_REQUEST['importUrl'], '', true);