links to flyspray task number 4 * [VC#80] --> links to ViewVC revision 80 * change $FLYSPRAY_URL and $VIEWVC_URL as shown */ /* URL to the flyspray bts * for complete uri, replace the first h by xx * eg: "xxttp://wikiss.tuxfamily.org/bts/" instead of "http://wikiss.tuxfamily.org/bts/" * note: this should not work with FS and url_rewriting */ //~ $FLYSPRAY_URL = "/bts/"; $FLYSPRAY_URL = "xxttp://wikiss.tuxfamily.org/bts/"; /* URL to ViewVC web * revision must be at the end of the url * eg: http://svn.tuxfamily.org/viewvc.cgi?view=rev&root=wikiss_svn&revision=80 * Same remark as for flyspray url ! */ $VIEWVC_URL = "xxttp://svn.tuxfamily.org/viewvc.cgi?view=rev&root=wikiss_svn&revision="; class FlySpray { /* small description of the plugin */ public $description = "Integration with FlySpray and ViewVC"; function formatBegin () { global $CONTENT,$FLYSPRAY_URL,$VIEWVC_URL; // do stuff about formating the displayed page $CONTENT = preg_replace ("/\[(FS#(.+))\]/Um",''."$1".'',$CONTENT); $CONTENT = preg_replace ("/\[VC#(.+)\]/Um",''."rev $1".'',$CONTENT); return TRUE; } // formatBegin () } ?>