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 "
\n"; if($_SESSION['current']->hasPriv("admin")) $oVersion->outputEditor(true, true); /* false = not allowing the user to modify the parent application */ else $oVersion->outputEditor(false, true); /* false = not allowing the user to modify the parent application */ echo '',"\n"; echo '',"\n"; echo html_table_end(); echo ""; echo "

\n"; /* URL editor */ echo url::outputEditor("editAppVersion.php", $oVersion); /* Download URL editor */ echo downloadurl::outputEditor($oVersion, "editAppVersion.php"); /* only admins can move versions */ if($_SESSION['current']->hasPriv("admin")) { // move version form echo '',"\n"; echo ''; echo ''; echo html_frame_start("Move version to another application","90%","",0); echo '
',"\n"; echo html_frame_end(); } echo html_back_link(1,$oVersion->objectMakeUrl()); apidb_footer(); } ?>