} else { if (olivfile_exists("access.xml")) { $_access = olivxml_load_file("access.xml"); } else { die("init.php - session access.xml not found"); } } //------------------------------------------------------------------------------ //------------------------------------------------------------------------------ // set page arguments // insert GET POST messages in argv foreach ($_GET as $key => $value) { argv::set($key, $value); } foreach ($_POST as $key => $value) { argv::set($key, $value); } // set status lang,url,val from argv // and remove these parameters from argv status::set('lang', argv::lang()); argv::remove('lang'); status::set('url', argv::url()); argv::remove('url'); //TODO create command and cmd-val if (argv::val()) { $valArray = explode("/", argv::val()); status::set('command', $valArray[0]); array_shift($valArray); status::set('cmdval', implode("/", $valArray)); } //TODO val created by router