hasPriv("admin")) { errorpage("Insufficient Privileges!"); exit; } if(isset($_REQUEST['action'])) { /* move this version to the given application */ $oVersion = new Version($_REQUEST['versionId']); $oVersion->update(null, null, null, null, $_REQUEST['appId']); /* redirect to the application we just moved this version to */ redirect(apidb_fullurl("appview.php?appId=".$_REQUEST['appId'])); } 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?versionId=".$oVersion->iVersionId); apidb_footer(); } ?>