var $pool = array();
- function get($r,$opts)
+ function parseArgs(&$opts)
{
if ($opts['debug']) {
DB_DataObject::debugLevel($opts['debug']);
if (empty($opts['limit'])) {
$opts['limit'] = '1000'; // not sure why it's not picking up the defautl..
}
- //date_default_timezone_set('UTC');
- // phpinfo();exit;
$showold = !empty($opts['old']);
if (!empty($opts['old'])) {
$opts['list'] = 1; // force listing..
if (!empty($opts['send-to'])) {
$this->send_to = $opts['send-to'];
}
+ }
+
+
+ function get($r,$opts)
+ {
+ $this->parseArgs($opts);
+
+ //date_default_timezone_set('UTC');
+ // phpinfo();exit;
+
$w = DB_DataObject::factory('core_notify_recur');
$w = DB_DataObject::factory($this->table);
- if (!$showold) {
+ if (!empty($opts['old']) {
// standard
$app .= ' --sent-to='.escapeshellarg($this->send_to);
}
$cmd = 'exec ' . $php . ' ' . $app . ' ' . $cmdOpts; //. ' &';
- print_r($cmd);exit;
+
$pipe = array();
$this->logecho("call proc_open $cmd");