isLoggedIn()) { util_show_error_page("You need to be logged in to resign from being a maintainer."); exit; } if($aClean['confirmed']) { $oApp = new Application($aClean['appId']); if($aClean['superMaintainer']) { apidb_header("You have resigned as super maintainer of ".$oApp->sName); $result = $_SESSION['current']->deleteMaintainer($oApp->iAppId, null); } else { $oVersion = new Version($aClean['versionId']); apidb_header("You have resigned as maintainer of ".$oApp->sName." ".$oVersion->sName); $result = $_SESSION['current']->deleteMaintainer($oApp->iAppId, $oVersion->iVersionId); } /* echo html_frame_start("Removing",400,"",0); */ if($result) { if($aClean['superMaintainer']) echo "You were removed as a super maintainer of ".$oApp->sName; else echo "You were removed as a maintainer of ".$oApp->sName." ".$oVersion->sName; } } else { if($aClean['superMaintainer']) apidb_header("Confirm super maintainer resignation of ".$oApp->sName); else apidb_header("Confirm maintainer resignation of ".$oApp->sName." ".$oVersion->sName); echo '