if (!empty($opts['send-to'])) {
$this->send_to = $opts['send-to'];
}
-
+
+ $w = DB_DataObject::factory('core_notify_recur');
+ $w->generateNotifications();
+
//DB_DataObject::debugLevel(1);
$w = DB_DataObject::factory($this->table);
$php = $_SERVER["_"];
$sn = $_SERVER["SCRIPT_NAME"];
- $cwd = $sn[0] == '/' ? dirname($sn) : dirname(realpath(getcwd() . $sn)); // same as run on.. (so script should end up being same relatively..)
+ $cwd = $sn[0] == '/' ? dirname($sn) : dirname(realpath(getcwd() . '/'. $sn)); // same as run on.. (so script should end up being same relatively..)
$app = $cwd . '/' . basename($_SERVER["SCRIPT_NAME"]) . ' ' . $this->target . '/'. $id;
if ($this->force) {
$app .= ' -f';
}
fclose($p['pipes'][0]);
fclose($p['pipes'][2]);
- echo "CLOSING: ({$p['pid']}) " . $p['cmd'] . " : " . file_get_contents($p['out']) . "\n";
+ //echo "CLOSING: ({$p['pid']}) " . $p['cmd'] . " : " . file_get_contents($p['out']) . "\n";
//fclose($p['pipes'][1]);
proc_close($p['proc']);