Revision: 51746 Author: daniel Date: 2009-06-11 15:56:04 +0000 (Thu, 11 Jun 2009)
Log Message: ----------- test script Added Paths: ----------- trunk/WikiWord/WikiWord/src/main/php/wwtest.php Added: trunk/WikiWord/WikiWord/src/main/php/wwtest.php =================================================================== --- trunk/WikiWord/WikiWord/src/main/php/wwtest.php (rev 0) +++ trunk/WikiWord/WikiWord/src/main/php/wwtest.php 2009-06-11 15:56:04 UTC (rev 51746) @@ -0,0 +1,19 @@ +<?php + +$IP = dirname(__FILE__); + +require_once("$IP/config.php"); +require_once("$IP/wwutils.php"); + +$utils = new WWUtils(); +$utils->connect($wwDBServer, $wwDBUser, $wwDBPassword, $wwDBDatabase); + +$utils->debug = true; + +if (!isset($argv[1])) die("usage: wwtest <id>\n"); + +$id = $argv[1]; + +$images = $utils->getImagesAbout($id); + +print_r($images); \ No newline at end of file _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs