Location: PHPKode > projects > Ratawiki > ratawiki-0.5/wikisources/mod_xspf.php
<?php
// © ratasoft.net

function xspf_init() {
	global $format_array, $config;
	
	/// Change this to reflect the URI of your xspf_player.swf file
	if ( !isset($config['xspf_player']) ) {
		$config['xspf_player'] = "xspf_player.swf";
	}
	$player = $config['xspf_player'];
	
	$format_array["99xspf"] = array(
		"/^xspf:(.*)$/",
		"<object type=\"application/x-shockwave-flash\" width=\"400\" height=\"170\" ".
			"data=\"$player?playlist_url=\$1\">".
			"\t\t<param name=\"movie\" value=\"$player?playlist_url=\$1\"/>".
			"\n</object>"
	);
	return;
}
Return current item: Ratawiki