game/myexp.php

35 lines
831 B
PHP
Raw Normal View History

2022-06-06 21:30:34 +00:00
<?php
2022-12-19 18:26:14 +00:00
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";
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) {
echo '<27><><EFBFBD> <20> ' . $row['battle_id'] . ' , <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>: ' . $row['exp'] . '<br>';
}
2022-06-06 21:30:34 +00:00
}