game/dn_editor_botsAll.php

54 lines
1.3 KiB
PHP

<?php
# Admin Only Area
function GetRealIp()
{
if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
$ip = $_SERVER['HTTP_CLIENT_IP'];
} elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
} else {
$ip = $_SERVER['REMOTE_ADDR'];
}
return $ip;
}
define('IP', GetRealIp());
const GAME = true;
include_once('_incl_data/__config.php');
include_once('_incl_data/class/__db_connect.php');
$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 ïåùåðû: <input name="id_dn" value="<?= $_POST['id_dn'] ?>"><br>
botlogin: <input name="botlogin" value="<?= $_POST['botlogin'] ?>"><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>