...

View Full Version : PHP MediaWiki Bot



RyanB88
05-13-2008, 11:34 PM
I found some starting code here: http://wikisum.com/w/User:Adam/Creating_MediaWiki_bots_in_PHP

about creating a PHP MediaWiki Bot, but I need help customizing it.

Fortunatley, the bot is simple.

I need it to check Project:Sandbox check the source to see if it has been modified from its default version, if so restore it to the default version. Then I will run the bot via cron jobs to reset the Sandbox page every few hours.

RyanB88
05-15-2008, 09:20 PM
any ideas on how do do this?

This the the defualt page content

<!-- PLEASE DO NOT EDIT THIS --> {{Sandbox Head}}
<!-- THE SANDBOX IS PURGED EVERY 12 HOURS BUT OTHER USERS MAY REMOVE CONTENT BEFORE THEN -->
<!-- PLEASE DO NOT PLACE COPYRIGHTED, OFFENSIVE, OR LIBELOUS CONTENT HERE ->
<!-- YOU MAY BEGIN EDITING BELOW THIS LINE -->



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum