function get($args, $opts) { //print_r($opts);exit; if (empty($opts['noupdate'])) { HTML_FlexyFramework::run('Core/UpdateDatabase'); } require_once 'Pman/Core/Generator.php'; ini_set('pcre.backtrack_limit', 2000000); ini_set('pcre.recursion_limit', 2000000); $this->init(); $x = new Pman_Core_Generator(); // $x->page = clone($this); $modules = $opts['module']; // overwrite can be multiple $overwrite = is_string($opts['overwrite']) ? array($opts['overwrite']) : $opts['overwrite']; $x->start($this->cli, $modules, $overwrite); // technically it would be good to trash the cached ini files here.. // however we can not really do that, as the ownships are off.. //we can however regen our own files.. HTML_FlexyFramework::get()->generateDataobjectsCache(true); die("done!"); }
/** * Raises a fatal error. - normally only used when setting up to help get the config right. * * can redirect to fatal Action page.. - hoepfully not issued before basic vars are set up.. * * @param string text to output. * @access public */ function fatalError($msg, $showConfig = 0) { if ($this->fatalAction) { HTML_FlexyFramework::run($this->fatalAction, $msg); exit; } echo $this->cli ? $msg . "\n" : "<H1>{$msg}</H1>configuration information<PRE>"; if ($showConfig) { print_r($this); } $ff = HTML_FlexyFramework::get(); $ff->debug($msg); exit; }