game/adminion/dn_editor_botsAll.php

46 lines
1.1 KiB
PHP
Raw Normal View History

2022-12-19 18:26:14 +00:00
<?php
# Admin Only Area
const GAME = true;
2022-06-06 21:30:34 +00:00
include_once('_incl_data/__config.php');
include_once('_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']) || $u->info['ip'] != IP || !$u->info['admin']) {
die('<meta http-equiv="refresh" content="0; URL=/">');
2022-06-06 21:30:34 +00:00
}
2022-12-19 18:26:14 +00:00
if (isset($_GET['id_dn'])) {
$_POST['id_dn'] = $_GET['id_dn'];
$_POST['xx'] = $_GET['xx'];
$_POST['yy'] = $_GET['yy'];
$_POST['botlogin'] = $_GET['botlogin'];
2022-06-06 21:30:34 +00:00
}
2022-12-19 18:26:14 +00:00
if ($_POST['new_bot_colvo'] < 1) {
$_POST['new_bot_colvo'] = 1;
2022-06-06 21:30:34 +00:00
}
?>
<form method="post" action="?gotonew">
2023-01-10 16:29:32 +00:00
id пещеры: <label>
2022-12-19 18:26:14 +00:00
<input name="id_dn" value="<?= $_POST['id_dn'] ?>">
</label><br>
botlogin: <label>
<input name="botlogin" value="<?= $_POST['botlogin'] ?>">
</label><br>
2023-01-10 16:29:32 +00:00
<input type="submit" value="Перейти">
2022-06-06 21:30:34 +00:00
</form>
2023-01-10 16:29:32 +00:00
--------------- Боты -------------:<br>
2022-12-19 18:26:14 +00:00
<?php
2023-01-10 16:29:32 +00:00
$sp = mysql_query('SELECT * FROM `test_bot` WHERE login LIKE `%Рубака Глубин [8]%`');
2022-06-06 21:30:34 +00:00
$i = 1;
2022-12-19 18:26:14 +00:00
while ($pl = mysql_fetch_array($sp)) {
echo "<br/>+<br/>";
$i++;
2022-06-06 21:30:34 +00:00
}
2022-12-19 18:26:14 +00:00
?>
2022-06-06 21:30:34 +00:00
2022-12-19 18:26:14 +00:00
<hr>