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 */ { $oVersion = new Version($_REQUEST['versionId']); apidb_header("Edit Application Version"); echo "