game/myexp.php
2022-12-19 20:26:14 +02:00

35 lines
831 B
PHP

<?php
use Insallah\Db;
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>';
}
}