- /// not sure if this will work...
- return $ui['scheme'] .'://'.$ui['host']. $ui['path'] . '/../'. $url;
-
- }
-
-
- function post()
- {
-
-
- if(isset($_REQUEST['importUrl']))
- {
- $this->checkHeader($_REQUEST['importUrl']);
- $data = $this->convertStyle($_REQUEST['importUrl'], '');
- $this->jok($data);
- }
-
- // Import from file
- $htmlFile = DB_DataObject::factory('images');
- $htmlFile->setFrom(array(
- 'onid' => 0,
- 'ontable' =>'crm_mailing_list_message'
- ));
- $htmlFile->onUpload(false);
- // print_r($htmlFile);
- if($htmlFile->mimetype != 'text/html')
- {
- $this->jerr('accept html file only!');
- }
- if(!file_exists($htmlFile->getStoreName()))
- {
- $this->jerr('update failed!');
- }