isLoggedIn()) util_show_error_page_and_exit("You need to be logged in to resign from being a maintainer."); if($aClean['iConfirmed']) { $oApp = new Application($aClean['iAppId']); if($aClean['iSuperMaintainer']) { apidb_header("You have resigned as super maintainer of ".$oApp->sName); $oMaintainer = maintainer::findAppMaintainer($_SESSION['current']->iUserId, $aClean['iAppId']); $result = $oMaintainer->delete(); } else { $oVersion = new Version($aClean['iVersionId']); apidb_header("You have resigned as maintainer of ".$oApp->sName." ".$oVersion->sName); $oMaintainer = maintainer::findVersionMaintainer($_SESSION['current']->iUserId, $aClean['iVersionId']); $result = $oMaintainer->delete(); } /* echo html_frame_start("Removing",400,"",0); */ if($result) { if($aClean['iSuperMaintainer']) 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['iSuperMaintainer']) apidb_header("Confirm super maintainer resignation of ".$oApp->sName); else apidb_header("Confirm maintainer resignation of ".$oApp->sName." ".$oVersion->sName); echo '