Skip to content

Commit e986c27

Browse files
committed
2 parents 3ef195d + 29f87e9 commit e986c27

File tree

3 files changed

+68
-6
lines changed

3 files changed

+68
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Dance Contest+
22
A mod to increase the functionality of Dance Contest
33

4-
Grab the latest release from the releases section on the right and you should just be able to run the SWF using your flash player or your web browser.
4+
Grab the latest release from the releases section on the right and you should just be able to run the SWF using your flash player or your web browser. Alternatively you can go to https://dance-contest-plus.herokuapp.com and you should just be able to play it right there an then, albeit with a slow load time.
55

66
| IF YOU CONTINUALLY GET "Oops! That didn't work!" FOLLOW THE INSTRUCTIONS BELOW |
77
| ---

cleanup.php

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<?php
2-
$fileName = $_GET["file"];
3-
array_map('unlink', glob('./tmp/' . substr($fileName, 0, -4) . "/*.*"));
4-
rmdir('./tmp/' . substr($fileName, 0, -4));
5-
unlink('./tmp/' . $fileName);
6-
?>
2+
//This file is called with the filename of the song played downloaded song after the user has finished playing (see below)
3+
$_GET["file"];
4+
//Intially I used this to clean up downloaded songs but I've now realised that that's really stupid because
5+
//1) It won't clean up if the user exits the game through non-trackable means i.e closing the web browser
6+
//2) It can muck up if two people are playing the same song and one of them leaves so it gets removed
7+
//3) This can all be accomplished with a cron job
8+
//I've decided to leave this here though just in case someone has a use for it (also I'm lazy)
9+
//You can see my previous implementation in the git history
10+
?>

index.html

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2+
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
3+
<head>
4+
<title>Dance Contest+</title>
5+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6+
<style type="text/css" media="screen">
7+
html, body { height:100%; background-color: #22A4F2;}
8+
body { margin:0; padding:0; overflow:hidden; }
9+
#flashContent { width:100%; height:100%; }
10+
body {
11+
height: 100%;
12+
width: 100%;
13+
margin: 0;
14+
}
15+
-->
16+
</style>
17+
18+
19+
</style>
20+
</head>
21+
<body>
22+
<div id="flashContent">
23+
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="100%" height="100%">
24+
<param name="movie" value="./~dance.swf" />
25+
<param name="quality" value="high" />
26+
<param name="bgcolor" value="#22A4F2" />
27+
<param name="play" value="true" />
28+
<param name="loop" value="true" />
29+
<param name="wmode" value="window" />
30+
<param name="scale" value="default" />
31+
<param name="menu" value="true" />
32+
<param name="devicefont" value="false" />
33+
<param name="salign" value="" />
34+
<param name="allowScriptAccess" value="always" />
35+
<!--[if !IE]>-->
36+
<object type="application/x-shockwave-flash" data="./~dance.swf" width="100%" height="100%">
37+
<param name="movie" value="./~dance.swf" />
38+
<param name="quality" value="high" />
39+
<param name="bgcolor" value="#22A4F2" />
40+
<param name="play" value="true" />
41+
<param name="loop" value="true" />
42+
<param name="wmode" value="window" />
43+
<param name="scale" value="default" />
44+
<param name="menu" value="true" />
45+
<param name="devicefont" value="false" />
46+
<param name="salign" value="" />
47+
<param name="allowScriptAccess" value="always" />
48+
<!--<![endif]-->
49+
<a href="http://www.adobe.com/go/getflash">
50+
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
51+
</a>
52+
<!--[if !IE]>-->
53+
</object>
54+
<!--<![endif]-->
55+
</object>
56+
</div>
57+
</body>
58+
</html>

0 commit comments

Comments
 (0)