isAdmin()) { UI::exitError(getMLText("admin_tools"),getMLText("access_denied")); } $v = new SeedDMS_Version; $versions = array(); if(@ini_get('allow_url_fopen') == '1') { $lines = @file('http://www.seeddms.org/latest?version='.$v->version(), FILE_IGNORE_NEW_LINES|FILE_SKIP_EMPTY_LINES); if($lines) { foreach($lines as $line) { $versions[] = explode(':', $line); } } } $tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME'])); $view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user)); if($view) { $view->setParam('version', $v); $view->setParam('availversions', $versions); $view($_GET); exit; } ?>