*/ /** * Demo plugin for adding various types of Flash games to Friendika. * In this case we're using "Hot Shot Sniper" by FlashGames247 */ function sniper_install() { register_hook('app_menu', 'addon/sniper/sniper.php', 'sniper_app_menu'); } function sniper_uninstall() { unregister_hook('app_menu', 'addon/sniper/sniper.php', 'sniper_app_menu'); } function sniper_app_menu($a,&$b) { $b['app_menu'] .= '
'; } function sniper_module() {} function sniper_content(&$a) { $baseurl = $a->get_baseurl() . '/addon/sniper'; $o .= <<< EOT EOT; return $o; }