Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…t-Plus into main
  • Loading branch information
sticks-stuff committed Jan 4, 2021
2 parents 3ef195d + 29f87e9 commit e986c27
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Dance Contest+
A mod to increase the functionality of Dance Contest

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.
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.

| IF YOU CONTINUALLY GET "Oops! That didn't work!" FOLLOW THE INSTRUCTIONS BELOW |
| ---
Expand Down
14 changes: 9 additions & 5 deletions cleanup.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
<?php
$fileName = $_GET["file"];
array_map('unlink', glob('./tmp/' . substr($fileName, 0, -4) . "/*.*"));
rmdir('./tmp/' . substr($fileName, 0, -4));
unlink('./tmp/' . $fileName);
?>
//This file is called with the filename of the song played downloaded song after the user has finished playing (see below)
$_GET["file"];
//Intially I used this to clean up downloaded songs but I've now realised that that's really stupid because
//1) It won't clean up if the user exits the game through non-trackable means i.e closing the web browser
//2) It can muck up if two people are playing the same song and one of them leaves so it gets removed
//3) This can all be accomplished with a cron job
//I've decided to leave this here though just in case someone has a use for it (also I'm lazy)
//You can see my previous implementation in the git history
?>
58 changes: 58 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Dance Contest+</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css" media="screen">
html, body { height:100%; background-color: #22A4F2;}
body { margin:0; padding:0; overflow:hidden; }
#flashContent { width:100%; height:100%; }
body {
height: 100%;
width: 100%;
margin: 0;
}
-->
</style>


</style>
</head>
<body>
<div id="flashContent">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="100%" height="100%">
<param name="movie" value="./~dance.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#22A4F2" />
<param name="play" value="true" />
<param name="loop" value="true" />
<param name="wmode" value="window" />
<param name="scale" value="default" />
<param name="menu" value="true" />
<param name="devicefont" value="false" />
<param name="salign" value="" />
<param name="allowScriptAccess" value="always" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="./~dance.swf" width="100%" height="100%">
<param name="movie" value="./~dance.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#22A4F2" />
<param name="play" value="true" />
<param name="loop" value="true" />
<param name="wmode" value="window" />
<param name="scale" value="default" />
<param name="menu" value="true" />
<param name="devicefont" value="false" />
<param name="salign" value="" />
<param name="allowScriptAccess" value="always" />
<!--<![endif]-->
<a href="http://www.adobe.com/go/getflash">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
</a>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
</body>
</html>

0 comments on commit e986c27

Please sign in to comment.