From 7af811c19b6196ef51d3e58eec6cbd108faf012c Mon Sep 17 00:00:00 2001 From: "neatelves@gmail.com" Date: Mon, 24 Oct 2011 12:52:46 +0000 Subject: [PATCH] =?utf8?q?=D0=A2=D0=BE=D1=87=D0=BD=D1=8B=D0=B9=20=D0=BF?= =?utf8?q?=D0=BE=D0=B8=D1=81=D0=BA=20=D0=BA=D0=B2=D0=B5=D1=81=D1=82=D0=BE?= =?utf8?q?=D0=B2=20=D0=BF=D0=BE=20=D1=81=D1=82=D0=BE=D1=80=D0=BE=D0=BD?= =?utf8?q?=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: http://cswowd-fork.googlecode.com/svn/trunk@122 e451fad0-63ce-11de-bed1-e3a98b22654c --- lang/lang.en.php | 2 ++ lang/lang.ru.php | 2 ++ module/search/search_quest.php | 8 ++++++-- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/lang/lang.en.php b/lang/lang.en.php index c95f538..603fb24 100644 --- a/lang/lang.en.php +++ b/lang/lang.en.php @@ -644,6 +644,8 @@ $lang = array( 'Both'=>'Both', 'Alliance'=>'Alliance', 'Horde'=>'Horde', +'Allianceonly'=>'Alliance only', +'Hordeonly'=>'Horde only', 'Blackwater'=>'Blackwater', 'items'=>'items', diff --git a/lang/lang.ru.php b/lang/lang.ru.php index 1fe381a..08e9ac1 100644 --- a/lang/lang.ru.php +++ b/lang/lang.ru.php @@ -647,6 +647,8 @@ $lang = array( 'Both'=>'Обе', 'Alliance'=>'Альянс', 'Horde'=>'Орда', +'Allianceonly'=>'Альянс только', +'Hordeonly'=>'Орда только', 'Blackwater'=>'Нейтральный', 'items'=>'предмет(-а,-ов)', ); diff --git a/module/search/search_quest.php b/module/search/search_quest.php index 8a130dd..09d5919 100644 --- a/module/search/search_quest.php +++ b/module/search/search_quest.php @@ -96,8 +96,10 @@ if ($Sfm = intval(@$_REQUEST['Sfm'])) if ($side = @$_REQUEST['side']) { $races = 0; - if ($side=='alliance') $filter.= ' AND ((`RequiredRaces`&'.(1 + 4 + 8 + 64 + 1024).') OR `RequiredRaces`=0)'; - else if ($side=='horde' ) $filter.= ' AND ((`RequiredRaces`&'.(2 + 16 + 32 + 128 + 512).') OR `RequiredRaces`=0)'; + if ($side=='allianceonly') $filter.= " AND `RequiredRaces` = 1101"; + else if ($side=='alliance') $filter.= ' AND ((`RequiredRaces`&'.(1 + 4 + 8 + 64 + 1024).') OR `RequiredRaces`=0)'; + else if ($side=='hordeonly') $filter.= " AND `RequiredRaces` = 690"; + else if ($side=='horde') $filter.= ' AND ((`RequiredRaces`&'.(2 + 16 + 32 + 128 + 512).') OR `RequiredRaces`=0)'; $FindRefrence.='&side='.$side; } // Убираем ненужный AND в начале строки @@ -119,6 +121,8 @@ if ($allmode==0 and $ajaxmode==0) echo ''; echo ''; echo ''; + echo ''; + echo ''; echo ''; echo ''; echo ''.$lang['level'].': - '; -- 2.11.4.GIT