} $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')); } if (!G()->win) { G()->win = rTicket::get(); } if (isset($_GET['qgSetting'])) { foreach ($_GET['qgSetting'] as $id => $value) { $S = settingArray::getSetting($id); $S && $S->setUser($value); } }