userid. " AND appId = ".$appId." AND superMaintainer = ".$superMaintainer.";"; } else { apidb_header("You have resigned as maintainer of ".appIdToName($appId)); $query = "DELETE FROM appMaintainers WHERE userId = ".$_SESSION['current']->userid. " AND appId = ".$appId." AND versionId = ".$versionId." AND superMaintainer = ".$superMaintainer.";"; } /* echo html_frame_start("Removing",400,"",0); */ if($result = query_appdb($query)) { if($superMaintainer) echo "You were removed as a supermaintainer of ".appIdToName($appId); else echo "You were removed as a maintainer of ".appIdToName($appId).versionIdToName($versionId); } } else { if($superMaintainer) apidb_header("Confirm supermaintainer resignation of ".appIdToName($appId)); else apidb_header("Confirm maintainer resignation of ".appIdToName($appId).versionIdToName($versionId)); echo '
',"\n"; echo html_frame_start("Confirm",400,"",0); echo "\n"; echo ""; echo ""; echo ""; echo ""; if($superMaintainer) { echo "\n"; echo '\n"; echo '
Are you sure that you want to be removed as a super maintainer of this application?
', "\n"; } else { echo "
Are you sure that you want to be removed as a maintainer of this application?
', "\n"; } echo "
"; } echo html_frame_end(); apidb_footer(); ?>