46 lines
1.1 KiB
PHP
46 lines
1.1 KiB
PHP
<?php
|
|
# Admin Only Area
|
|
const GAME = true;
|
|
|
|
include_once('_incl_data/__config.php');
|
|
include_once('_incl_data/class/__db_connect.php');
|
|
define('IP', UserIp::get());
|
|
$u = User::start();
|
|
|
|
if (!isset($u->info['id']) || $u->info['ip'] != IP || !$u->info['admin']) {
|
|
die('<meta http-equiv="refresh" content="0; URL=https://new-combats.com/">');
|
|
}
|
|
|
|
if (isset($_GET['id_dn'])) {
|
|
$_POST['id_dn'] = $_GET['id_dn'];
|
|
$_POST['xx'] = $_GET['xx'];
|
|
$_POST['yy'] = $_GET['yy'];
|
|
$_POST['botlogin'] = $_GET['botlogin'];
|
|
}
|
|
|
|
if ($_POST['new_bot_colvo'] < 1) {
|
|
$_POST['new_bot_colvo'] = 1;
|
|
}
|
|
|
|
?>
|
|
<form method="post" action="?gotonew">
|
|
id пещеры: <label>
|
|
<input name="id_dn" value="<?= $_POST['id_dn'] ?>">
|
|
</label><br>
|
|
botlogin: <label>
|
|
<input name="botlogin" value="<?= $_POST['botlogin'] ?>">
|
|
</label><br>
|
|
<input type="submit" value="Перейти">
|
|
</form>
|
|
--------------- Боты -------------:<br>
|
|
<?php
|
|
$sp = mysql_query('SELECT * FROM `test_bot` WHERE login LIKE `%Рубака Глубин [8]%`');
|
|
$i = 1;
|
|
while ($pl = mysql_fetch_array($sp)) {
|
|
echo "<br/>+<br/>";
|
|
$i++;
|
|
}
|
|
?>
|
|
|
|
<hr>
|