function update() { $vs = qg::download($this->name); qg::install($this->name); $this->local_version = $vs['version']; $this->local_time = time(); $this->local_updated = time(); }
static function init($id) { if (!Usr()->superuser) { return false; } G()->Answer['cmsInfo'] = 'Das Module wurde neu initialisiert'; $name = D()->module->Entry($id)->name; qg::install($name); }
static function init($id) { G()->Answer['cmsInfo'] = 'Das Module wurde neu initialisiert'; $name = D()->module->Entry($id)->name; qg::install($name); }
static $db; if (!$db) { $db = new db('mysql:host=' . qg_dbhost . ';dbname=' . qg_dbname, qg_dbuser, qg_dbpass); } return $db; } function table($table) { qg::fire('table', array('table' => &$table)); return $table; } $x = substr($_SERVER['REQUEST_URI'], strlen(appURL)); $x = preg_replace('/\\?.*/', '', $x); $x = preg_replace('/\\/$/', '', $x); define('appRequestUri', $x); !D()->qg_setting && qg::install('core'); // todo, better solution? G()->SET = new settingArray(); G()->ASK = isset($_POST['askJSON']) ? json_decode($_POST['askJSON'], true) : null; foreach (explode(',', G()->SET['qg']['langs']->v) as $l) { $l = trim($l); if ($l) { L::$all[$l] = $l; } } L::$def = reset(L::$all); liveSess::$maxpause = G()->SET['qg']['session']['maxpause']->v; liveSess::init(); G()->win = isset(G()->ASK['rTicket']) ? G()->ASK['rTicket'] : (isset($_GET['rTicket']) ? $_GET['rTicket'] : null); if (G()->win && !rTicket::check(G()->win)) { Answer(array('info' => 'rTicket nicht gültig'));