4 * Demo plugin for adding various types of Flash games to Friendica.
5 * In this case we're using "Hot Shot Sniper" by FlashGames247
8 * Description: Basic demonstration of flash game addons for Friendica
10 * Author: Mike Macgirvin <http://macgirvin.com/profile/mike>
14 function sniper_install() {
15 register_hook('app_menu', 'addon/sniper/sniper.php', 'sniper_app_menu');
18 function sniper_uninstall() {
19 unregister_hook('app_menu', 'addon/sniper/sniper.php', 'sniper_app_menu');
23 function sniper_app_menu($a,&$b) {
24 $b['app_menu'][] = '<div class="app-title"><a href="sniper">Hot Shot Sniper</a></div>';
28 function sniper_module() {}
30 function sniper_content(&$a) {
32 $baseurl = $a->get_baseurl() . '/addon/sniper';
35 <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="620" height="480" id="hotshotsniper" align="middle">
36 <param name="allowScriptAccess" value="sameDomain" />
37 <param name="movie" value="$baseurl/hotshotsniper.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /><embed src="$baseurl/hotshotsniper.swf" quality="high" bgcolor="#000000" width="620" height="480" name="hotshotsniper" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />