hasPriv("admin")) { util_show_error_page("Insufficient Privileges!"); exit; } if(!empty($aClean['sAction'])) { /* move this version to the given application */ $oVersion = new Version($aClean['iVersionId']); $oVersion->update(null, null, null, null, $aClean['iAppId']); /* redirect to the application we just moved this version to */ redirect(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(); } ?>