Exemplo n.º 1
0
 $indefBlockMessageMultiple = "indefinitely blocked on more than one wiki.";
 $indefBlockClass = "is-warn";
 $indefBlockCount = 0;
 $editCount = 0;
 $editCountRecent = 0;
 $script->printWiki();
 do {
     $script->eligible = true;
     ########
     ## Not a bot
     ########
     $script->condition(!$script->has_role('bot'), "no bot flag...", "has a bot flag: this account might not be eligible (refer to the requirements).", "", "is-warn");
     ########
     ## Not indefinitely blocked on more than one wiki
     ########
     $isBlocked = $script->indef_blocked();
     $script->condition(!$isBlocked, "not indefinitely blocked...", $indefBlockMessage, "", $indefBlockClass);
     if ($isBlocked) {
         $indefBlockCount++;
         $indefBlockClass = "";
         $indefBlockMessage = $indefBlockMessageMultiple;
     }
     ########
     ## >=300 edits before 2011-04-15
     ########
     $edits = $script->edit_count(NULL, 20110415000000.0);
     $script->condition($edits >= 300, "has 300 edits before 15 April 2011 (has {$edits})...", "does not have 300 edits before 15 April 2011 (has {$edits}); edits can be combined across wikis.", "", "is-warn");
     $editCount += $edits;
     ########
     ## >=20 edits between 2010-Nov-15 and 2011-May-15
     ########