Файл: shops.php
Строк: 1000
<?
include_once("mysql.php");
include_once("include/antixak.php");
include_once("include/zag.php");
include_once("include/ini.php");
include 'include/sesi.php';
if (isset($user)) {
switch($go) {
default:
echo"<b>Магазин</b><br/>";
echo"Выберите что хотите купить<br/>";
echo"<u>Украшение:</u><br/>";
echo"[<a href="shops.php?$sd&go=prikras">Украшение</a>]<br/>";
echo"<u>Боевая екипировка:</u><br/>";
echo"[<a href="shops.php?$sd&go=body">Броня</a>]<br/>";
echo"[<a href="shops.php?$sd&go=boots">Сапоги</a>]<br/>";
echo"[<a href="shops.php?$sd&go=gloves">Перчатки</a>]<br/>";
echo"[<a href="shops.php?$sd&go=4it">Щиты</a>]<br/>";
echo"[<a href="shops.php?$sd&go=helmet">Шлемы</a>]<br/>";
echo"[<a href="shops.php?$sd&go=weapon">Оружие</a>]<br/>";
echo"- - -<br/>[<a href="listsell.php?$sd">Продать вещи</a>]<br/>";
break;
case 'body':
echo"<u>Выберите Graid</u><br/>";
echo"[<a href="shops.php?$sd&go=bodyng">NG</a>] (до 20 ур)<br/>";
echo"[<a href="shops.php?$sd&go=bodyd">D</a>] (до 40 ур)<br/>";
echo"[<a href="shops.php?$sd&go=bodyc">C</a>] (до 52 ур)<br/>";
echo"[<a href="shops.php?$sd&go=bodyb">B</a>] (до 62 ур)<br/>";
echo"[<a href="shops.php?$sd&go=bodya">A</a>] (до 76 ур)<br/>";
echo"[<a href="shops.php?$sd&go=bodys">S</a>] (от 76 ур)<br/>";
echo"[<a href="shops.php?$sd&go=bodygiper"><font color='red'>Гипер</font></a>] (до 85 ур)<br/>";
break;
case 'bodyng':
$dir = opendir ("MySql/base123/shop");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="body"){
if($udata[9]<="85"){if($data[3]=="0"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="NG";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/robe/$dat_name[$k].gif" alt="pic"/><a href="pokupka2.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Защита: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=bodyng">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=bodyng">Далее</a>';}
break;
case 'bodyd':
$dir = opendir ("MySql/base123/shop");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="body"){
if($udata[9]<="85"){if($data[3]=="D"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="D";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/robe/$dat_name[$k].gif" alt="pic"/><a href="pokupka2.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Защита: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=bodyd">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=bodyd">Далее</a>';}
break;
case 'bodyc':
$dir = opendir ("MySql/base123/shop");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="body"){
if($udata[9]<="85"){if($data[3]=="C"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="C";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/robe/$dat_name[$k].gif" alt="pic"/><a href="pokupka2.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Защита: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=bodyc">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=bodyc">Далее</a>';}
break;
case 'bodyb':
$dir = opendir ("MySql/base123/shop");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="body"){
if($udata[9]<="85"){if($data[3]=="B"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="B";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/robe/$dat_name[$k].gif" alt="pic"/><a href="pokupka2.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Защита: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=bodyb">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=bodyb">Далее</a>';}
break;
case 'bodya':
$dir = opendir ("MySql/base123/shop");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="body"){
if($udata[9]<="85"){if($data[3]=="A"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="A";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/robe/$dat_name[$k].gif" alt="pic"/><a href="pokupka2.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Защита: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=bodya">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=bodya">Далее</a>';}
break;
case 'bodys':
$dir = opendir ("MySql/base123/shop");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="body"){
if($udata[9]<="85"){if($data[3]=="S"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="S";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/robe/$dat_name[$k].gif" alt="pic"/><a href="pokupka2.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Защита: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=bodys">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=bodys">Далее</a>';}
break;
case 'bodygiper':
echo "<br/><b><img src="pic/robe/Body.gif" alt="pic"/>Super Armor</b><br/>Защита: +20000<br/>Цена: 10грн (40 рублей)<br/><br/>";
echo "<a href="shops.php?$sd&go=uslugi"><b>Купить</b></a><br/>";
break;
case 'boots':
echo"<u>Выберите Graid</u><br/>";
echo"[<a href="shops.php?$sd&go=bootsng">NG</a>] (до 20 ур)<br/>";
echo"[<a href="shops.php?$sd&go=bootsd">D</a>] (до 40 ур)<br/>";
echo"[<a href="shops.php?$sd&go=bootsc">C</a>] (до 52 ур)<br/>";
echo"[<a href="shops.php?$sd&go=bootsb">B</a>] (до 62 ур)<br/>";
echo"[<a href="shops.php?$sd&go=bootsa">A</a>] (до 76 ур)<br/>";
echo"[<a href="shops.php?$sd&go=bootss">S</a>] (от 76 ур)<br/>";
echo"[<a href="shops.php?$sd&go=bootsgiper"><font color='red'>Гипер</font></a>] (до 85 ур)<br/>";
break;
case 'bootsng':
$dir = opendir ("MySql/base123/shop");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="nogi"){
if($udata[9]<="85"){if($data[3]=="0"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="NG";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/boots/$dat_name[$k].gif" alt="pic"/><a href="pokupka2.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Защита: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=bootsng">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=bootsng">Далее</a>';}
break;
case 'bootsd':
$dir = opendir ("MySql/base123/shop");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="nogi"){
if($udata[9]<="85"){if($data[3]=="D"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="D";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/boots/$dat_name[$k].gif" alt="pic"/><a href="pokupka2.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Защита: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=bootsd">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=bootsd">Далее</a>';}
break;
case 'bootsc':
$dir = opendir ("MySql/base123/shop");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="nogi"){
if($udata[9]<="85"){if($data[3]=="C"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="C";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/boots/$dat_name[$k].gif" alt="pic"/><a href="pokupka2.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Защита: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=bootsc">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=bootsc">Далее</a>';}
break;
case 'bootsb':
$dir = opendir ("MySql/base123/shop");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="nogi"){
if($udata[9]<="85"){if($data[3]=="B"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="B";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/boots/$dat_name[$k].gif" alt="pic"/><a href="pokupka2.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Защита: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=bootsb">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=bootsb">Далее</a>';}
break;
case 'bootsa':
$dir = opendir ("MySql/base123/shop");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="nogi"){
if($udata[9]<="85"){if($data[3]=="A"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="A";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/boots/$dat_name[$k].gif" alt="pic"/><a href="pokupka2.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Защита: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=bootsa">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=bootsa">Далее</a>';}
break;
case 'bootss':
$dir = opendir ("MySql/base123/shop");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="nogi"){
if($udata[9]<="85"){if($data[3]=="S"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="S";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/boots/$dat_name[$k].gif" alt="pic"/><a href="pokupka2.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Защита: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=bootss">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=bootss">Далее</a>';}
break;
case 'bootsgiper':
echo "<br/><b><img src="pic/boots/Major%20Arcana%20Boots.gif" alt="pic"/>Super Boots</b><br/>Защита: M+20000<br/>Цена: 10 грн<br/><br/>";
echo "<a href="shops.php?$sd&go=uslugi"><b>Купить</b></a><br/>";
break;
case 'gloves':
echo"<u>Выберите Graid</u><br/>";
echo"[<a href="shops.php?$sd&go=glovesng">NG</a>] (до 20 ур)<br/>";
echo"[<a href="shops.php?$sd&go=glovesd">D</a>] (до 40 ур)<br/>";
echo"[<a href="shops.php?$sd&go=glovesc">C</a>] (до 52 ур)<br/>";
echo"[<a href="shops.php?$sd&go=glovesb">B</a>] (до 62 ур)<br/>";
echo"[<a href="shops.php?$sd&go=glovesa">A</a>] (до 76 ур)<br/>";
echo"[<a href="shops.php?$sd&go=glovess">S</a>] (от 76 ур)<br/>";
echo"[<a href="shops.php?$sd&go=glovesgiper"><font color='red'>Гипер</font></a>] (до 85 ур)<br/>";
break;
case 'glovesng':
$dir = opendir ("MySql/base123/shop");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="ryki"){
if($udata[9]<="85"){if($data[3]=="0"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="NG";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/gloves/$dat_name[$k].gif" alt="pic"/><a href="pokupka2.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Защита: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=glovesng">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=glovesng">Далее</a>';}
break;
case 'glovesd':
$dir = opendir ("MySql/base123/shop");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="ryki"){
if($udata[9]<="85"){if($data[3]=="D"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="D";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/gloves/$dat_name[$k].gif" alt="pic"/><a href="pokupka2.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Защита: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=glovesd">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=glovesd">Далее</a>';}
break;
case 'glovesc':
$dir = opendir ("MySql/base123/shop");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="ryki"){
if($udata[9]<="85"){if($data[3]=="C"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="C";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/gloves/$dat_name[$k].gif" alt="pic"/><a href="pokupka2.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Защита: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=glovesc">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=glovesc">Далее</a>';}
break;
case 'glovesb':
$dir = opendir ("MySql/base123/shop");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="ryki"){
if($udata[9]<="85"){if($data[3]=="B"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="B";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/gloves/$dat_name[$k].gif" alt="pic"/><a href="pokupka2.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Защита: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=glovesb">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=glovesb">Далее</a>';}
break;
case 'glovesa':
$dir = opendir ("MySql/base123/shop");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="ryki"){
if($udata[9]<="85"){if($data[3]=="A"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="A";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/gloves/$dat_name[$k].gif" alt="pic"/><a href="pokupka2.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Защита: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=glovesa">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=glovesa">Далее</a>';}
break;
case 'glovess':
$dir = opendir ("MySql/base123/shop");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="ryki"){
if($udata[9]<="85"){if($data[3]=="S"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="S";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/gloves/$dat_name[$k].gif" alt="pic"/><a href="pokupka2.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Защита: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=glovess">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=glovess">Далее</a>';}
break;
case 'glovesgiper':
echo "<br/><b><img src="pic/gloves/Draconic Leather Gloves.gif" alt="pic"/>Super Glove</b><br/>Защита: M+20000<br/>Цена: 10 грн (40 рублей)<br/><br/>";
echo "<a href="shops.php?$sd&go=uslugi"><b>Купить</b></a><br/>";
break;
case '4it':
echo"<u>Выберите Graid</u><br/>";
echo"[<a href="shops.php?$sd&go=4itng">NG</a>] (до 20 ур)<br/>";
echo"[<a href="shops.php?$sd&go=4itd">D</a>] (до 40 ур)<br/>";
echo"[<a href="shops.php?$sd&go=4itc">C</a>] (до 52 ур)<br/>";
echo"[<a href="shops.php?$sd&go=4itb">B</a>] (до 62 ур)<br/>";
echo"[<a href="shops.php?$sd&go=4ita">A</a>] (до 76 ур)<br/>";
echo"[<a href="shops.php?$sd&go=4its">S</a>] (от 76 ур)<br/>";
echo"[<a href="shops.php?$sd&go=4itgiper"><font color='red'>Гипер</font></a>] (до 85 ур)<br/>";
break;
case '4itng':
$dir = opendir ("MySql/base123/shop");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="4it"){
if($udata[9]<="85"){if($data[3]=="0"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="NG";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/4it/$dat_name[$k].gif" alt="pic"/><a href="pokupka2.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Защита: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=4itng">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=4itng">Далее</a>';}
break;
case '4itd':
$dir = opendir ("MySql/base123/shop");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="4it"){
if($udata[9]<="85"){if($data[3]=="D"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="D";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/4it/$dat_name[$k].gif" alt="pic"/><a href="pokupka2.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Защита: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=4itd">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=4itd">Далее</a>';}
break;
case '4itc':
$dir = opendir ("MySql/base123/shop");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="4it"){
if($udata[9]<="85"){if($data[3]=="C"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="C";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/4it/$dat_name[$k].gif" alt="pic"/><a href="pokupka2.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Защита: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=4itc">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=4itc">Далее</a>';}
break;
case '4itb':
$dir = opendir ("MySql/base123/shop");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="4it"){
if($udata[9]<="85"){if($data[3]=="B"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="B";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/4it/$dat_name[$k].gif" alt="pic"/><a href="pokupka2.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Защита: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=4itb">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=4itb">Далее</a>';}
break;
case '4ita':
$dir = opendir ("MySql/base123/shop");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="4it"){
if($udata[9]<="85"){if($data[3]=="A"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="A";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/4it/$dat_name[$k].gif" alt="pic"/><a href="pokupka2.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Защита: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=4ita">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=4ita">Далее</a>';}
break;
case '4its':
$dir = opendir ("MySql/base123/shop");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="4it"){
if($udata[9]<="85"){if($data[3]=="S"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="S";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/4it/$dat_name[$k].gif" alt="pic"/><a href="pokupka2.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Защита: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=4its">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=4its">Далее</a>';}
break;
case '4itgiper':
echo "<br/><b><img src="pic/4it/Draconic Leather Shield.gif" alt="pic"/>Super Shield</b><br/>Защита: M+20000<br/>Цена: 10 грн (40 рублей)<br/><br/>";
echo "<a href="shops.php?$sd&go=uslugi"><b>Купить</b></a><br/>";
break;
case 'helmet':
echo"<u>Выберите Graid</u><br/>";
echo"[<a href="shops.php?$sd&go=helmetng">NG</a>] (до 20 ур)<br/>";
echo"[<a href="shops.php?$sd&go=helmetd">D</a>] (до 40 ур)<br/>";
echo"[<a href="shops.php?$sd&go=helmetc">C</a>] (до 52 ур)<br/>";
echo"[<a href="shops.php?$sd&go=helmetb">B</a>] (до 62 ур)<br/>";
echo"[<a href="shops.php?$sd&go=helmeta">A</a>] (до 76 ур)<br/>";
echo"[<a href="shops.php?$sd&go=helmets">S</a>] (от 76 ур)<br/>";
echo"[<a href="shops.php?$sd&go=hemetgiper"><font color='red'>Гипер</font></a>] (до 85 ур)<br/>";
break;
case 'helmetng':
$dir = opendir ("MySql/base123/shop");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="golova"){
if($udata[9]<="85"){if($data[3]=="0"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="NG";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/shlem/$dat_name[$k].gif" alt="pic"/><a href="pokupka2.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Защита: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=helmetng">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=helmetng">Далее</a>';}
break;
case 'helmetd':
$dir = opendir ("MySql/base123/shop");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="golova"){
if($udata[9]<="85"){if($data[3]=="D"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="D";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/shlem/$dat_name[$k].gif" alt="pic"/><a href="pokupka2.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Защита: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=helmetd">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=helmetd">Далее</a>';}
break;
case 'helmetc':
$dir = opendir ("MySql/base123/shop");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="golova"){
if($udata[9]<="85"){if($data[3]=="C"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="C";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/shlem/$dat_name[$k].gif" alt="pic"/><a href="pokupka2.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Защита: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=helmetc">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=helmetc">Далее</a>';}
break;
case 'helmetb':
$dir = opendir ("MySql/base123/shop");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="golova"){
if($udata[9]<="85"){if($data[3]=="B"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="B";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/shlem/$dat_name[$k].gif" alt="pic"/><a href="pokupka2.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Защита: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=helmetb">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=helmetb">Далее</a>';}
break;
case 'helmeta':
$dir = opendir ("MySql/base123/shop");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="golova"){
if($udata[9]<="85"){if($data[3]=="A"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="A";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/shlem/$dat_name[$k].gif" alt="pic"/><a href="pokupka2.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Защита: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=helmeta">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=helmeta">Далее</a>';}
break;
case 'helmets':
$dir = opendir ("MySql/base123/shop");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="golova"){
if($udata[9]<="85"){if($data[3]=="S"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="S";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/shlem/$dat_name[$k].gif" alt="pic"/><a href="pokupka2.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Защита: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=helmets">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=helmets">Далее</a>';}
break;
case 'hemetgiper':
echo "<br/><b><img src="pic/shlem/Draconic Leather Helmet.gif" alt="pic"/>Super Hemet</b><br/>Защита: M+20000<br/>Цена: 10 грн (40 рублей)<br/><br/>";
echo "<a href="shops.php?$sd&go=uslugi"><b>Купить</b></a><br/>";
break;
case 'weapon':
echo"<u>Выберите тип оружия</u><br/>";
echo"[<a href="shops.php?$sd&go=me4">Мечи</a>]<br/>";
echo"[<a href="shops.php?$sd&go=bow">Луки</a>]<br/>";
echo"[<a href="shops.php?$sd&go=kastet">Кастеты</a>]<br/>";
break;
case 'me4':
echo"<u>Выберите Graid</u><br/>";
echo"[<a href="shops.php?$sd&go=me4ng">NG</a>] (до 20 ур)<br/>";
echo"[<a href="shops.php?$sd&go=me4d">D</a>] (до 40 ур)<br/>";
echo"[<a href="shops.php?$sd&go=me4c">C</a>] (до 52 ур)<br/>";
echo"[<a href="shops.php?$sd&go=me4b">B</a>] (до 62 ур)<br/>";
echo"[<a href="shops.php?$sd&go=me4a">A</a>] (до 76 ур)<br/>";
echo"[<a href="shops.php?$sd&go=me4s">S</a>] (от 76 ур)<br/>";
echo"[<a href="shops.php?$sd&go=me4giper"><font color='red'>Гипер</font></a>] (до 85 ур)<br/>";
break;
case 'me4ng':
$dir = opendir ("MySql/base123/shop");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="weapon"){
if($udata[9]<="85"){if($data[3]=="0"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="NG";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/weapon/$dat_name[$k].gif" alt="pic"/><a href="pokupka2.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Атака: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=me4ng">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=me4ng">Далее</a>';}
break;
case 'me4d':
$dir = opendir ("MySql/base123/shop");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="weapon"){
if($udata[9]<="85"){if($data[3]=="D"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="D";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/weapon/$dat_name[$k].gif" alt="pic"/><a href="pokupka2.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Атака: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=me4d">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=me4d">Далее</a>';}
break;
case 'me4c':
$dir = opendir ("MySql/base123/shop");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="weapon"){
if($udata[9]<="85"){if($data[3]=="C"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="C";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/weapon/$dat_name[$k].gif" alt="pic"/><a href="pokupka2.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Атака: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=me4c">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=me4c">Далее</a>';}
break;
case 'me4b':
$dir = opendir ("MySql/base123/shop");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="weapon"){
if($udata[9]<="85"){if($data[3]=="B"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="B";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/weapon/$dat_name[$k].gif" alt="pic"/><a href="pokupka2.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Атака: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=me4b">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=me4b">Далее</a>';}
break;
case 'me4a':
$dir = opendir ("MySql/base123/shop");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="weapon"){
if($udata[9]<="85"){if($data[3]=="A"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="A";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/weapon/$dat_name[$k].gif" alt="pic"/><a href="pokupka2.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Атака: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=me4a">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=me4a">Далее</a>';}
break;
case 'me4s':
$dir = opendir ("MySql/base123/shop");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="weapon"){
if($udata[9]<="85"){if($data[3]=="S"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="S";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/weapon/$dat_name[$k].gif" alt="pic"/><a href="pokupka2.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Атака: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=me4s">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=me4s">Далее</a>';}
break;
case 'me4giper':
echo "<br/><b><img src="pic/weapon/Dynasty Blade.gif" alt="pic"/>Super Blade</b><br/>Атака: M+20000<br/>Цена: 10 грн (40 рублей)<br/><br/>";
echo "<a href="shops.php?$sd&go=uslugi"><b>Купить</b></a><br/>";
break;
case 'bow':
echo"<u>Выберите Graid</u><br/>";
echo"[<a href="shops.php?$sd&go=bowng">NG</a>] (до 20 ур)<br/>";
echo"[<a href="shops.php?$sd&go=bowd">D</a>] (до 40 ур)<br/>";
echo"[<a href="shops.php?$sd&go=bowc">C</a>] (до 52 ур)<br/>";
echo"[<a href="shops.php?$sd&go=bowb">B</a>] (до 62 ур)<br/>";
echo"[<a href="shops.php?$sd&go=bowa">A</a>] (до 76 ур)<br/>";
echo"[<a href="shops.php?$sd&go=bows">S</a>] (от 76 ур)<br/>";
echo"[<a href="shops.php?$sd&go=bowgiper"><font color='red'>Гипер</font></a>] (до 85 ур)<br/>";
break;
case 'bowng':
$dir = opendir ("MySql/base123/shop/bow");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/bow/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="weapon"){
if($udata[9]<="85"){if($data[3]=="0"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="NG";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/weapon/$dat_name[$k].gif" alt="pic"/><a href="pokupka3.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Атака: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=bowng">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=bowng">Далее</a>';}
break;
case 'bowd':
$dir = opendir ("MySql/base123/shop/bow");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/bow/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="weapon"){
if($udata[9]<="85"){if($data[3]=="D"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="D";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/weapon/$dat_name[$k].gif" alt="pic"/><a href="pokupka3.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Атака: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=bowd">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=bowd">Далее</a>';}
break;
case 'bowc':
$dir = opendir ("MySql/base123/shop/bow");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/bow/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="weapon"){
if($udata[9]<="85"){if($data[3]=="C"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="C";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/weapon/$dat_name[$k].gif" alt="pic"/><a href="pokupka3.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Атака: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=bowc">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=bowc">Далее</a>';}
break;
case 'bowb':
$dir = opendir ("MySql/base123/shop/bow");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/bow/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="weapon"){
if($udata[9]<="85"){if($data[3]=="B"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="B";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/weapon/$dat_name[$k].gif" alt="pic"/><a href="pokupka3.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Атака: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=bowb">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=bowb">Далее</a>';}
break;
case 'bowa':
$dir = opendir ("MySql/base123/shop/bow");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/bow/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="weapon"){
if($udata[9]<="85"){if($data[3]=="A"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="A";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/weapon/$dat_name[$k].gif" alt="pic"/><a href="pokupka3.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Атака: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=bowa">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=bowa">Далее</a>';}
break;
case 'bows':
$dir = opendir ("MySql/base123/shop/bow");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/bow/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="weapon"){
if($udata[9]<="85"){if($data[3]=="S"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="S";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/weapon/$dat_name[$k].gif" alt="pic"/><a href="pokupka3.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Атака: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=bows">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=bows">Далее</a>';}
break;
case 'bowgiper':
echo "<br/><b><img src="pic/weapon/Draconic Bow.gif" alt="pic"/>Super Dragon Bow</b><br/>Атака: M+20000<br/>Цена: 10 грн (40 рублей)<br/><br/>";
echo "<a href="shops.php?$sd&go=uslugi"><b>Купить</b></a><br/>";
break;
case 'kastet':
echo"<u>Выберите Graid</u><br/>";
echo"[<a href="shops.php?$sd&go=kastetng">NG</a>] (до 20 ур)<br/>";
echo"[<a href="shops.php?$sd&go=kastetd">D</a>] (до 40 ур)<br/>";
echo"[<a href="shops.php?$sd&go=kastetc">C</a>] (до 52 ур)<br/>";
echo"[<a href="shops.php?$sd&go=kastetb">B</a>] (до 62 ур)<br/>";
echo"[<a href="shops.php?$sd&go=kasteta">A</a>] (до 76 ур)<br/>";
echo"[<a href="shops.php?$sd&go=kastets">S</a>] (от 76 ур)<br/>";
echo"[<a href="shops.php?$sd&go=kastetgiper"><font color='red'>Гипер</font></a>] (до 85 ур)<br/>";
break;
case 'kastetng':
$dir = opendir ("MySql/base123/shop/kastet");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/kastet/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="weapon"){
if($udata[9]<="85"){if($data[3]=="0"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="NG";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/weapon/$dat_name[$k].gif" alt="pic"/><a href="pokupka4.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Атака: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=kastetng">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=kastetng">Далее</a>';}
break;
case 'kastetd':
$dir = opendir ("MySql/base123/shop/kastet");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/kastet/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="weapon"){
if($udata[9]<="85"){if($data[3]=="D"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="D";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/weapon/$dat_name[$k].gif" alt="pic"/><a href="pokupka4.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Атака: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=kastetd">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=kastetd">Далее</a>';}
break;
case 'kastetc':
$dir = opendir ("MySql/base123/shop/kastet");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/kastet/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="weapon"){
if($udata[9]<="85"){if($data[3]=="C"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="C";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/weapon/$dat_name[$k].gif" alt="pic"/><a href="pokupka4.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Атака: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=kastetc">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=kastetc">Далее</a>';}
break;
case 'kastetb':
$dir = opendir ("MySql/base123/shop/kastet");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/kastet/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="weapon"){
if($udata[9]<="85"){if($data[3]=="B"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="B";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/weapon/$dat_name[$k].gif" alt="pic"/><a href="pokupka4.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Атака: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=kastetb">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=kastetb">Далее</a>';}
break;
case 'kasteta':
$dir = opendir ("MySql/base123/shop/kastet");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/kastet/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="weapon"){
if($udata[9]<="85"){if($data[3]=="A"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="A";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/weapon/$dat_name[$k].gif" alt="pic"/><a href="pokupka4.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Атака: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=kasteta">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=kasteta">Далее</a>';}
break;
case 'kastets':
$dir = opendir ("MySql/base123/shop/kastet");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/kastet/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="weapon"){
if($udata[9]<="85"){if($data[3]=="S"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="S";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/weapon/$dat_name[$k].gif" alt="pic"/><a href="pokupka4.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Атака: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=kastets">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=kastets">Далее</a>';}
break;
case 'kastetgiper':
echo "<br/><b><img src="pic/weapon/Demon Splinter.gif" alt="pic"/>Super Magic Splinter</b><br/>Атака: M+20000<br/>Цена: 10 грн (40 рублей)<br/><br/>";
echo "<a href="shops.php?$sd&go=uslugi"><b>Купить</b></a><br/>";
break;
case 'uslugi':
echo "<b><font color='red'>Заказ Гипер-Шмота</font></b><br/>Чтобы приобрести одну из гипер вещей, отправьте <font color='red'>10 грн (40 рублей)</font>, в примечание отправки денег укажите вещь и свой ник. Например: <b>Перчатки $log</b><br/><br/>Если хотите несколько вещей заказать, пишите их через , Например: <b>Перчатки,Сапоги $log</b><br/><br/>Деньги принимаються только на WM-Кошельки.<br/><b>Для Украины: U403469496038<br/>Для Росии: R164403678715</b><br/>";
break;
case 'prikras':
echo"<u>Выберите Graid</u><br/>";
echo"[<a href="shops.php?$sd&go=prikrasng">NG</a>] (до 20 ур)<br/>";
echo"[<a href="shops.php?$sd&go=prikrasd">D</a>] (до 40 ур)<br/>";
echo"[<a href="shops.php?$sd&go=prikrasc">C</a>] (до 52 ур)<br/>";
echo"[<a href="shops.php?$sd&go=prikrasb">B</a>] (до 62 ур)<br/>";
echo"[<a href="shops.php?$sd&go=prikrasa">A</a>] (до 76 ур)<br/>";
echo"[<a href="shops.php?$sd&go=prikrass">S</a>] (от 76 ур)<br/>";
echo"[<a href="shops.php?$sd&go=prikrasgiper"><font color='red'>Гипер</font></a>] (до 85 ур)<br/>";
break;
case 'prikrasng':
$dir = opendir ("MySql/base123/shop");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="ykr"){
if($udata[9]<="85"){if($data[3]=="0"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="NG";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/ykr/$dat_name[$k].gif" alt="pic"/><a href="pokupka2.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Защита: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=prikrasng">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=prikrasng">Далее</a>';}
break;
case 'prikrasd':
$dir = opendir ("MySql/base123/shop");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="ykr"){
if($udata[9]<="85"){if($data[3]=="D"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="D";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/ykr/$dat_name[$k].gif" alt="pic"/><a href="pokupka2.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Защита: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=prikrasd">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=prikrasd">Далее</a>';}
break;
case 'prikrasc':
$dir = opendir ("MySql/base123/shop");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="ykr"){
if($udata[9]<="85"){if($data[3]=="C"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="C";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/ykr/$dat_name[$k].gif" alt="pic"/><a href="pokupka2.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Защита: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=prikrasc">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=prikrasc">Далее</a>';}
break;
case 'prikrasb':
$dir = opendir ("MySql/base123/shop");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="ykr"){
if($udata[9]<="85"){if($data[3]=="B"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="B";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/ykr/$dat_name[$k].gif" alt="pic"/><a href="pokupka2.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Защита: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=prikrasb">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=prikrasb">Далее</a>';}
break;
case 'prikrasa':
$dir = opendir ("MySql/base123/shop");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="ykr"){
if($udata[9]<="85"){if($data[3]=="A"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="A";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/ykr/$dat_name[$k].gif" alt="pic"/><a href="pokupka2.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Защита: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=prikrasa">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=prikrasa">Далее</a>';}
break;
case 'prikrass':
$dir = opendir ("MySql/base123/shop");
while ($file = readdir ($dir))
{if (( $file != ".") && ($file != ".."))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = @file("MySql/base123/shop/$a[$i]");
$data = explode(":||:",$tex[0]);
$a[$i]=str_replace(".dat","",$a[$i]);
if($data[2]=="ykr"){
if($udata[9]<="85"){if($data[3]=="S"){
$dat_id[]=$a[$i];
$dat_cena[]=$data[1];
$dat_sila[]=$data[0];
$dat_gr[]="S";
$dat_name[]=$data[4];}}
}
}
foreach($dat_name as $k=>$v)
{
$gr[]=$dat_gr[$k];
$dat_screen[]="<b><img src="pic/ykr/$dat_name[$k].gif" alt="pic"/><a href="pokupka2.php?$sd&vesh=$dat_id[$k]&gorod=$udata[20]">$dat_name[$k]</a></b><br/>Защита: M+$dat_sila[$k]<br/>Цена: ".number_format($dat_cena[$k])." аден<br/>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<a href="shops.php?start='.($start - 10).'&'.$sd.'&go=prikrass">Назад</a>';}
if ($total > $start + 10) {echo '<a href="shops.php?start='.($start + 10).'&'.$sd.'&go=prikrass">Далее</a>';}
break;
case 'prikrasgiper':
echo "<br/><b><img src="pic/ykr/The Lords Crown.gif" alt="pic"/>Lord of Worlds</b><br/>Защита: M+20000<br/>Цена: 10 грн (40 рублей)<br/><br/>";
echo "<a href="shops.php?$sd&go=uslugi"><b>Купить</b></a><br/>";
break;
}
}else{echo"Пароль или логин неверен!";}
include_once"include/down.php";
?>