-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/Thestickman391/Dance-Contes…
…t-Plus into main
- Loading branch information
Showing
3 changed files
with
68 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |