mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-18 19:01:32 +12:00
add projector version
This commit is contained in:
parent
50db63729d
commit
e553254bd5
7 changed files with 19 additions and 1 deletions
|
@ -901,7 +901,7 @@ namespace HISP.Server
|
||||||
db.Open();
|
db.Open();
|
||||||
MySqlCommand sqlCommand = db.CreateCommand();
|
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.Parameters.AddWithValue("@minutes", minutes);
|
||||||
sqlCommand.Prepare();
|
sqlCommand.Prepare();
|
||||||
sqlCommand.ExecuteNonQuery();
|
sqlCommand.ExecuteNonQuery();
|
||||||
|
|
Binary file not shown.
BIN
WebInterface/game-site/horseisle_projector.swf
Normal file
BIN
WebInterface/game-site/horseisle_projector.swf
Normal file
Binary file not shown.
BIN
WebInterface/game-site/php_fix_this_allready/horseisle.swf
Normal file
BIN
WebInterface/game-site/php_fix_this_allready/horseisle.swf
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
18
WebInterface/game-site/php_fix_this_allready/index.php
Normal file
18
WebInterface/game-site/php_fix_this_allready/index.php
Normal 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);
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
Loading…
Add table
Add a link
Reference in a new issue