) function checkAppMaintainerInput( $fields ) { $errors = ""; if ( empty( $fields['maintainReason']) ) { $errors .= "
  • Please enter say why you would like to be an app maintainer.
  • \n"; } if ( empty($errors) ) { return ""; } else { return $errors; } } include("path.php"); require(BASE."include/"."incl.php"); require(BASE."include/"."tableve.php"); require(BASE."include/"."category.php"); if(!loggedin()) { errorpage("You need to be logged in to apply to be a maintainer."); exit; } opendb(); $appId = strip_tags($_POST['appId']); $versionId = strip_tags($_POST['versionId']); /* if the user is already a maintainer don't add them again */ if(isMaintainer($appId, $versionId)) { echo "You are already a maintainer of this app!"; 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 apidb_header("Submit Maintainer Request"); // add to queue $query = "INSERT INTO appMaintainerQueue VALUES (null, '". addslashes($_REQUEST['appId'])."', '". addslashes($_REQUEST['versionId'])."', '". addslashes($current->userid)."', '". addslashes($_REQUEST['maintainReason'])."',". "NOW()".");"; mysql_query($query); if ($error = mysql_error()) { echo "

    Error:

    \n"; echo "

    $error

    \n"; } else { 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 apidb_header("Request to become an application maintainer of ".appIdToName($appId).versionIdToName($versionId)); // 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 responsibilities. "; echo "

    You are expected to:"; echo "

  • You are expected to keep the application comments clean, all stale data should be removed
  • "; echo "
  • Be an active user of that application and version
  • "; echo "
  • Keep up-to-date with all wine releases, if there are regressions these should be reported to wine-devel
  • "; echo "

    You will:"; echo "

  • Receive an email anytime a comment is posted or deleted for the application or the application information is modified
  • "; echo "

    We ask that all maintainers explain why they want to be an app 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 app 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 app or if you\n"; echo "don't have the experience with wine that is necessary to help other users out.\n"; echo "

    "; echo html_frame_start("New Maintainer Form",400,"",0); echo "\n"; echo "',"\n"; echo ""; echo ""; echo '',"\n"; echo '',"\n"; echo '
    "; echo 'Application
    '.appIdToName($appId).' '.versionIdToName($versionId); echo '
    Why you want to and should be an app maintainer
    ',"\n"; echo html_frame_end(); echo "

    "; } apidb_footer(); ?>