User:IPLRecordsUpdateBot/Version 1.0 source/update.php: Difference between revisions

Content deleted Content added
Jfd34 (talk | contribs)
Created page with '<syntaxhighlight lang="php"> <?php ini_set('display_errors', 0); ini_set('max_execution_time', 2500); set_error_handler( function($code, $msg, $file, $line...'
 
Jfd34 (talk | contribs)
 
(3 intermediate revisions by the same user not shown)
Line 182:
function IPLRecordsUpdateBot_getPageInfo() {
 
global $wikiAPIRequestHeaders, $wikiAPIEditToken, $PageTitle, $PageText, $PageLatestRevisionTS, $username, $password;
 
# Before proceeding, check for any new messages on the user talk page
Line 390:
$updateTime = ((int) (($endTime - $startTime) / 60)) . ':' . str_pad(($endTime - $startTime) % 60, 2, '0', STR_PAD_LEFT);
 
$editSummary = "[[WP:BOT|Bot]]: Updating statistics ({$successfulUpdates} tablesupdates updatedsuccessful, {$failedUpdates} failed, {$updateTime})";
}
else { # Use a generic edit summary if the status file is not available for some reason
Line 405:
'summary' => $editSummary,
'text' => $PageText,
'appendtext' => 'abcdABCD1234',
'basetimestamp' => $PageLatestRevisionTS,
'nocreate' => true,