<?php 
$version = "";

$filename = "./src/Version.js";

if (file_exists($filename) && is_readable ($filename))
{
	$fh = fopen($filename, "r");
	$content = fread($fh, filesize($filename));
	fclose($fh);
}

preg_match('^[1-9]\d*(\.[0-9]\d*)*^', $content, $v);

if(count($v) > 0)
{
	$version = $v[0];
}
?>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Z5 Muay Boran</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

	<meta name="mobile-web-app-capable" content="yes">
    <link rel="stylesheet" type="text/css" href="../common/css/labs.css" />

    <script src="../common/js/phaser.js?<?php echo $version?>"></script>
    <script src="../common/js/swipeplugin.js?<?php echo $version?>"></script>
	<script src="../common/AnimatedAmount.js?<?php echo $version?>"></script>
	<script src="../common/AnimatedAmount2.js?<?php echo $version?>"></script>
	<script src="../common/Button.js?<?php echo $version?>"></script>
	<script src="../common/ButtonOnOff.js?<?php echo $version?>"></script>
	<script src="../common/CoinrainEmitterManager.js?<?php echo $version?>"></script>
	<script src="../common/CoinrainEffectSprite.js?<?php echo $version?>"></script>
	<script src="../common/CoinrainSprite.js?<?php echo $version?>"></script>
	<script src="../common/Common.js?<?php echo $version?>"></script>
	<script src="../common/Console.js?<?php echo $version?>"></script>
	<script src="../common/Constants.js?<?php echo $version?>"></script>
	<script src="../common/ConstantsText.js?<?php echo $version?>"></script>
    <script src="../common/CustomSound.js?<?php echo $version?>"></script> 
	<script src="../common/Emitter.js?<?php echo $version?>"></script>
    <script src="../common/Icon.js?<?php echo $version?>"></script>
    <script src="../common/Long.js?<?php echo $version?>"></script>
	<script src="../common/ParticleEx.js?<?php echo $version?>"></script>
	<script src="../common/SceneAuto.js?<?php echo $version?>"></script>
	<script src="../common/SceneBet.js?<?php echo $version?>"></script>
	<script src="../common/SceneBetLimit.js?<?php echo $version?>"></script>	
	<script src="../common/SceneButton.js?<?php echo $version?>"></script>
	<script src="../common/SceneButtonCounter.js?<?php echo $version?>"></script>
	<script src="../common/SceneButtonOnOff.js?<?php echo $version?>"></script>
	<script src="../common/SceneCoinrainIntro.js?<?php echo $version?>"></script>
	<script src="../common/SceneCoinrainPlay.js?<?php echo $version?>"></script>
	<script src="../common/SceneEmitter.js?<?php echo $version?>"></script>
	<script src="../common/SceneError.js?<?php echo $version?>"></script>
	<script src="../common/SceneHelp.js?<?php echo $version?>"></script>
	<script src="../common/SceneJackpots.js?<?php echo $version?>"></script>
	<script src="../common/SceneLegalLimit.js?<?php echo $version?>"></script>
    <script src="../common/SceneLobby.js?<?php echo $version?>"></script>
	<script src="../common/SceneOptions.js?<?php echo $version?>"></script>
	<script src="../common/SceneScrollbar.js?<?php echo $version?>"></script>
	<script src="../common/SceneSettings.js?<?php echo $version?>"></script>
	<script src="../common/SceneSpinButton.js?<?php echo $version?>"></script>
	<script src="../common/Scroller.js?<?php echo $version?>"></script>
    <script src="../common/Stars.js?<?php echo $version?>"></script> 

    <script src="./src/Version.js?<?php echo $version?>"></script>

    <script src="./src/Constants.js?<?php echo $version?>"></script>
	<script src="./src/GameSocket.js?<?php echo $version?>"></script>
	<script src="./src/GarlandEmitter.js?<?php echo $version?>"></script>
	<script src="./src/SpriteEx.js?<?php echo $version?>"></script>
	<script src="./src/SceneBonus.js?<?php echo $version?>"></script>
	<script src="./src/SceneCashbackWin.js?<?php echo $version?>"></script>
	<script src="./src/SceneFreeGames.js?<?php echo $version?>"></script>
	<script src="./src/SceneHistory.js?<?php echo $version?>"></script>
    <script src="./src/SceneInfo.js?<?php echo $version?>"></script>
	<script src="./src/SceneTotalWin.js?<?php echo $version?>"></script>
    <script src="./src/Reel.js?<?php echo $version?>"></script>
    <script src="./src/ReelManager.js?<?php echo $version?>"></script>
    <script src="./src/ReelTween.js?<?php echo $version?>"></script>
    <script src="./src/SceneMain.js?<?php echo $version?>"></script>
</head>
<body>
	<input type="hidden" id="Hostname" value="www.valko72.com">
	<input type="hidden" id="Port" value="6403">
	<input type="hidden" id="WalletToken" value="714bf88cb9b4984cbf58e64d12c4b831">
	<input type="hidden" id="gameId" value="0">
	<input type="hidden" id="userId" value="31871">
	<input type="hidden" id="casinoId" value="1">
	<input type="hidden" id="lobbyUrl" value="https://www.google.com">
	<input type="hidden" id="currency" value="EUR">
	
	<div id="game"></div>
	<script src="./src/SceneStart.js?<?php echo $version?>"></script>

</body>
</html>