add projector version

This commit is contained in:
SilicaAndPina 2020-12-30 15:22:21 +13:00
parent 50db63729d
commit e553254bd5
7 changed files with 19 additions and 1 deletions

View file

@ -901,7 +901,7 @@ namespace HISP.Server
db.Open();
MySqlCommand sqlCommand = db.CreateCommand();
sqlCommand.CommandText = "UPDATE userExt SET FreeMinutes=FreeMinutes+@minutes WHERE NOT FreeMinutes+@minutes > 360";
sqlCommand.CommandText = "UPDATE userExt SET FreeMinutes=FreeMinutes+@minutes";
sqlCommand.Parameters.AddWithValue("@minutes", minutes);
sqlCommand.Prepare();
sqlCommand.ExecuteNonQuery();

Binary file not shown.

View file

@ -0,0 +1,18 @@
<?php
# Decide which version to use
if($_SERVER['HTTP_USER_AGENT'] == "Shockwave Flash") # Projector
{
$file = file_get_contents("horseisle_projector.swf");
header("Content-Type: application/x-shockwave-flash");
header("Content-Length: ".sizeof($file));
echo($file);
}
else
{
$file = file_get_contents("horseisle_patched.swf");
header("Content-Type: application/x-shockwave-flash");
header("Content-Length: ".sizeof($file));
echo($file);
}
?>