hasPriv("admin")) util_show_error_page_and_exit("Insufficient Privileges!"); if(!empty($aClean['sAction'])) { /* move this version to the given application */ $oVersion = new Version($aClean['iVersionId']); $oVersion->iAppId = $aClean['iAppId']; $oVersion->update(); $oApp = new application($aClean['iAppId']); /* redirect to the application we just moved this version to */ util_redirect_and_exit($oApp->objectMakeUrl()); } else /* or display the webform for making changes */ { ?> iAppId); apidb_header("Choose application to move this version under"); echo "
"; echo html_back_link(1, $oVersion->objectMakeUrl()); apidb_footer(); } ?>