User:ShakataGaNai/phpmwupper/config.php

From Wikimedia Commons, the free media repository
Jump to: navigation, search

Copy and save the code as config.php.

<?php
 
/* Changes for every upload */
define('IMAGE_DIR', 'C:\Your\Upload\Directory');		// No Trailing slash
define('UPLOAD_PREFIX', 'Your Upload Series Name');		// No dash, numbers, or suffix
define('START_NUMBER', 1);		// Should be 1 unless you are continuing a previous upload.
define('PAD_DISTANCE', 3);		// 4 = 'File - 0001.ext', 2 = 'File - 01.ext'
 
/* Change for different Server/Account */
define('WIKI_USER', 'PutYourUsernameHere');
define('WIKI_PASS', 'PurYourPasswordHere');
 
 
/* Don't Change anything beyond this point */
define('UPLOAD_SERVER', 'http://commons.wikimedia.org'); 	// No Trailing slash
define('INDEX_URL', '/w/index.php');
define('SPECIAL_UPLOAD', '/Special:Upload'); 
define('SPECIAL_LOGIN', '/Special:UserLogin');