36 lines
864 B
PHP
36 lines
864 B
PHP
<?php
|
|
|
|
use Core\Db;
|
|
use User\UserIp;
|
|
|
|
function var_info($vars, $d = false)
|
|
{
|
|
echo "<pre style='
|
|
border: 1px solid gray;
|
|
border-radius: 5px;
|
|
padding: 3px 6px;
|
|
background: #cecece;
|
|
color: black;
|
|
font-family: Arial,serif;
|
|
font-size: 12px;
|
|
'>\n";
|
|
var_dump($vars);
|
|
echo "</pre>\n";
|
|
if ($d) {
|
|
exit();
|
|
}
|
|
}
|
|
|
|
const GAME = true;
|
|
include('_incl_data/__config.php');
|
|
include('_incl_data/class/__db_connect.php');
|
|
define('IP', UserIp::get());
|
|
$u = User::start();
|
|
|
|
if (isset($u->info['id'])) {
|
|
$sp = Db::getRows('select battle_id, exp from battle_last where uid = ? order by id desc', [$u->info['id']]);
|
|
foreach ($sp as $row) {
|
|
echo 'Бой № ' . $row['battle_id'] . ' , опыт до начала боя: ' . $row['exp'] . '<br>';
|
|
}
|
|
}
|