isLoggedIn()) { errorpage("You need to be logged in to apply to be a maintainer."); exit; } $appId = strip_tags($_POST['appId']); $versionId = strip_tags($_POST['versionId']); $confirmed = strip_tags($_POST['confirmed']); $superMaintainer = strip_tags($_POST['superMaintainer']); if($confirmed) { if($superMaintainer) { apidb_header("You have resigned as supermaintainer of ".lookup_app_name($appId)); $query = "DELETE FROM appMaintainers WHERE userId = ".$_SESSION['current']->userid. " AND appId = ".$appId." AND superMaintainer = ".$superMaintainer.";"; } else { apidb_header("You have resigned as maintainer of ".lookup_app_name($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 ".lookup_app_name($appId); else echo "You were removed as a maintainer of ".lookup_app_name($appId).lookup_version_name($versionId); } } else { if($superMaintainer) apidb_header("Confirm supermaintainer resignation of ".lookup_app_name($appId)); else apidb_header("Confirm maintainer resignation of ".lookup_app_name($appId).lookup_version_name ($versionId)); echo '