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(); /* redirect to the application we just moved this version to */ util_redirect_and_exit(apidb_fullurl("appview.php?iAppId=".$aClean['iAppId'])); } else /* or display the webform for making changes */ { ?> iAppId); apidb_header("Choose application to move this version under"); echo "
"; echo html_back_link(1, BASE."appview.php?iVersionId=".$oVersion->iVersionId); apidb_footer(); } ?>