/
config.php
17 lines (13 loc) · 928 Bytes
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
// Notification settings
$notifyMail = 'wlm-de-utils.monitoring@tools.wmflabs.org';
$subjectPrefix = '[WLM-Monitor]';
// Forward script settings
$checkURL = 'https://tools.wmflabs.org/wlm-de-utils/redirect/Benutzer%3AGabriel+Birke+%28WMDE%29%2FDemo+Liste+Baudenkmale+Bad+Wiessee/wlm-de-by?id=D-1-82-111-30&lat=11.70699&lon=47.73638';
$expectedLocation = 'https://commons.wikimedia.org/wiki/Special:UploadWizard?campaign=wlm-de-by&lat=11.70699&lon=47.73638&categories=Cultural+heritage+monuments+in+Bad+Wiessee%7CUploaded+with+UploadWizard+via+delists&objref=de%7CBenutzer%3AGabriel_Birke_%28WMDE%29%2FDemo_Liste_Baudenkmale_Bad_Wiessee%7CD-1-82-111-30&fields%5B%5D=D-1-82-111-30&updateList=1';
// Bot check settings
$checkPatterns = [
'/\s+commonsbot\s+/' => 'Commons Bot'
];
// How often should the notification mail be sent in case an error occurs
$notificationInterval = 1800; // Notify every 30 minutes (60 * 30)