Jump to content

WikiImporter

From mediawiki.org
This isn't an Extension and needs a better place for documentation.

Description

[edit]

This is a utility script that selectively updates a wiki using another wiki's content, i.e. if you have a public and a private wiki where the public wiki has *only* partial contents of the private wiki, this script can selectively fetch pages/images from your private wiki and import them to your public wiki. Its needed to list all the pages to import in a file in separate lines.

Usage

[edit]

Just run this script after setting the settings (below).


Example settings

[edit]

Please set the settings in settings.php to point to your wikis

$settings['publicWiki'] = "http://myPublic.com/w"; // Location of Api.php
$settings['publicWikiUser'] = "Nischay Nahata"; // Username of account with read,write permissions
$settings['publicWikiPassword'] = "password"; // Password

$settings['privateWiki'] = "http://myPrivate.com/w"; // Location of Api.php
$settings['privateWikiUser'] = "Nischay Nahata"; // Username of account with read permissions
$settings['privateWikiPassword'] = "password"; // Password

$settings['file'] = "clientPages.txt";

Example File

[edit]

file named clientPages.txt has the following text:

Hello Category:Id File:Passportpics.jpg

Authors

[edit]

wikiImporter was originally written by Nischay Nahata, as http://www.WikiWorks.com consultant for Aruba Networks

License

[edit]

GPL v2 or later

see more

[edit]

More at wikiImporter