isAdmin()) { UI::exitError(getMLText("admin_tools"),getMLText("access_denied")); } /* Set an encryption key if is not set */ if(!trim($settings->_encryptionKey)) $settings->_encryptionKey = md5(uniqid()); $tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME'])); $view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user, 'settings'=>$settings, 'currenttab'=>(isset($_GET['currenttab']) ? $_GET['currenttab'] : ''))); if($view) { $view($_GET); exit; } ?>