🎉 Added files

This commit is contained in:
2025-01-26 18:33:45 +01:00
commit 40149d87b3
301 changed files with 81911 additions and 0 deletions

37
game/mania_tracklist.php Normal file
View File

@ -0,0 +1,37 @@
<?
// this file is used by ManiaDrive to get
// track list from CQFD Corp website.
require("rayphp/libfile.php");
$list="";
$nl="";
$ok=(integer)http_test(); // R3S function
if(!$ok)
{
// network unavailable, read from disk
$list=file_get_contents("mania_tracklist.txt")."";
//var_dump($list);
die("Internet connection unavailable.");
}
$url="http://maniadrive.cqfd-corp.org/score/list.php";
$file=http_download($url);
$file=explode("\n", $file);
foreach($file as $t)
if($t!="")
{
$list.=$nl.trim($t);
$nl="\n";
}
// save list to disk
$fp=fopen("mania_tracklist.txt","wb");
fwrite($fp,$list);
fclose($fp);
//var_dump($list);
?>