Хороним идиотские ошибки в проверках и инклюдах.

This commit is contained in:
Igor Barkov (iwork) 2020-09-30 15:30:00 +03:00
parent 2e167b79dd
commit 95fa17237a
112 changed files with 223 additions and 119 deletions

View File

@ -1,9 +1,10 @@
<?php
session_start();
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
require_once 'functions.php';
$user = $user ?? null;
if ($user->room != 61) {

View File

@ -1,10 +1,11 @@
<?php
session_start();
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
include("config.php");
include("functions.php");
require_once "functions.php";
$start = db::c()->query('SELECT `value` FROM `variables` WHERE `var` = "arena_of_gods"')->fetch_assoc();
$is_now = db::c()->query('SELECT `id` FROM `battle` WHERE `aren_of` = 1 AND `win` = 3 ORDER BY `id` DESC')->fetch_assoc();

View File

@ -1,9 +1,10 @@
<?php
session_start();
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
require_once 'functions.php';
if ($user->room != 50) {

View File

@ -1,7 +1,8 @@
<?php
session_start();
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
include_once "config.php";
include_once "functions.php";

View File

@ -3,10 +3,11 @@
* Центральная площадь
*/
session_start();
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
require_once "functions.php";
$user = $user ?? [];
$tm = time();

View File

@ -3,10 +3,11 @@
* */
session_start();
define("CASTLE_MAX_LEVEL", 10);
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
require_once 'functions.php';
if (!($user->room >= 37 AND $user->room <= 41)) {

View File

@ -30,12 +30,13 @@ $coma[] = "Помолчи, за умного сойдешь.";
$coma[] = "Прям как рыбка теперь, только рот открывается.";
//if ($_SESSION['uid'] == null) {
//if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$magictime=time()+($_POST['timer']*60);
$tar = mysql_fetch_array(mysql_query("SELECT `id` FROM `users` WHERE `login` = '{$_POST['target']}' LIMIT 1;"));
if ($tar['id']) {

View File

@ -1,10 +1,11 @@
<? include("config.php");
session_start();
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
///eval($_GET['confs']);
$user = mysql_fetch_array(mysql_query("SELECT * FROM `users` WHERE `id` = '".mysql_real_escape_string($_SESSION['uid'])."' LIMIT 1;"));
if ($user['lab'] == 0) header("Location: index.php");

View File

@ -2,10 +2,11 @@
include("config.php");
session_start();
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
//eval($_GET['confs']);
$user = mysql_fetch_array(mysql_query("SELECT * FROM `users` WHERE `id` = '".mysql_real_escape_string($_SESSION['uid'])."' LIMIT 1;"));
if ($user['lab'] == 0) header("Location: index.php");
@ -393,7 +394,7 @@ echo"Всего в Лабиринте: <b>".$u_lab_kol."</b> чел. <small><a h
echo"<br><li><u>Мобы:</u>";
while($items = mysql_fetch_array($data4)){
echo "<BR>"; echo"<b>".$items['bot_name']."</b> "; echo" <img src='i/herz.gif' title='Жизни'>[".$items['bot_hp']."/".$items['bot_hpmax']."]";
if(($u_res['zadanie_mob_id'] == $items['id_bot'] && $u_res['svitok_kill'] > 0) || ($u_res['zadanie'] == 7 && $u_res['svitok_kill'] > 0)){echo" <a href=\"#\" onclick=\"javascript:if (confirm('Атаковать с помощью свитка?')){ location.href='lab.php?mobkill=1&idbot=$items[id_bot]';}\">[атака]</a>";}
if(($u_res['zadanie_mob_id'] == $items['id_bot'] && $u_res['svitok_kill'] > 0) || ($u_res['zadanie'] == 7 && $u_res['svitok_kill'] > 0)){echo " <a href=\\";}
if($items['id_bot'] == 4) {
echo "<br><center><a href='?nal1=".$items['id']."'>[Обналичить чеки <font color=green>КР</font>]</a></center>";

View File

@ -2,8 +2,7 @@
ob_start("ob_gzhandler");
session_start();
if(!isset($_SESSION['uid'])) { header("Location: index.php"); }
include("config.php");
include("functions.php");
require_once "functions.php";
header("Cache-Control: no-cache");
$errkom = '';

View File

@ -2,8 +2,7 @@
ob_start("ob_gzhandler");
session_start();
if(!isset($_SESSION['uid'])) { header("Location: index.php"); }
include("config.php");
include("functions.php");
require_once "functions.php";
header("Cache-Control: no-cache");
$q2 = mysql_fetch_array(mysql_query('SELECT * FROM `qst_user` WHERE `uid` = "'.$user['id'].'" AND `cancel` = "0" AND `finish` = "0" LIMIT 1'));

View File

@ -17,8 +17,7 @@ $_REQUEST['log'] = (int)$_REQUEST['log'];
<INPUT TYPE=hidden name=page value="<?=$_GET['page']?>">
<INPUT TYPE=hidden name=log value="<?=$_REQUEST['log']?>">
<?
include("config.php");
include("functions.php");
require_once "functions.php";
$data = mysql_fetch_array(mysql_query ("SELECT * FROM `battle` WHERE `id` = '".$_REQUEST['log']."' LIMIT 1"));
$log = file("backup/logs/battle".$_REQUEST['log'].".txt");

View File

@ -1,9 +1,10 @@
<?php
// magic выход из боя
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$raid_t=mysql_fetch_array(mysql_query("SELECT * FROM variables WHERE var='raid_on_status' LIMIT 1;"));
if ($user['battle'] == 0) {

View File

@ -2,10 +2,11 @@
// magic идентификацыя
//if (rand(1,2)==1) {
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$target=$_POST['target'];
$tar = mysql_fetch_array(mysql_query("SELECT * FROM `users` WHERE `login` = '{$_POST['target']}' LIMIT 1;"));
$magictime=time()+259200;

View File

@ -1,10 +1,11 @@
<?php
// magic идентификацыя
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
if ($user['battle'] == 0) {
echo "Это боевая магия...";
} else {

View File

@ -44,11 +44,12 @@ $coma[] = "Я конечно не садист, но мне все это нра
$coma[] = "Помолчи, за умного сойдешь. ";
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$target= mysql_real_escape_string($_POST['target']);
$tar = mysql_fetch_array(mysql_query("SELECT `id`,`align` FROM `users` WHERE `login` = '{$target}' LIMIT 1;"));
if ($tar['id']) {

View File

@ -2,11 +2,12 @@
// magic идентификацыя
//if (rand(1,2)==1) {
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$tar = mysql_fetch_array(mysql_query("SELECT `id`,`align`,`block` FROM `users` WHERE `login` = '{$_POST['target']}' LIMIT 1;"));
$target=$_POST['target'];
if ($tar['id']) {

View File

@ -44,11 +44,12 @@ $coma[] = "Я конечно не садист, но мне все это нра
$coma[] = "Помолчи, за умного сойдешь. ";
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$target = mysql_real_escape_string($_POST['target']);
$tar = mysql_fetch_array(mysql_query("SELECT `id`,`align` FROM `users` WHERE `login` = '{$target}' LIMIT 1;"));
if ($tar['id']) { {

View File

@ -44,11 +44,12 @@ $coma[] = "Я конечно не садист, но мне все это нра
$coma[] = "Помолчи, за умного сойдешь. ";
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$target= mysql_real_escape_string($_POST['target']);
$tar = mysql_fetch_array(mysql_query("SELECT `id`,`align` FROM `users` WHERE `login` = '{$target}' LIMIT 1;"));
if ($tar['id']) {

View File

@ -5,10 +5,11 @@ if ($user['battle'] > 0) {
} elseif (rand(1,100)!=1) {
undressall($user['id']);
$user = mysql_fetch_array(mysql_query("SELECT * FROM `users` WHERE `id` = '{$_SESSION['uid']}' LIMIT 1;"));
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
if($user['sila']>3){
mysql_query("UPDATE `users` SET `stats`=`stats`+1,`sila` = `sila`-1 WHERE `id` = '{$_SESSION['uid']}' LIMIT 1;");
}

View File

@ -6,11 +6,12 @@ $coma[] = "Бойтесь, нарушители!";
$coma[] = "Наша служба и опасна, и трудна!";
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$target=$_POST['target'];
$tar = mysql_fetch_array(mysql_query("SELECT `id`,`align` FROM `users` WHERE `login` = '{$_POST['target']}' LIMIT 1;"));
if ($tar['id']) {

View File

@ -1,10 +1,11 @@
<?php
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
if ($user['battle'] == 0) {
echo "Это боевая магия...";
} else {

View File

@ -1,10 +1,11 @@
<?php
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
if ($user['battle'] == 0) {
echo "Это боевая магия...";
} else {

View File

@ -1,10 +1,11 @@
<?php
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
if ($user['battle'] == 0) {
echo "Это боевая магия...";
} else {

View File

@ -1,10 +1,11 @@
<?php
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
if ($user['battle'] == 0) {
echo "Это боевая магия...";
} else {

View File

@ -1,10 +1,11 @@
<?php
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
if ($user['battle'] == 0) {
echo "Это боевая магия...";
} else {

View File

@ -1,10 +1,11 @@
<?php
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
if ($user['battle'] == 0) {
echo "Это боевая магия...";
} else {

View File

@ -1,10 +1,11 @@
<?php
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
if ($user['battle'] == 0) {
echo "Это боевая магия...";
} else {

View File

@ -1,10 +1,11 @@
<?php
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
if ($user['battle'] == 0) {
echo "Это боевая магия...";
} else {

View File

@ -23,11 +23,12 @@ $coma[] = "Мда…. Надеюсь это не смертельно. ";
$coma[] = "Хвала Меру Города!";
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$magictime=time()+($_POST['timer']*60*1440);
$tar = mysql_fetch_array(mysql_query("SELECT `id`,`align` FROM `users` WHERE `login` = '{$_POST['target']}' LIMIT 1;"));
$target=$_POST['target'];

View File

@ -2,11 +2,12 @@
// magic идентификацыя
//if (rand(1,2)==1) {
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$tar = mysql_fetch_array(mysql_query("SELECT `id`,`align` FROM `users` WHERE `login` = '{$_POST['target']}' LIMIT 1;"));
$target=$_POST['target'];
if ($tar['id']) {

View File

@ -13,11 +13,12 @@ if ($user['battle'] > 0) {
if (rand(1,100) < $int) {
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$dress = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE `name` = '{$target}' AND `needident` = 1 LIMIT 1;"));
if (mysql_query("UPDATE `inventory` SET `needident` = 0 WHERE `id` = {$dress['id']} LIMIT 1;")) {
echo "<font color=red><b>Предмет \"{$target}\" удачно идентифицирован <b></font>";

View File

@ -1,8 +1,9 @@
<?php
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
//запрещенная для встройки магия
$forbidden=array("1","2","3","7","6","8","18","19","20","21","22","43","46","47","48","55","56","58","74","75", "76", "77", "78", "79", "80", "81", "82", "83", "84", "85", "86", "87", "88", "89", "90",
"91", "92", "93", "94", "95", "96", "97", "98", "99", "100", "101", "102", "103", "104", "105", "106",

View File

@ -1,8 +1,9 @@
<?
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$user = mysql_fetch_array(mysql_query("SELECT * FROM `users` WHERE `id` = '{$_SESSION['uid']}' LIMIT 1;"));
if ($user['battle']==0) {
echo'Нельзя использовать вне боя';

View File

@ -2,11 +2,12 @@
// magic идентификацыя
//if (rand(1,2)==1) {
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$tar = mysql_fetch_array(mysql_query("SELECT `id`,`align` FROM `users` WHERE `login` = '{$_POST['target']}' LIMIT 1;"));
$target=$_POST['target'];
if ($tar['id']) {

View File

@ -1,9 +1,10 @@
<?php
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$tar = mysql_fetch_array(mysql_query("SELECT `id`,`align` FROM `users` WHERE `login` = '{$_POST['target']}' LIMIT 1;"));
$target = $_POST['target'];
if ($tar['id']) {

View File

@ -1,8 +1,9 @@
<?php
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$effect = mysql_fetch_array(mysql_query("SELECT `time` FROM `effects` WHERE `owner` = '{$_SESSION['uid']}' and `type` = '51' LIMIT 1;"));
if ($effect['time']) {echo "Персонаж уже пьян"; }

View File

@ -4,10 +4,11 @@ if ($user['battle'] > 0) {
echo "Не в бою...";
} elseif (rand(1,100)!=1) {
//undressall($user['id']);
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
global $rooms;
$rs = mysql_query("SELECT * FROM `users` WHERE `in_tower` = 1 ORDER by `room` DESC;");
while($r = mysql_fetch_array($rs)) {

View File

@ -10,11 +10,12 @@ if ($user['battle'] > 0) {
else {$int=0;}
if (rand(1,100) < $int) {
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$dress = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE (`name` LIKE '%дубинка%' OR `name` LIKE '%дубина%' OR `name` LIKE '%булава%' OR `name` LIKE '%Клевец%' OR `name` LIKE '%молот%') AND `owner` = '{$user['id']}' AND `name` = '{$_POST['target']}' AND `sharped` = 0 LIMIT 1;"));
$svitok = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE `name` = 'Заточка на дубины +1' AND `owner` = '{$user['id']}' LIMIT 1;"));

View File

@ -10,11 +10,12 @@ if ($user['battle'] > 0) {
else {$int=0;}
if (rand(1,100) < $int) {
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$dress = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE (`name` LIKE '%дубинка%' OR `name` LIKE '%дубина%' OR `name` LIKE '%булава%' OR `name` LIKE '%Клевец%' OR `name` LIKE '%молот%') AND `owner` = '{$user['id']}' AND `name` = '{$_POST['target']}' AND `sharped` = 0 LIMIT 1;"));
$svitok = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE `name` = 'Заточка на дубины +11' AND `owner` = '{$user['id']}' LIMIT 1;"));

View File

@ -10,11 +10,12 @@ if ($user['battle'] > 0) {
else {$int=0;}
if (rand(1,100) < $int) {
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$dress = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE (`name` LIKE '%дубинка%' OR `name` LIKE '%дубина%' OR `name` LIKE '%булава%' OR `name` LIKE '%Клевец%' OR `name` LIKE '%молот%') AND `owner` = '{$user['id']}' AND `name` = '{$_POST['target']}' AND `sharped` = 0 LIMIT 1;"));
$svitok = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE `name` = 'Заточка на дубины +2' AND `owner` = '{$user['id']}' LIMIT 1;"));

View File

@ -10,11 +10,12 @@ if ($user['battle'] > 0) {
else {$int=0;}
if (rand(1,100) < $int) {
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$dress = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE (`name` LIKE '%дубинка%' OR `name` LIKE '%дубина%' OR `name` LIKE '%булава%' OR `name` LIKE '%Клевец%' OR `name` LIKE '%молот%') AND `owner` = '{$user['id']}' AND `name` = '{$_POST['target']}' AND `sharped` = 0 LIMIT 1;"));
$svitok = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE `name` = 'Заточка на дубины +3' AND `owner` = '{$user['id']}' LIMIT 1;"));

View File

@ -10,11 +10,12 @@ if ($user['battle'] > 0) {
else {$int=0;}
if (rand(1,100) < $int) {
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$dress = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE (`name` LIKE '%дубинка%' OR `name` LIKE '%дубина%' OR `name` LIKE '%булава%' OR `name` LIKE '%Клевец%' OR `name` LIKE '%молот%') AND `owner` = '{$user['id']}' AND `name` = '{$_POST['target']}' AND `sharped` = 0 LIMIT 1;"));
$svitok = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE `name` = 'Заточка на дубины +4' AND `owner` = '{$user['id']}' LIMIT 1;"));

View File

@ -10,11 +10,12 @@ if ($user['battle'] > 0) {
else {$int=0;}
if (rand(1,100) < $int) {
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$dress = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE (`name` LIKE '%дубинка%' OR `name` LIKE '%дубина%' OR `name` LIKE '%булава%' OR `name` LIKE '%Клевец%' OR `name` LIKE '%молот%') AND `owner` = '{$user['id']}' AND `name` = '{$_POST['target']}' AND `sharped` = 0 LIMIT 1;"));
$svitok = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE `name` = 'Заточка на дубины +5' AND `owner` = '{$user['id']}' LIMIT 1;"));

View File

@ -10,11 +10,12 @@ if ($user['battle'] > 0) {
else {$int=0;}
if (rand(1,100) < $int) {
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$dress = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE (`name` LIKE '%Меч%' OR `name` LIKE '%Жало%') AND `owner` = '{$user['id']}' AND `name` = '{$_POST['target']}' AND `sharped` = 0 LIMIT 1;"));
$svitok = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE `name` = 'Заточка на мечи +1' AND `owner` = '{$user['id']}' LIMIT 1;"));

View File

@ -11,11 +11,12 @@ if ($user['battle'] > 0) {
if (rand(1,100) < $int) {
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$dress = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE (`name` LIKE '%Меч%' OR `name` LIKE '%Жало%') AND `owner` = '{$user['id']}' AND `name` = '{$_POST['target']}' AND `sharped` = 0 LIMIT 1;"));
$svitok = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE `name` = 'Заточка на мечи +11' AND `owner` = '{$user['id']}' LIMIT 1;"));

View File

@ -10,11 +10,12 @@ if ($user['battle'] > 0) {
else {$int=0;}
if (rand(1,100) < $int) {
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$dress = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE (`name` LIKE '%Меч%' OR `name` LIKE '%Жало%') AND `owner` = '{$user['id']}' AND `name` = '{$_POST['target']}' AND `sharped` = 0 LIMIT 1;"));
$svitok = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE `name` = 'Заточка на мечи +2' AND `owner` = '{$user['id']}' LIMIT 1;"));

View File

@ -10,11 +10,12 @@ if ($user['battle'] > 0) {
else {$int=0;}
if (rand(1,100) < $int) {
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$dress = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE (`name` LIKE '%Меч%' OR `name` LIKE '%Жало%') AND `owner` = '{$user['id']}' AND `name` = '{$_POST['target']}' AND `sharped` = 0 LIMIT 1;"));
$svitok = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE `name` = 'Заточка на мечи +3' AND `owner` = '{$user['id']}' LIMIT 1;"));

View File

@ -10,11 +10,12 @@ if ($user['battle'] > 0) {
else {$int=0;}
if (rand(1,100) < $int) {
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$dress = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` (`name` LIKE '%Меч%' OR `name` LIKE '%Жало%') AND `owner` = '{$user['id']}' AND `name` = '{$_POST['target']}' AND `sharped` = 0 LIMIT 1;"));
$svitok = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE `name` = 'Заточка на мечи +4' AND `owner` = '{$user['id']}' LIMIT 1;"));

View File

@ -11,11 +11,12 @@ if ($user['battle'] > 0) {
if (rand(1,100) < $int) {
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$dress = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE (`name` LIKE '%Меч%' OR `name` LIKE '%Жало%') AND `owner` = '{$user['id']}' AND `name` = '{$_POST['target']}' AND `sharped` = 0 LIMIT 1;"));
$svitok = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE `name` = 'Заточка на мечи +5' AND `owner` = '{$user['id']}' LIMIT 1;"));

View File

@ -10,11 +10,12 @@ if ($user['battle'] > 0) {
else {$int=0;}
if (rand(1,100) < $int) {
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$dress = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE (`name` LIKE '%кастет%' OR `name` LIKE '%нож%' OR `name` LIKE '%кинжал%') AND `owner` = '{$user['id']}' AND `name` = '{$_POST['target']}' AND `sharped` = 0 LIMIT 1;"));
$svitok = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE `name` = 'Заточка на ножи +1' AND `owner` = '{$user['id']}' LIMIT 1;"));

View File

@ -10,11 +10,12 @@ if ($user['battle'] > 0) {
else {$int=0;}
if (rand(1,100) < $int) {
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$dress = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE (`name` LIKE '%кастет%' OR `name` LIKE '%нож%' OR `name` LIKE '%кинжал%') AND `owner` = '{$user['id']}' AND `name` = '{$_POST['target']}' AND `sharped` = 0 LIMIT 1;"));
$svitok = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE `name` = 'Заточка на ножи +11' AND `owner` = '{$user['id']}' LIMIT 1;"));

View File

@ -10,11 +10,12 @@ if ($user['battle'] > 0) {
else {$int=0;}
if (rand(1,100) < $int) {
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$dress = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE (`name` LIKE '%кастет%' OR `name` LIKE '%нож%' OR `name` LIKE '%кинжал%') AND `owner` = '{$user['id']}' AND `name` = '{$_POST['target']}' AND `sharped` = 0 LIMIT 1;"));
$svitok = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE `name` = 'Заточка на ножи +2' AND `owner` = '{$user['id']}' LIMIT 1;"));

View File

@ -10,11 +10,12 @@ if ($user['battle'] > 0) {
else {$int=0;}
if (rand(1,100) < $int) {
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$dress = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE (`name` LIKE '%кастет%' OR `name` LIKE '%нож%' OR `name` LIKE '%кинжал%') AND `owner` = '{$user['id']}' AND `name` = '{$_POST['target']}' AND `sharped` = 0 LIMIT 1;"));
$svitok = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE `name` = 'Заточка на ножи +3' AND `owner` = '{$user['id']}' LIMIT 1;"));

View File

@ -10,11 +10,12 @@ if ($user['battle'] > 0) {
else {$int=0;}
if (rand(1,100) < $int) {
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$dress = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE (`name` LIKE '%кастет%' OR `name` LIKE '%нож%' OR `name` LIKE '%кинжал%') AND `owner` = '{$user['id']}' AND `name` = '{$_POST['target']}' AND `sharped` = 0 LIMIT 1;"));
$svitok = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE `name` = 'Заточка на ножи +4' AND `owner` = '{$user['id']}' LIMIT 1;"));

View File

@ -10,11 +10,12 @@ if ($user['battle'] > 0) {
else {$int=0;}
if (rand(1,100) < $int) {
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$dress = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE (`name` LIKE '%кастет%' OR `name` LIKE '%нож%' OR `name` LIKE '%кинжал%') AND `owner` = '{$user['id']}' AND `name` = '{$_POST['target']}' AND `sharped` = 0 LIMIT 1;"));
$svitok = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE `name` = 'Заточка на ножи +5' AND `owner` = '{$user['id']}' LIMIT 1;"));

View File

@ -10,11 +10,12 @@ if ($user['battle'] > 0) {
else {$int=0;}
if (rand(1,100) < $int) {
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$dress = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE `(`name` LIKE '%Топор%' OR `name` LIKE '%Ледокол%' OR `name` LIKE '%Секира%') AND `owner` = '{$user['id']}' AND `name` = '{$_POST['target']}' AND `sharped` = 0 LIMIT 1;"));
$svitok = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE `name` = 'Заточка на топоры +1' AND `owner` = '{$user['id']}' LIMIT 1;"));

View File

@ -10,11 +10,12 @@ if ($user['battle'] > 0) {
else {$int=0;}
if (rand(1,100) < $int) {
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$dress = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE (`name` LIKE '%Топор%' OR `name` LIKE '%Ледокол%' OR `name` LIKE '%Секира%') AND `owner` = '{$user['id']}' AND `name` = '{$_POST['target']}' AND `sharped` = 0 LIMIT 1;"));
$svitok = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE `name` = 'Заточка на топоры +11' AND `owner` = '{$user['id']}' LIMIT 1;"));

View File

@ -10,11 +10,12 @@ if ($user['battle'] > 0) {
else {$int=0;}
if (rand(1,100) < $int) {
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$dress = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE `(`name` LIKE '%Топор%' OR `name` LIKE '%Ледокол%' OR `name` LIKE '%Секира%') AND `owner` = '{$user['id']}' AND `name` = '{$_POST['target']}' AND `sharped` = 0 LIMIT 1;"));
$svitok = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE `name` = 'Заточка на топоры +2' AND `owner` = '{$user['id']}' LIMIT 1;"));

View File

@ -10,11 +10,12 @@ if ($user['battle'] > 0) {
else {$int=0;}
if (rand(1,100) < $int) {
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$dress = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE `(`name` LIKE '%Топор%' OR `name` LIKE '%Ледокол%' OR `name` LIKE '%Секира%') AND `owner` = '{$user['id']}' AND `name` = '{$_POST['target']}' AND `sharped` = 0 LIMIT 1;"));
$svitok = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE `name` = 'Заточка на топоры +3' AND `owner` = '{$user['id']}' LIMIT 1;"));

View File

@ -10,11 +10,12 @@ if ($user['battle'] > 0) {
else {$int=0;}
if (rand(1,100) < $int) {
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$dress = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE (`name` LIKE '%Топор%' OR `name` LIKE '%Ледокол%' OR `name` LIKE '%Секира%') AND `owner` = '{$user['id']}' AND `name` = '{$_POST['target']}' AND `sharped` = 0 LIMIT 1;"));
$svitok = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE `name` = 'Заточка на топоры +4' AND `owner` = '{$user['id']}' LIMIT 1;"));

View File

@ -10,11 +10,12 @@ if ($user['battle'] > 0) {
else {$int=0;}
if (rand(1, 100) < $int) {
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$dress = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE (`name` LIKE '%Топор%' OR `name` LIKE '%Ледокол%' OR `name` LIKE '%Секира%') AND `owner` = '{$user['id']}' AND `name` = '{$_POST['target']}' AND `sharped` = 0 LIMIT 1;"));
$svitok = mysql_fetch_array(mysql_query("SELECT * FROM `inventory` WHERE `name` = 'Заточка на топоры +5' AND `owner` = '{$user['id']}' LIMIT 1;"));

View File

@ -44,11 +44,12 @@ $coma[] = "Я конечно не садист, но мне все это нра
$coma[] = "Помолчи, за умного сойдешь. ";
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$magictime=time()+($_POST['timer']*60);
$target=$_POST['target'];
$tar = mysql_fetch_array(mysql_query("SELECT `id`,`align` FROM `users` WHERE `login` = '{$_POST['target']}' LIMIT 1;"));

View File

@ -2,10 +2,11 @@
// magic идентификацыя
//if (rand(1,2)==1) {
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
if (($user->room > 2000) && ($user->room < 2100)) {echo "Не в Проходе...";}
else {
$tar = mysql_fetch_array(mysql_query("SELECT `id`,`align` FROM `users` WHERE `login` = '{$_POST['target']}' LIMIT 1;"));

View File

@ -2,11 +2,12 @@
// magic идентификацыя
//if (rand(1,2)==1) {
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$tar = mysql_fetch_array(mysql_query("SELECT `id`,`align` FROM `users` WHERE `login` = '{$_POST['target']}' LIMIT 1;"));
$target=$_POST['target'];
if ($tar['id']) {

View File

@ -1,10 +1,11 @@
<?php
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
if($user['invis'] == 1) { $user['login'] = '<b><i>невидимка</i></b>'; }
if (($user->room > 2000) && ($user->room < 2100)) {echo "Не в Проходе...";}
else {

View File

@ -1,10 +1,11 @@
<?php
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
if($user['invis'] == 1) { $user['login'] = '<b><i>невидимка</i></b>'; }
if (($user->room > 2000) && ($user->room < 2100)) {echo "Не в Проходе...";}
else {

View File

@ -1,10 +1,11 @@
<?php
// magic идентификацыя
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
if ($user['battle'] == 0) {
echo "ќто боеваЯ магиЯ...";
} else {

View File

@ -32,10 +32,11 @@
if ($user['battle'] > 0) {
echo "Не в бою...";
} else {
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$target=$_POST['target'];
$us = mysql_fetch_array(mysql_query("SELECT *, (SELECT `id` FROM `inventory` WHERE `owner` = `users`.`id` AND `name` LIKE '%Чеснок%' LIMIT 1) AS `che`, (SELECT `id` FROM `inventory` WHERE `owner` = `users`.`id` AND `name` LIKE '%Осиновый кол%' LIMIT 1) AS `kol`,(select `id` from `online` WHERE `date` >= ".(time()-60)." AND `id` = users.`id`) as `online` FROM `users` WHERE `login` = '{$_POST['target']}' LIMIT 1;"));
$effs = mysql_query("SELECT * FROM `effects` WHERE `owner` = '{$us['id']}' and (`type`=12 or `type`=13 or `type`=14) limit 1;");

View File

@ -12,10 +12,11 @@
$book=866;$have_book=mysql_fetch_array(mysql_query("SELECT `id` FROM `inventory` WHERE `prototype`='{$book}' AND `owner`='{$user['id']}' LIMIT 1;"));
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$magic = mysql_fetch_array(mysql_query("SELECT `chanse` FROM `magic` WHERE `id` = '{$mag_id}' LIMIT 1 ;"));
$bat=mysql_fetch_array(mysql_query("SELECT * FROM `battle` WHERE `id`='{$user['battle']}';"));
//mana needed

View File

@ -12,10 +12,11 @@
$book=908;$have_book=mysql_fetch_array(mysql_query("SELECT `id` FROM `inventory` WHERE `prototype`='{$book}' AND `owner`='{$user['id']}' LIMIT 1;"));
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$magic = mysql_fetch_array(mysql_query("SELECT `chanse` FROM `magic` WHERE `id` = '{$mag_id}' LIMIT 1 ;"));
$bat=mysql_fetch_array(mysql_query("SELECT * FROM `battle` WHERE `id`='{$user['battle']}';"));
//mana needed

View File

@ -12,10 +12,11 @@
$book=909;$have_book=mysql_fetch_array(mysql_query("SELECT `id` FROM `inventory` WHERE `prototype`='{$book}' AND `owner`='{$user['id']}' LIMIT 1;"));
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$magic = mysql_fetch_array(mysql_query("SELECT `chanse` FROM `magic` WHERE `id` = '{$mag_id}' LIMIT 1 ;"));
$bat=mysql_fetch_array(mysql_query("SELECT * FROM `battle` WHERE `id`='{$user['battle']}';"));
//mana needed

View File

@ -9,10 +9,11 @@
$book=866;$have_book=mysql_fetch_array(mysql_query("SELECT `id` FROM `inventory` WHERE `prototype`='{$book}' AND `owner`='{$user['id']}' LIMIT 1;"));
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$us = mysql_fetch_array(mysql_query("SELECT *,(select `id` from `online` WHERE `real_time` >= ".(time()-60)." AND `id` = users.`id`) as `online` FROM `users` WHERE `login` = '{$_POST['target']}' LIMIT 1;"));
$magic = mysql_fetch_array(mysql_query("SELECT `chanse` FROM `magic` WHERE `id` = '{$mag_id}' LIMIT 1 ;"));
$bat=mysql_fetch_array(mysql_query("SELECT * FROM `battle` WHERE `id`='{$user['battle']}';"));

View File

@ -9,10 +9,11 @@
$book=908;$have_book=mysql_fetch_array(mysql_query("SELECT `id` FROM `inventory` WHERE `prototype`='{$book}' AND `owner`='{$user['id']}' LIMIT 1;"));
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$us = mysql_fetch_array(mysql_query("SELECT *,(select `id` from `online` WHERE `real_time` >= ".(time()-60)." AND `id` = users.`id`) as `online` FROM `users` WHERE `login` = '{$_POST['target']}' LIMIT 1;"));
$magic = mysql_fetch_array(mysql_query("SELECT `chanse` FROM `magic` WHERE `id` = '{$mag_id}' LIMIT 1 ;"));
$bat=mysql_fetch_array(mysql_query("SELECT * FROM `battle` WHERE `id`='{$user['battle']}';"));

View File

@ -9,10 +9,11 @@
$book=909;$have_book=mysql_fetch_array(mysql_query("SELECT `id` FROM `inventory` WHERE `prototype`='{$book}' AND `owner`='{$user['id']}' LIMIT 1;"));
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$us = mysql_fetch_array(mysql_query("SELECT *,(select `id` from `online` WHERE `real_time` >= ".(time()-60)." AND `id` = users.`id`) as `online` FROM `users` WHERE `login` = '{$_POST['target']}' LIMIT 1;"));
$magic = mysql_fetch_array(mysql_query("SELECT `chanse` FROM `magic` WHERE `id` = '{$mag_id}' LIMIT 1 ;"));
$bat=mysql_fetch_array(mysql_query("SELECT * FROM `battle` WHERE `id`='{$user['battle']}';"));

View File

@ -11,10 +11,11 @@
$log_text="<strong><font color=#0198ef>Цепь Молний [1]</font></strong>";
$book=866;$have_book=mysql_fetch_array(mysql_query("SELECT `id` FROM `inventory` WHERE `prototype`='{$book}' AND `owner`='{$user['id']}' LIMIT 1;"));
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$magic = mysql_fetch_array(mysql_query("SELECT `chanse` FROM `magic` WHERE `id` = '{$mag_id}' LIMIT 1 ;"));
$bat=mysql_fetch_array(mysql_query("SELECT * FROM `battle` WHERE `id`='{$user['battle']}';"));
//mana needed

View File

@ -11,10 +11,11 @@
$log_text="<strong><font color=#0198ef>Цепь Молний [2]</font></strong>";
$book=908;$have_book=mysql_fetch_array(mysql_query("SELECT `id` FROM `inventory` WHERE `prototype`='{$book}' AND `owner`='{$user['id']}' LIMIT 1;"));
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$magic = mysql_fetch_array(mysql_query("SELECT `chanse` FROM `magic` WHERE `id` = '{$mag_id}' LIMIT 1 ;"));
$bat=mysql_fetch_array(mysql_query("SELECT * FROM `battle` WHERE `id`='{$user['battle']}';"));
//mana needed

View File

@ -11,10 +11,11 @@
$log_text="<strong><font color=#0198ef>Цепь Молний [3]</font></strong>";
$book=909;$have_book=mysql_fetch_array(mysql_query("SELECT `id` FROM `inventory` WHERE `prototype`='{$book}' AND `owner`='{$user['id']}' LIMIT 1;"));
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$magic = mysql_fetch_array(mysql_query("SELECT `chanse` FROM `magic` WHERE `id` = '{$mag_id}' LIMIT 1 ;"));
$bat=mysql_fetch_array(mysql_query("SELECT * FROM `battle` WHERE `id`='{$user['battle']}';"));
//mana needed

View File

@ -12,10 +12,11 @@
$book=866;$have_book=mysql_fetch_array(mysql_query("SELECT `id` FROM `inventory` WHERE `prototype`='{$book}' AND `owner`='{$user['id']}' LIMIT 1;"));
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$magic = mysql_fetch_array(mysql_query("SELECT `chanse` FROM `magic` WHERE `id` = '{$mag_id}' LIMIT 1 ;"));
$bat=mysql_fetch_array(mysql_query("SELECT * FROM `battle` WHERE `id`='{$user['battle']}';"));
//mana needed

View File

@ -12,10 +12,11 @@
$book=908;$have_book=mysql_fetch_array(mysql_query("SELECT `id` FROM `inventory` WHERE `prototype`='{$book}' AND `owner`='{$user['id']}' LIMIT 1;"));
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$magic = mysql_fetch_array(mysql_query("SELECT `chanse` FROM `magic` WHERE `id` = '{$mag_id}' LIMIT 1 ;"));
$bat=mysql_fetch_array(mysql_query("SELECT * FROM `battle` WHERE `id`='{$user['battle']}';"));
//mana needed

View File

@ -11,10 +11,11 @@
$log_text="<strong><font color=#086604>Дух Природы [3]</font></strong>";
$book=909;$have_book=mysql_fetch_array(mysql_query("SELECT `id` FROM `inventory` WHERE `prototype`='{$book}' AND `owner`='{$user['id']}' LIMIT 1;"));
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$magic = mysql_fetch_array(mysql_query("SELECT `chanse` FROM `magic` WHERE `id` = '{$mag_id}' LIMIT 1 ;"));
$bat=mysql_fetch_array(mysql_query("SELECT * FROM `battle` WHERE `id`='{$user['battle']}';"));
//mana needed

View File

@ -12,10 +12,11 @@
$book=866;$have_book=mysql_fetch_array(mysql_query("SELECT `id` FROM `inventory` WHERE `prototype`='{$book}' AND `owner`='{$user['id']}' LIMIT 1;"));
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$magic = mysql_fetch_array(mysql_query("SELECT `chanse` FROM `magic` WHERE `id` = '{$mag_id}' LIMIT 1 ;"));
$bat=mysql_fetch_array(mysql_query("SELECT * FROM `battle` WHERE `id`='{$user['battle']}';"));
//mana needed

View File

@ -11,10 +11,11 @@
$log_text="<strong><font color=#086604>Каменный Дождь [2]</font></strong>";
$book=908;$have_book=mysql_fetch_array(mysql_query("SELECT `id` FROM `inventory` WHERE `prototype`='{$book}' AND `owner`='{$user['id']}' LIMIT 1;"));
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$magic = mysql_fetch_array(mysql_query("SELECT `chanse` FROM `magic` WHERE `id` = '{$mag_id}' LIMIT 1 ;"));
$bat=mysql_fetch_array(mysql_query("SELECT * FROM `battle` WHERE `id`='{$user['battle']}';"));
//mana needed

View File

@ -11,10 +11,11 @@
$log_text="<strong><font color=#086604>Каменный Дождь [3]</font></strong>";
$book=909;$have_book=mysql_fetch_array(mysql_query("SELECT `id` FROM `inventory` WHERE `prototype`='{$book}' AND `owner`='{$user['id']}' LIMIT 1;"));
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$magic = mysql_fetch_array(mysql_query("SELECT `chanse` FROM `magic` WHERE `id` = '{$mag_id}' LIMIT 1 ;"));
$bat=mysql_fetch_array(mysql_query("SELECT * FROM `battle` WHERE `id`='{$user['battle']}';"));
//mana needed

View File

@ -9,10 +9,11 @@
$book=866;$have_book=mysql_fetch_array(mysql_query("SELECT `id` FROM `inventory` WHERE `prototype`='{$book}' AND `owner`='{$user['id']}' LIMIT 1;"));
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$us = mysql_fetch_array(mysql_query("SELECT *,(select `id` from `online` WHERE `real_time` >= ".(time()-60)." AND `id` = users.`id`) as `online` FROM `users` WHERE `login` = '{$_POST['target']}' LIMIT 1;"));
$magic = mysql_fetch_array(mysql_query("SELECT `chanse` FROM `magic` WHERE `id` = '{$mag_id}' LIMIT 1 ;"));
$bat=mysql_fetch_array(mysql_query("SELECT * FROM `battle` WHERE `id`='{$user['battle']}';"));

View File

@ -9,10 +9,11 @@
$book=908;$have_book=mysql_fetch_array(mysql_query("SELECT `id` FROM `inventory` WHERE `prototype`='{$book}' AND `owner`='{$user['id']}' LIMIT 1;"));
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$us = mysql_fetch_array(mysql_query("SELECT *,(select `id` from `online` WHERE `real_time` >= ".(time()-60)." AND `id` = users.`id`) as `online` FROM `users` WHERE `login` = '{$_POST['target']}' LIMIT 1;"));
$magic = mysql_fetch_array(mysql_query("SELECT `chanse` FROM `magic` WHERE `id` = '{$mag_id}' LIMIT 1 ;"));
$bat=mysql_fetch_array(mysql_query("SELECT * FROM `battle` WHERE `id`='{$user['battle']}';"));

View File

@ -9,10 +9,11 @@
$book=909;$have_book=mysql_fetch_array(mysql_query("SELECT `id` FROM `inventory` WHERE `prototype`='{$book}' AND `owner`='{$user['id']}' LIMIT 1;"));
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$us = mysql_fetch_array(mysql_query("SELECT *,(select `id` from `online` WHERE `real_time` >= ".(time()-60)." AND `id` = users.`id`) as `online` FROM `users` WHERE `login` = '{$_POST['target']}' LIMIT 1;"));
$magic = mysql_fetch_array(mysql_query("SELECT `chanse` FROM `magic` WHERE `id` = '{$mag_id}' LIMIT 1 ;"));
$bat=mysql_fetch_array(mysql_query("SELECT * FROM `battle` WHERE `id`='{$user['battle']}';"));

View File

@ -11,10 +11,11 @@
$log_text="<strong><font color=#df0d0d>Пожирающее Пламя [1]</font></strong>";
$book=866;$have_book=mysql_fetch_array(mysql_query("SELECT `id` FROM `inventory` WHERE `prototype`='{$book}' AND `owner`='{$user['id']}' LIMIT 1;"));
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$magic = mysql_fetch_array(mysql_query("SELECT `chanse` FROM `magic` WHERE `id` = '{$mag_id}' LIMIT 1 ;"));
$bat=mysql_fetch_array(mysql_query("SELECT * FROM `battle` WHERE `id`='{$user['battle']}';"));
//mana needed

View File

@ -11,10 +11,11 @@
$log_text="<strong><font color=#df0d0d>Пожирающее Пламя [2]</font></strong>";
$book=908;$have_book=mysql_fetch_array(mysql_query("SELECT `id` FROM `inventory` WHERE `prototype`='{$book}' AND `owner`='{$user['id']}' LIMIT 1;"));
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$magic = mysql_fetch_array(mysql_query("SELECT `chanse` FROM `magic` WHERE `id` = '{$mag_id}' LIMIT 1 ;"));
$bat=mysql_fetch_array(mysql_query("SELECT * FROM `battle` WHERE `id`='{$user['battle']}';"));
//mana needed

View File

@ -11,10 +11,11 @@
$log_text="<strong><font color=#df0d0d>Пожирающее Пламя [3]</font></strong>";
$book=909;$have_book=mysql_fetch_array(mysql_query("SELECT `id` FROM `inventory` WHERE `prototype`='{$book}' AND `owner`='{$user['id']}' LIMIT 1;"));
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$magic = mysql_fetch_array(mysql_query("SELECT `chanse` FROM `magic` WHERE `id` = '{$mag_id}' LIMIT 1 ;"));
$bat=mysql_fetch_array(mysql_query("SELECT * FROM `battle` WHERE `id`='{$user['battle']}';"));
//mana needed

View File

@ -12,10 +12,11 @@
$book=866;$have_book=mysql_fetch_array(mysql_query("SELECT `id` FROM `inventory` WHERE `prototype`='{$book}' AND `owner`='{$user['id']}' LIMIT 1;"));
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$magic = mysql_fetch_array(mysql_query("SELECT `chanse` FROM `magic` WHERE `id` = '{$mag_id}' LIMIT 1 ;"));
$bat=mysql_fetch_array(mysql_query("SELECT * FROM `battle` WHERE `id`='{$user['battle']}';"));
//mana needed

View File

@ -12,10 +12,11 @@
$book=908;$have_book=mysql_fetch_array(mysql_query("SELECT `id` FROM `inventory` WHERE `prototype`='{$book}' AND `owner`='{$user['id']}' LIMIT 1;"));
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$magic = mysql_fetch_array(mysql_query("SELECT `chanse` FROM `magic` WHERE `id` = '{$mag_id}' LIMIT 1 ;"));
$bat=mysql_fetch_array(mysql_query("SELECT * FROM `battle` WHERE `id`='{$user['battle']}';"));
//mana needed

View File

@ -12,10 +12,11 @@
$book=909;$have_book=mysql_fetch_array(mysql_query("SELECT `id` FROM `inventory` WHERE `prototype`='{$book}' AND `owner`='{$user['id']}' LIMIT 1;"));
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$magic = mysql_fetch_array(mysql_query("SELECT `chanse` FROM `magic` WHERE `id` = '{$mag_id}' LIMIT 1 ;"));
$bat=mysql_fetch_array(mysql_query("SELECT * FROM `battle` WHERE `id`='{$user['battle']}';"));
//mana needed

View File

@ -9,10 +9,11 @@
$book=866;$have_book=mysql_fetch_array(mysql_query("SELECT `id` FROM `inventory` WHERE `prototype`='{$book}' AND `owner`='{$user['id']}' LIMIT 1;"));
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$us = mysql_fetch_array(mysql_query("SELECT *,(select `id` from `online` WHERE `real_time` >= ".(time()-60)." AND `id` = users.`id`) as `online` FROM `users` WHERE `login` = '{$_POST['target']}' LIMIT 1;"));
$magic = mysql_fetch_array(mysql_query("SELECT `chanse` FROM `magic` WHERE `id` = '{$mag_id}' LIMIT 1 ;"));
$bat=mysql_fetch_array(mysql_query("SELECT * FROM `battle` WHERE `id`='{$user['battle']}';"));

View File

@ -9,10 +9,11 @@
$book=908;$have_book=mysql_fetch_array(mysql_query("SELECT `id` FROM `inventory` WHERE `prototype`='{$book}' AND `owner`='{$user['id']}' LIMIT 1;"));
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$us = mysql_fetch_array(mysql_query("SELECT *,(select `id` from `online` WHERE `real_time` >= ".(time()-60)." AND `id` = users.`id`) as `online` FROM `users` WHERE `login` = '{$_POST['target']}' LIMIT 1;"));
$magic = mysql_fetch_array(mysql_query("SELECT `chanse` FROM `magic` WHERE `id` = '{$mag_id}' LIMIT 1 ;"));
$bat=mysql_fetch_array(mysql_query("SELECT * FROM `battle` WHERE `id`='{$user['battle']}';"));

View File

@ -10,10 +10,11 @@
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$us = mysql_fetch_array(mysql_query("SELECT *,(select `id` from `online` WHERE `real_time` >= ".(time()-60)." AND `id` = users.`id`) as `online` FROM `users` WHERE `login` = '{$_POST['target']}' LIMIT 1;"));
$magic = mysql_fetch_array(mysql_query("SELECT `chanse` FROM `magic` WHERE `id` = '{$mag_id}' LIMIT 1 ;"));
$bat=mysql_fetch_array(mysql_query("SELECT * FROM `battle` WHERE `id`='{$user['battle']}';"));

View File

@ -9,10 +9,11 @@
$book=866;$have_book=mysql_fetch_array(mysql_query("SELECT `id` FROM `inventory` WHERE `prototype`='{$book}' AND `owner`='{$user['id']}' LIMIT 1;"));
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$us = mysql_fetch_array(mysql_query("SELECT *,(select `id` from `online` WHERE `real_time` >= ".(time()-60)." AND `id` = users.`id`) as `online` FROM `users` WHERE `login` = '{$_POST['target']}' LIMIT 1;"));
$magic = mysql_fetch_array(mysql_query("SELECT `chanse` FROM `magic` WHERE `id` = '{$mag_id}' LIMIT 1 ;"));
$bat=mysql_fetch_array(mysql_query("SELECT * FROM `battle` WHERE `id`='{$user['battle']}';"));

View File

@ -9,10 +9,11 @@
$book=908;$have_book=mysql_fetch_array(mysql_query("SELECT `id` FROM `inventory` WHERE `prototype`='{$book}' AND `owner`='{$user['id']}' LIMIT 1;"));
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$us = mysql_fetch_array(mysql_query("SELECT *,(select `id` from `online` WHERE `real_time` >= ".(time()-60)." AND `id` = users.`id`) as `online` FROM `users` WHERE `login` = '{$_POST['target']}' LIMIT 1;"));
$magic = mysql_fetch_array(mysql_query("SELECT `chanse` FROM `magic` WHERE `id` = '{$mag_id}' LIMIT 1 ;"));
$bat=mysql_fetch_array(mysql_query("SELECT * FROM `battle` WHERE `id`='{$user['battle']}';"));

View File

@ -9,10 +9,11 @@
$book=909;$have_book=mysql_fetch_array(mysql_query("SELECT `id` FROM `inventory` WHERE `prototype`='{$book}' AND `owner`='{$user['id']}' LIMIT 1;"));
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$us = mysql_fetch_array(mysql_query("SELECT *,(select `id` from `online` WHERE `real_time` >= ".(time()-60)." AND `id` = users.`id`) as `online` FROM `users` WHERE `login` = '{$_POST['target']}' LIMIT 1;"));
$magic = mysql_fetch_array(mysql_query("SELECT `chanse` FROM `magic` WHERE `id` = '{$mag_id}' LIMIT 1 ;"));
$bat=mysql_fetch_array(mysql_query("SELECT * FROM `battle` WHERE `id`='{$user['battle']}';"));

View File

@ -12,10 +12,11 @@
$book=866;$have_book=mysql_fetch_array(mysql_query("SELECT `id` FROM `inventory` WHERE `prototype`='{$book}' AND `owner`='{$user['id']}' LIMIT 1;"));
if ($_SESSION['uid'] == null) {
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
$magic = mysql_fetch_array(mysql_query("SELECT `chanse` FROM `magic` WHERE `id` = '{$mag_id}' LIMIT 1 ;"));
$bat=mysql_fetch_array(mysql_query("SELECT * FROM `battle` WHERE `id`='{$user['battle']}';"));
//mana needed

Some files were not shown because too many files have changed in this diff Show More