2022-06-06 21:30:34 +00:00
|
|
|
<?php
|
2022-12-19 18:26:14 +00:00
|
|
|
|
2022-12-30 19:03:37 +00:00
|
|
|
use Core\Db;
|
2022-12-19 18:26:14 +00:00
|
|
|
|
|
|
|
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";
|
2022-06-06 21:30:34 +00:00
|
|
|
var_dump($vars);
|
|
|
|
echo "</pre>\n";
|
2022-12-19 18:26:14 +00:00
|
|
|
if ($d) {
|
|
|
|
exit();
|
|
|
|
}
|
2022-06-06 21:30:34 +00:00
|
|
|
}
|
|
|
|
|
2022-12-19 18:26:14 +00:00
|
|
|
const GAME = true;
|
2022-06-06 21:30:34 +00:00
|
|
|
include('_incl_data/__config.php');
|
|
|
|
include('_incl_data/class/__db_connect.php');
|
2022-12-19 18:26:14 +00:00
|
|
|
define('IP', UserIp::get());
|
|
|
|
$u = User::start();
|
2022-06-06 21:30:34 +00:00
|
|
|
|
2022-12-19 18:26:14 +00:00
|
|
|
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) {
|
2023-01-10 16:29:32 +00:00
|
|
|
echo 'Бой № ' . $row['battle_id'] . ' , опыт до начала боя: ' . $row['exp'] . '<br>';
|
2022-12-19 18:26:14 +00:00
|
|
|
}
|
2022-06-06 21:30:34 +00:00
|
|
|
}
|