]> git.mxchange.org Git - friendica-addons.git/commitdiff
move sniper app from friendika to friendika-addons
authorFriendika <info@friendika.com>
Tue, 14 Jun 2011 23:39:05 +0000 (16:39 -0700)
committerFriendika <info@friendika.com>
Tue, 14 Jun 2011 23:39:05 +0000 (16:39 -0700)
29 files changed:
sniper/100x100.gif [new file with mode: 0644]
sniper/100x100.jpg [new file with mode: 0644]
sniper/100x75.jpg [new file with mode: 0644]
sniper/100x80.jpg [new file with mode: 0644]
sniper/120x90hotshotsniper.jpg [new file with mode: 0644]
sniper/125x125.jpg [new file with mode: 0644]
sniper/140x90.jpg [new file with mode: 0644]
sniper/150x150.jpg [new file with mode: 0644]
sniper/160x86.gif [new file with mode: 0644]
sniper/180x135.jpg [new file with mode: 0644]
sniper/250x180.jpg [new file with mode: 0644]
sniper/300x200.jpg [new file with mode: 0644]
sniper/300x300.jpg [new file with mode: 0644]
sniper/32x32.jpg [new file with mode: 0644]
sniper/335x185.jpg [new file with mode: 0644]
sniper/60x60.jpg [new file with mode: 0644]
sniper/64x64.gif [new file with mode: 0644]
sniper/70x45.jpg [new file with mode: 0644]
sniper/70x60.jpg [new file with mode: 0644]
sniper/73x80.jpg [new file with mode: 0644]
sniper/75x57.jpg [new file with mode: 0644]
sniper/80x60.jpg [new file with mode: 0644]
sniper/80x70.jpg [new file with mode: 0644]
sniper/80x80hotshotsniper.jpg [new file with mode: 0644]
sniper/81x67.jpg [new file with mode: 0644]
sniper/description_etc.txt [new file with mode: 0644]
sniper/hotshotsniper.html [new file with mode: 0644]
sniper/hotshotsniper.swf [new file with mode: 0644]
sniper/sniper.php [new file with mode: 0644]

