mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-24 15:43:42 +00:00
pulled from upstream and stuff
This commit is contained in:
parent
5e291da9c3
commit
b7eab50b1f
3 changed files with 42 additions and 0 deletions
BIN
mahjongg.tar
Normal file
BIN
mahjongg.tar
Normal file
Binary file not shown.
42
mahjongg/mahjongg.php
Executable file
42
mahjongg/mahjongg.php
Executable file
|
@ -0,0 +1,42 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Name: Mah Jongg
|
||||
* Description: Ancient Chinese puzzle game that never gets old.
|
||||
* Version: 1.0
|
||||
* Author: Holger Froese
|
||||
*/
|
||||
|
||||
|
||||
function mahjongg_install() {
|
||||
register_hook('app_menu', 'addon/mahjongg/mahjongg.php', 'mahjongg_app_menu');
|
||||
}
|
||||
|
||||
function mahjongg_uninstall() {
|
||||
unregister_hook('app_menu', 'addon/mahjongg/mahjongg.php', 'mahjongg_app_menu');
|
||||
|
||||
}
|
||||
|
||||
function mahjongg_app_menu($a,&$b) {
|
||||
$b['app_menu'][] = '<div class="app-title"><a href="mahjongg">Beer Monster</a></div>';
|
||||
}
|
||||
|
||||
|
||||
function mahjongg_module() {}
|
||||
|
||||
function mahjongg_content(&$a) {
|
||||
|
||||
$baseurl = $a->get_baseurl() . '/addon/mahjongg';
|
||||
|
||||
$o .= <<< EOT
|
||||
<br><br>
|
||||
<p align="left">
|
||||
<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" />
|
||||
<br><br>
|
||||
<b>Simply locate the matching tiles and find a way to clear them from the board as quickly as possible.
|
||||
A timer at the top of the screen keeps track of how you are doing.</b><br>
|
||||
</p>
|
||||
EOT;
|
||||
|
||||
return $o;
|
||||
}
|
BIN
mahjongg/mahjongg.swf
Executable file
BIN
mahjongg/mahjongg.swf
Executable file
Binary file not shown.
Loading…
Reference in a new issue