This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* @param array $tArray Parameters given to query with (default: array()). In addition to those recognised by the API, ['_code'] should be set to the first two characters of all the parameters in a list=XXX API call - for example, with allpages, the parameters start with 'ap', with recentchanges, the parameters start with 'rc' - and is required; ['_limit'] imposes a hard limit on the number of results returned (optional) and ['_lhtitle'] simplifies a multidimensional result into a unidimensional result - lhtitle is the key of the sub-array to return. (optional)
* @throws BadEntryError
* @param array $resume Parameter passed back at the end of a list-handler operation. Pass parameter back through to resume listhandler operation. (optional)
* @throws BadEntryError
* @return array Returns an array with the API result
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//This file is the default configuration file for Peachy. Please do not modify it. Please create a file called config.local.inc.php with the variables you want altered.
//Controls weather or not the peachy tag is displayed at the end of edit summaries.
//For debugging purposes. This generates enourmous amounts of data. Switch off if your space is limited.
$pgLogGetCommunicationData = true;
$pgLogPostCommunicationData = true;
$pgLogCommunicationData = true;
$pgLogSuccessfulCommunicationData = true;
$pgLogFailedCommunicationData = true;
//Bot output
$pgDisplayPostOutData = true;
$pgDisplayGetOutData = true;
$pgDisplayPechoVerbose = false; //Major security risk if set to true. Switch to true at your own risk.
$pgDisplayPechoNormal = true;
$pgDisplayPechoNotice = true;
$pgDisplayPechoWarn = true;
$pgDisplayPechoError = true;
$pgDisplayPechoFatal = true;
$pgWebOutput = false; //Switch to true if you are using a webserver to output your data instead of commandline.
//This controls bot checks, before doing an action. This change will affect every bot using it. Enabling it drops the edit rate.
$pgDisablechecks = false;
//Sometimes a site certificate can't be verified causing the connection to be terminated. Set this to false, if this is the case. Do so at your own risk.
$pgVerifyssl = true;
//Disable automatic updates. You will need to download updates manually then, until it is re-enabled again.
$pgDisableUpdates = false;
$pgExperimentalupdates = false;
//If your bots run on the Wikimedia Foundation Labs, this will allow Peachy to accomodate some it's features to work with the labs environment.
$pgUseLabs = false;
//API Communication settings.
$pgThrowExceptions = true;
$pgMaxAttempts = 20;
//Global bot settings
$pgMasterrunpage = null;
//SSH Settings - Should Peachy SSH into a server as it initializes?
$pgUseSSH = false;
$pgHost = null;
$pgPort = 22;
$pgUsername = null;
$pgPassphrase = null; //Passphrase to decrypt key file for authentication or password to authenticate with to server
$pgPrikey = null; //File path to the private key file.
$pgProtocol = 2; //SSH protocol to use. 1=SSH1 or 2=SSH2.
//For debugging purposes. This generates enourmous amounts of data. Switch off if your space is limited.
$pgLogGetCommunicationData = true;
$pgLogPostCommunicationData = true;
$pgLogCommunicationData = true;
$pgLogSuccessfulCommunicationData = true;
$pgLogFailedCommunicationData = true;
//Bot output
$pgDisplayPostOutData = true;
$pgDisplayGetOutData = true;
$pgDisplayPechoVerbose = false; //Major security risk if set to true. Switch to true at your own risk.
$pgDisplayPechoNormal = true;
$pgDisplayPechoNotice = true;
$pgDisplayPechoWarn = true;
$pgDisplayPechoError = true;
$pgDisplayPechoFatal = true;
$pgWebOutput = false; //Switch to true if you are using a webserver to output your data instead of commandline.
//This controls bot checks, before doing an action. This change will affect every bot using it. Enabling it drops the edit rate.
$pgDisablechecks = false;
//Sometimes a site certificate can't be verified causing the connection to be terminated. Set this to false, if this is the case. Do so at your own risk.
$pgVerifyssl = true;
//Disable automatic updates. You will need to download updates manually then, until it is re-enabled again.
$pgDisableUpdates = false;
$pgExperimentalupdates = false;
//If your bots run on the Wikimedia Foundation Labs, this will allow Peachy to accomodate some it's features to work with the labs environment.
$pgUseLabs = false;
//API Communication settings.
$pgThrowExceptions = true;
$pgMaxAttempts = 20;
//Global bot settings
$pgMasterrunpage = null;
//SSH Settings - Should Peachy SSH into a server as it initializes?
$pgUseSSH = false;
$pgHost = null;
$pgPort = 22;
$pgUsername = null;
$pgPassphrase = null; //Passphrase to decrypt key file for authentication or password to authenticate with to server
$pgPrikey = null; //File path to the private key file.
$pgProtocol = 2; //SSH protocol to use. 1=SSH1 or 2=SSH2.
$pgTimeout = 10;
//Import local settings if available
if (file_exists($pgIP . 'config.local.inc.php')) {