) */ function checkAppMaintainerInput( $fields ) { $errors = ""; if ( empty( $fields['maintainReason']) ) { $errors .= "
  • Please enter why you would like to be an application maintainer.
  • \n"; } if ( empty($errors) ) { return ""; } else { return $errors; } } if(!$_SESSION['current']->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']); $superMaintainer = strip_tags($_POST['superMaintainer']); /* if we have a versionId to check against see if */ /* the user is already a maintainer */ if(!$superMaintainer && $_SESSION['current']->isMaintainer($versionId)) { echo "You are already a maintainer of this app!"; exit; } /* if this user is a super maintainer they maintain all of the versionIds of this appId */ if($_SESSION['current']->isSuperMaintainer($appId)) { echo "You are already a supermaintainer of the whole application family!"; exit; } if($_REQUEST['maintainReason']) { // check the input for empty/invalid fields $errors = checkAppMaintainerInput($_REQUEST); if(!empty($errors)) { errorpage("We found the following errors:","
    Please go back and correct them."); exit; } // header if($superMaintainer) apidb_header("Submit SuperMaintainer Request"); else apidb_header("Submit Maintainer Request"); // add to queue $query = "INSERT INTO appMaintainerQueue VALUES (null, '". addslashes($_REQUEST['appId'])."', '". addslashes($_REQUEST['versionId'])."', '". addslashes($_SESSION['current']->iUserId)."', '". addslashes($_REQUEST['maintainReason'])."', '". addslashes($_REQUEST['superMaintainer'])."',". "NOW()".");"; if (query_appdb($query)) { echo "

    Your maintainer request has been submitted for review. You should hear back\n"; echo "soon about the status of your submission

    \n"; } } else { // header if($versionId) { $oVersion = new Version($versionId); $oApp = new Application($oVersion->iAppId); apidb_header("Request to become an application maintainer of ".$oApp->sName." ".$oVersion->sName); } else { $oApp = new Application($appId); apidb_header("Request to become an application super maintainer of ".$oApp->sName); } // show add to queue form echo '
    ',"\n"; echo "

    This page is for submitting a request to become an application maintainer.\n"; echo "An application maintainer is someone who runs the application \n"; echo "regularly and who is willing to be active in reporting regressions with newer \n"; echo "versions of Wine and to help other users run this application under Wine.

    "; echo "

    Being an application maintainer comes with new rights and new responsibilities; please be sure to read the maintainer's guidelines before to proceed.

    "; echo "

    We ask that all maintainers explain why they want to be an application maintainer,\n"; echo "why they think they will do a good job and a little about their experience\n"; echo "with Wine. This is both to give you time to\n"; echo "think about whether you really want to be an application maintainer and also for the\n"; echo "appdb admins to identify people that are best suited for the job. Your request\n"; echo "may be denied if there are already a handful of maintainers for this application or if you\n"; echo "don't have the experience with Wine that is necessary to help other users out.

    \n"; /* Special message for super maintainer applications */ if($superMaintainer) { echo "

    Super maintainers are just like normal maintainers but they can modify EVERY version of\n"; echo "this application (and the application itself). We don't expect you to run every version but at least to help keep\n"; echo "the forums clean of stale and out-of-date information.

    \n"; } echo "

    "; if($superMaintainer) echo html_frame_start("New Super Maintainer Form",400,"",0); else echo html_frame_start("New Maintainer Form",400,"",0); echo "\n"; echo "',"\n"; if($versionId) { echo "',"\n"; } echo ""; echo ""; echo ""; if($superMaintainer) echo '',"\n"; else echo '',"\n"; echo '',"\n"; echo '
    "; echo 'Application'.$oApp->sName; echo '
    "; echo 'Version'.$oVersion->sName; echo '
    Why you want to and should be an application super maintainer
    Why you want to and should be an application maintainer
    ',"\n"; echo html_frame_end(); echo "
    "; } apidb_footer(); ?>