5 * this is technically a cli wrapper for the generator..
7 * we will test it on the web initially..
11 require_once 'Pman.php';
12 class Pman_Core_RunGenerator extends Pman
17 $o = PEAR::getStaticProperty('HTML_FlexyFramework', 'options');
18 if (!empty($o['cli'])) {
23 parent::getAuth(); // load company!
24 $au = $this->getAuthUser();
25 if (!$au || $au->company()->comptype != 'OWNER') {
26 $this->jerr("Not authenticated", array('authFailure' => true));
28 $this->authUser = $au;
34 require_once 'Pman/Core/Generator.php';
35 ini_set('pcre.backtrack_limit', 2000000);
36 ini_set('pcre.recursion_limit', 2000000);
39 $lastarg = $this->cli ? array_pop($_SERVER['argv']) : '';
40 if (preg_match('/RunGenerator/', $lastarg)) {
43 $x = new Pman_Core_Generator();
44 // $x->page = clone($this);
45 $x->start($this->cli, $args, $lastarg);