hasPriv("admin") && !$_SESSION['current']->isMaintainer($_REQUEST['versionId']) && !$_SESSION['current']->isSuperMaintainer($_REQUEST['appId'])) { errorpage("Insufficient Privileges!"); exit; } /* process the changes the user entered into the web form */ if(isset($_REQUEST['submit'])) { process_app_version_changes(true); redirect(apidb_fullurl("appview.php?versionId=".$_REQUEST['versionId'])); } else /* or display the webform for making changes */ { HtmlAreaLoaderScript(array("editor")); /* load the appropriate htmlarea controls */ $oVersion = new Version($_REQUEST['versionId']); apidb_header("Edit Application Version"); echo "
"; // url edit form echo '"; /* only admins can move versions */ if($_SESSION['current']->hasPriv("admin")) { // move version form echo '