aboutsummaryrefslogtreecommitdiffstats
path: root/addon/sniper/sniper.php
diff options
context:
space:
mode:
authorTobias Diekershoff <tobias.diekershoff@gmx.net>2011-06-14 08:10:38 +0200
committerTobias Diekershoff <tobias.diekershoff@gmx.net>2011-06-14 08:10:38 +0200
commitd08b068031f01e1bcf57a46b9e7dfcb217b6fb30 (patch)
treefc700a19369cb7cc2d84966c042a6ef55db10983 /addon/sniper/sniper.php
parent4d3c6941cafb3b8a7e1d2ccccd5003a2dc468a4d (diff)
parent9b9bd35cba293b86c871c2cfbe15e6d9c4673a7d (diff)
downloadvolse-hubzilla-d08b068031f01e1bcf57a46b9e7dfcb217b6fb30.tar.gz
volse-hubzilla-d08b068031f01e1bcf57a46b9e7dfcb217b6fb30.tar.bz2
volse-hubzilla-d08b068031f01e1bcf57a46b9e7dfcb217b6fb30.zip
Merge branch 'master' of git://github.com/friendika/friendika
Diffstat (limited to 'addon/sniper/sniper.php')
-rw-r--r--addon/sniper/sniper.php31
1 files changed, 31 insertions, 0 deletions
diff --git a/addon/sniper/sniper.php b/addon/sniper/sniper.php
new file mode 100644
index 000000000..79d7daad2
--- /dev/null
+++ b/addon/sniper/sniper.php
@@ -0,0 +1,31 @@
+<?php
+
+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'] .= '<div class="app-title"><a href="sniper">Hot Shot Sniper</a></div>';
+}
+
+
+function sniper_module() {}
+
+function sniper_content(&$a) {
+
+$baseurl = $a->get_baseurl() . '/addon/sniper';
+
+$o .= <<< EOT
+<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">
+<param name="allowScriptAccess" value="sameDomain" />
+<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" />
+</object>
+EOT;
+
+return $o;
+} \ No newline at end of file