game/adminion/dn_editor_botsAll.php
2022-12-30 21:03:50 +02:00

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>