*/
class Pman_Core_Mailer {
- var $debug = 2;
+ var $debug = 0;
var $page = false; /* usually a html_flexyframework_page */
var $contents = false; /* object or array */
var $template = false; /* string */
$this->debug = $ff->Core_Mailer['debug'];
}
$this->log("URL MAP");
- $this->log($urlmap);
+ $this->log($this->urlmap);
}
return $email;
}
- $this->log( htmlspecialchars(print_r($email,true)));
+ //$this->log( htmlspecialchars(print_r($email,true)));
///$recipents = array($this->email);
$mailOptions = PEAR::getStaticProperty('Mail','options');
return $ret;
}
}
+ $this->log("mapurl no change - $in");
return $in;
function log($val)
{
- if (!$this->debug < 1) {
+ if (!$this->debug) {
return;
}
- if ($$this->debug < 2) {
+ if ($this->debug < 2) {
echo '<PRE>' . $val. "\n";
+ return;
}
$fh = fopen('/tmp/core_mailer.log', 'a');
fwrite($fh, date('Y-m-d H:i:s -') . json_encode($val) . "\n");