Файл: 100loto.best/user/index.php
Строк: 45
<?php
require_once ('../inc/base.php');
require_once ('../inc/head.php');
auth();
$play=$db->query("SELECT * FROM `play`")->fetch_assoc();
?>
<br><div class="block">
<div class="to obvodka">
<?
echo $_SESSION['popoln'];
unset($_SESSION['popoln']);
?>
<div class="foot-l"><div class="onli"><span><i class="material-icons"></i></span> Банк лотереи RUB: <span class="count"> <?=$play['bank']?></span>
</div>
<div class="onli"><span><i class="material-icons"></i></span> Победное число: <span class="count"> <?=$play['win_number']?></span>
</div></div></div>
<div class="to obvodka">
<center>
<div class="results">Нажмите Играть</div>
<input type="submit" class="sub-gl" id="sample1" value="Играть"><br>
<script>
$('#sample1').click( function() {
$.ajax({
url: '../module/play.php?',
data: 'play&key=34fs789klvxs2',
success: function(data){
$('.results').html(data);
}
});
});
</script>
<div id="playlog"></div>
<script>
function show() {
$.ajax({
type: 'GET',
url: '../module/play_log.php?',
data: 'log&key=shahgshhs',
success: function(html){
$("#playlog").html(html);
}
});
}
$(document).ready(function(){
show();
setInterval('show()',1000);
});
</script>
<script>
setInterval(function(){
$(".foot-l").load("index.php .foot-l");
}, 1000);
</script>
</div></div>
<?php
require_once ('../inc/foot.php');
?>