]> git.mxchange.org Git - friendica-addons.git/commitdiff
pulled from upstream and stuff
authorTony Baldwin <tony@baldwinsoftware.com>
Fri, 1 Feb 2013 04:59:39 +0000 (23:59 -0500)
committerTony Baldwin <tony@baldwinsoftware.com>
Fri, 1 Feb 2013 04:59:39 +0000 (23:59 -0500)
mahjongg.tar [new file with mode: 0644]
mahjongg/mahjongg.php [new file with mode: 0755]
mahjongg/mahjongg.swf [new file with mode: 0755]

diff --git a/mahjongg.tar b/mahjongg.tar
new file mode 100644 (file)
index 0000000..56d7051
Binary files /dev/null and b/mahjongg.tar differ
diff --git a/mahjongg/mahjongg.php b/mahjongg/mahjongg.php
new file mode 100755 (executable)
index 0000000..d2433cc
--- /dev/null
@@ -0,0 +1,42 @@
+<?php\r
+\r
+/**\r
+ * Name: Mah Jongg\r
+ * Description: Ancient Chinese puzzle game that never gets old.\r
+ * Version: 1.0\r
+ * Author: Holger Froese\r
+ */\r
+\r
+\r
+function mahjongg_install() {\r
+    register_hook('app_menu', 'addon/mahjongg/mahjongg.php', 'mahjongg_app_menu');\r
+}\r
+\r
+function mahjongg_uninstall() {\r
+    unregister_hook('app_menu', 'addon/mahjongg/mahjongg.php', 'mahjongg_app_menu');\r
+\r
+}\r
+\r
+function mahjongg_app_menu($a,&$b) {\r
+    $b['app_menu'][] = '<div class="app-title"><a href="mahjongg">Beer Monster</a></div>';\r
+}\r
+\r
+\r
+function mahjongg_module() {}\r
+\r
+function mahjongg_content(&$a) {\r
+\r
+$baseurl = $a->get_baseurl() . '/addon/mahjongg';\r
+\r
+$o .= <<< EOT\r
+<br><br>\r
+<p align="left">\r
+<embed src="addon/mahjongg/mahjongg.swf" quality="high" bgcolor="#FFFFFF" width="800" height="600" name="mahjongg" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\r
+<br><br>\r
+<b>Simply locate the matching tiles and find a way to clear them from the board as quickly as possible.\r
+A timer at the top of the screen keeps track of how you are doing.</b><br>\r
+</p>\r
+EOT;\r
+\r
+return $o;\r
+}
\ No newline at end of file
diff --git a/mahjongg/mahjongg.swf b/mahjongg/mahjongg.swf
new file mode 100755 (executable)
index 0000000..79f8c9e
Binary files /dev/null and b/mahjongg/mahjongg.swf differ