<?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>R5 Break The Lines</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
	<meta name="apple-mobile-web-app-capable" content="yes">
    <link rel="shortcut icon" href="./images/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" type="text/css" href="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/Button.js?<?php echo $version?>"></script>
    <script src="../common/Checkbox.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/CustomSound.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/SceneBar.js?<?php echo $version?>"></script>
	<script src="../common/SceneButton.js?<?php echo $version?>"></script>
	<script src="../common/SceneButtonEx.js?<?php echo $version?>"></script>
	<script src="../common/SceneButtonCounter.js?<?php echo $version?>"></script>
	<script src="../common/SceneError.js?<?php echo $version?>"></script>
	<script src="../common/SceneIcon.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/SceneLobbyBar.js?<?php echo $version?>"></script>
	<script src="../common/SceneOverlay.js?<?php echo $version?>"></script>
	<script src="../common/SceneRules.js?<?php echo $version?>"></script>
	<script src="../common/SceneSettings.js?<?php echo $version?>"></script>
	<script src="../common/SceneSettingsMobile.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/SpriteEx.js?<?php echo $version?>"></script>
	<script src="./src/ScenePaytable.js?<?php echo $version?>"></script>
	<script src="./src/SceneTotalWin.js?<?php echo $version?>"></script>
	<script src="./src/SceneCashbackWin.js?<?php echo $version?>"></script>
	<script src="./src/SceneJackpotWin.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/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="a9e8566ee7d723231329ffc82b201aa3952fb1d04f9ed1ea783a36778de66ac4">
	<input type="hidden" id="gameId" value="0">
	<input type="hidden" id="userId" value="31865">
	<input type="hidden" id="casinoId" value="1">
	<input type="hidden" id="lobbyUrl" value="">

    <div id="game"></div>
	<script src="./src/SceneStart.js?<?php echo $version?>"></script>

</body>
</html>