diff --git a/sniper/100x100.gif b/sniper/100x100.gif
new file mode 100644 (file)
index 0000000..3370830
Binary files /dev/null and b/sniper/100x100.gif differ
diff --git a/sniper/100x100.jpg b/sniper/100x100.jpg
new file mode 100644 (file)
index 0000000..315bd66
Binary files /dev/null and b/sniper/100x100.jpg differ
diff --git a/sniper/100x75.jpg b/sniper/100x75.jpg
new file mode 100644 (file)
index 0000000..693e7c9
Binary files /dev/null and b/sniper/100x75.jpg differ
diff --git a/sniper/100x80.jpg b/sniper/100x80.jpg
new file mode 100644 (file)
index 0000000..594391e
Binary files /dev/null and b/sniper/100x80.jpg differ
diff --git a/sniper/120x90hotshotsniper.jpg b/sniper/120x90hotshotsniper.jpg
new file mode 100644 (file)
index 0000000..52d0f00
Binary files /dev/null and b/sniper/120x90hotshotsniper.jpg differ
diff --git a/sniper/125x125.jpg b/sniper/125x125.jpg
new file mode 100644 (file)
index 0000000..047a505
Binary files /dev/null and b/sniper/125x125.jpg differ
diff --git a/sniper/140x90.jpg b/sniper/140x90.jpg
new file mode 100644 (file)
index 0000000..e98df44
Binary files /dev/null and b/sniper/140x90.jpg differ
diff --git a/sniper/150x150.jpg b/sniper/150x150.jpg
new file mode 100644 (file)
index 0000000..225d1e9
Binary files /dev/null and b/sniper/150x150.jpg differ
diff --git a/sniper/160x86.gif b/sniper/160x86.gif
new file mode 100644 (file)
index 0000000..da72f3e
Binary files /dev/null and b/sniper/160x86.gif differ
diff --git a/sniper/180x135.jpg b/sniper/180x135.jpg
new file mode 100644 (file)
index 0000000..6fdfaf3
Binary files /dev/null and b/sniper/180x135.jpg differ
diff --git a/sniper/250x180.jpg b/sniper/250x180.jpg
new file mode 100644 (file)
index 0000000..41fbe9f
Binary files /dev/null and b/sniper/250x180.jpg differ
diff --git a/sniper/300x200.jpg b/sniper/300x200.jpg
new file mode 100644 (file)
index 0000000..0aeef9a
Binary files /dev/null and b/sniper/300x200.jpg differ
diff --git a/sniper/300x300.jpg b/sniper/300x300.jpg
new file mode 100644 (file)
index 0000000..d4d4f27
Binary files /dev/null and b/sniper/300x300.jpg differ
diff --git a/sniper/32x32.jpg b/sniper/32x32.jpg
new file mode 100644 (file)
index 0000000..8b4c209
Binary files /dev/null and b/sniper/32x32.jpg differ
diff --git a/sniper/335x185.jpg b/sniper/335x185.jpg
new file mode 100644 (file)
index 0000000..9bb38c1
Binary files /dev/null and b/sniper/335x185.jpg differ
diff --git a/sniper/60x60.jpg b/sniper/60x60.jpg
new file mode 100644 (file)
index 0000000..4ad7257
Binary files /dev/null and b/sniper/60x60.jpg differ
diff --git a/sniper/64x64.gif b/sniper/64x64.gif
new file mode 100644 (file)
index 0000000..cbb89e6
Binary files /dev/null and b/sniper/64x64.gif differ
diff --git a/sniper/70x45.jpg b/sniper/70x45.jpg
new file mode 100644 (file)
index 0000000..b722a5a
Binary files /dev/null and b/sniper/70x45.jpg differ
diff --git a/sniper/70x60.jpg b/sniper/70x60.jpg
new file mode 100644 (file)
index 0000000..5815219
Binary files /dev/null and b/sniper/70x60.jpg differ
diff --git a/sniper/73x80.jpg b/sniper/73x80.jpg
new file mode 100644 (file)
index 0000000..9f6753e
Binary files /dev/null and b/sniper/73x80.jpg differ
diff --git a/sniper/75x57.jpg b/sniper/75x57.jpg
new file mode 100644 (file)
index 0000000..54753f1
Binary files /dev/null and b/sniper/75x57.jpg differ
diff --git a/sniper/80x60.jpg b/sniper/80x60.jpg
new file mode 100644 (file)
index 0000000..dfd0b37
Binary files /dev/null and b/sniper/80x60.jpg differ
diff --git a/sniper/80x70.jpg b/sniper/80x70.jpg
new file mode 100644 (file)
index 0000000..2f416fa
Binary files /dev/null and b/sniper/80x70.jpg differ
diff --git a/sniper/80x80hotshotsniper.jpg b/sniper/80x80hotshotsniper.jpg
new file mode 100644 (file)
index 0000000..db26ff6
Binary files /dev/null and b/sniper/80x80hotshotsniper.jpg differ
diff --git a/sniper/81x67.jpg b/sniper/81x67.jpg
new file mode 100644 (file)
index 0000000..0a4d7fd
Binary files /dev/null and b/sniper/81x67.jpg differ
diff --git a/sniper/description_etc.txt b/sniper/description_etc.txt
new file mode 100644 (file)
index 0000000..bda05ff
--- /dev/null
@@ -0,0 +1,11 @@
+Description:\r
+\r
+Shoot the targets with your sniper rifle!\r
+\r
+Instructions:\r
+\r
+Use your mouse to aim and shoot. Press R or Shift to Reload Press Space to use your Scope.\r
+\r
+Dimensions:\r
+\r
+620x480
\ No newline at end of file
diff --git a/sniper/hotshotsniper.html b/sniper/hotshotsniper.html
new file mode 100644 (file)
index 0000000..8a39b0b
--- /dev/null
@@ -0,0 +1,15 @@
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">\r
+<head>\r
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />\r
+<title>hotshotsniper</title>\r
+</head>\r
+<body bgcolor="#000000">\r
+<!--url's used in the movie-->\r
+<!--text used in the movie-->\r
+<!-- saved from url=(0013)about:internet -->\r
+<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">\r
+<param name="allowScriptAccess" value="sameDomain" />\r
+<param name="movie" value="hotshotsniper.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /><embed src="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" />\r
+</object>\r
+</body>\r
+</html>\r
diff --git a/sniper/hotshotsniper.swf b/sniper/hotshotsniper.swf
new file mode 100644 (file)
index 0000000..b03284a
Binary files /dev/null and b/sniper/hotshotsniper.swf differ
diff --git a/sniper/sniper.php b/sniper/sniper.php
new file mode 100644 (file)
index 0000000..8d31e9c
--- /dev/null
@@ -0,0 +1,37 @@
+<?php
+
+/**
+ * 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'] .= '<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