hasPriv("admin") && !$_SESSION['current']->isMaintainer($aClean['iVersionId']) && !$_SESSION['current']->isSuperMaintainer($aClean['iAppId'])) util_show_error_page_and_exit("Insufficient Privileges!"); /* process the changes the user entered into the web form */ if(!empty($aClean['sSubmit'])) { process_app_version_changes(true); downloadurl::processForm($aClean); url::processForm($aClean); $oVersion = new version($aClean['iVersionId']); util_redirect_and_exit($oVersion->objectMakeUrl()); } else /* or display the webform for making changes */ { $oVersion = new Version($aClean['iVersionId']); apidb_header("Edit Application Version"); echo "