$c->group_id = $this->to_group_id;
if (!$c->count()) {
+ //cannot go to second check
if (!empty($request['_ignore_group_count'])) {
if (!$request['_ignore_group_count']) {
$roo->jerr('no_member',array('errcode'=> 100));
$images = json_decode(file_get_contents($imageCache), true);
$r->images = $images;
}
-
+ print_r($r);exit;
return $r;
}
function toMailerData($obj,$force=false)
mkdir(dirname($cachePath), 0700, true);
}
- file_put_contents($cachePath, $this->bodytext);
+ if (empty($this->use_file)) {
+ file_put_contents($cachePath, $this->bodytext);
+ return;
+ }
+ // use-file -- uses the original template...
+ $mailtext = file_get_contents($this->use_file);
+
+ require_once 'Mail/mimeDecode.php';
+ require_once 'Mail/RFC822.php';
+ $decoder = new Mail_mimeDecode($mailtext);
+ $parts = $decoder->getSendArray();
+ file_put_contents($cachePath,$parts[2]);
+
}
function cachedImages()
return false;
}
+ if (!empty($this->use_file)) {
+ $ctime = filemtime($cachePath);
+ $mtime = filemtime($this->use_file);
+ if($ctime >= $mtime){
+ return true;
+ }
+ return false;
+
+ }
+
+
$ctime = filemtime($cachePath);
$mtime = array();