Файл: obmen_nucky.php
Строк: 828
<?php
include ("niz/head.php");
include ("db_bse/bssest.php");
$g=mysql_query("SELECT * FROM `turaga_pers` WHERE `nick`='$nick' AND `pass`='$pass' LIMIT 1");
if(mysql_num_rows($g)==1){
include ("niz/verh.php");
if($rang=='byturka_1')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/byturka/buturka_1.gif" height=16 width=16 alt="*"/> из бутырки!';
if($rang=='byturka_2')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/byturka/buturka_2.gif" height=16 width=16 alt="*"/> из бутырки!';
if($rang=='byturka_3')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/byturka/buturka_3.gif" height=16 width=16 alt="*"/> из бутырки!';
if($rang=='byturka_4')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/byturka/buturka_4.gif" height=16 width=16 alt="*"/> из бутырки!';
if($rang=='byturka_5')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/byturka/buturka_5.gif" height=16 width=16 alt="*"/> из бутырки!';
if($rang=='byturka_6')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/byturka/buturka_6.gif" height=16 width=16 alt="*"/> из бутырки!';
if($rang=='byturka_7')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/byturka/buturka_7.gif" height=16 width=16 alt="*"/> из бутырки!';
if($rang=='kresty_1')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/kresty/kresty_1.gif" height=16 width=16 alt="*"/> Кресты!';
if($rang=='kresty_2')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/kresty/kresty_2.gif" height=16 width=16 alt="*"/> Кресты!';
if($rang=='kresty_3')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/kresty/kresty_3.gif" height=16 width=16 alt="*"/> Кресты!';
if($rang=='kresty_4')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/kresty/kresty_4.gif" height=16 width=16 alt="*"/> Кресты!';
if($rang=='kresty_5')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/kresty/kresty_5.gif" height=16 width=16 alt="*"/> Кресты!';
if($rang=='kresty_6')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/kresty/kresty_6.gif" height=16 width=16 alt="*"/> Кресты!';
if($rang=='kresty_7')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/kresty/kresty_7.gif" height=16 width=16 alt="*"/> Кресты!';
if($rang=='central_1')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/central/central_1.gif" height=16 width=16 alt="*"/> Владимирский централ!';
if($rang=='central_2')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/central/central_2.gif" height=16 width=16 alt="*"/> Владимирский централ!';
if($rang=='central_3')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/central/central_3.gif" height=16 width=16 alt="*"/> Владимирский централ!';
if($rang=='central_4')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/central/central_4.gif" height=16 width=16 alt="*"/> Владимирский централ!';
if($rang=='central_5')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/central/central_5.gif" height=16 width=16 alt="*"/> Владимирский централ!';
if($rang=='central_6')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/central/central_6.gif" height=16 width=16 alt="*"/> Владимирский централ!';
if($rang=='central_7')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/central/central_7.gif" height=16 width=16 alt="*"/> Владимирский централ!';
if($rang=='presnya_1')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/presnya/presnya_1.gif" height=16 width=16 alt="*"/> Красная пресня!';
if($rang=='presnya_2')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/presnya/presnya_2.gif" height=16 width=16 alt="*"/> Красная пресня!';
if($rang=='presnya_3')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/presnya/presnya_3.gif" height=16 width=16 alt="*"/> Красная пресня!';
if($rang=='presnya_4')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/presnya/presnya_4.gif" height=16 width=16 alt="*"/> Красная пресня!';
if($rang=='presnya_5')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/presnya/presnya_5.gif" height=16 width=16 alt="*"/> Красная пресня!';
if($rang=='presnya_6')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/presnya/presnya_6.gif" height=16 width=16 alt="*"/> Красная пресня!';
if($rang=='presnya_7')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/presnya/presnya_7.gif" height=16 width=16 alt="*"/> Красная пресня!';
if($rang=='matros_1')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/matros/matros_1.gif" height=16 width=16 alt="*"/> Матросская тишина!';
if($rang=='matros_2')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/matros/matros_2.gif" height=16 width=16 alt="*"/> Матросская тишина!';
if($rang=='matros_3')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/matros/matros_3.gif" height=16 width=16 alt="*"/> Матросская тишина!';
if($rang=='matros_4')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/matros/matros_4.gif" height=16 width=16 alt="*"/> Матросская тишина!';
if($rang=='matros_5')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/matros/matros_5.gif" height=16 width=16 alt="*"/> Матросская тишина!';
if($rang=='matros_6')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/matros/matros_6.gif" height=16 width=16 alt="*"/> Матросская тишина!';
if($rang=='matros_7')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/matros/matros_7.gif" height=16 width=16 alt="*"/> Матросская тишина!';
if($rang=='patyak_1')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/patyak/patyak_1.gif" height=16 width=16 alt="*"/> Вологодский пятак!';
if($rang=='patyak_2')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/patyak/patyak_2.gif" height=16 width=16 alt="*"/> Вологодский пятак!';
if($rang=='patyak_3')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/patyak/patyak_3.gif" height=16 width=16 alt="*"/> Вологодский пятак!';
if($rang=='patyak_4')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/patyak/patyak_4.gif" height=16 width=16 alt="*"/> Вологодский пятак!';
if($rang=='patyak_5')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/patyak/patyak_5.gif" height=16 width=16 alt="*"/> Вологодский пятак!';
if($rang=='patyak_6')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/patyak/patyak_6.gif" height=16 width=16 alt="*"/> Вологодский пятак!';
if($rang=='patyak_7')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/patyak/patyak_7.gif" height=16 width=16 alt="*"/> Вологодский пятак!';
if($rang=='lebed_1')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/lebed/lebed_1.gif" height=16 width=16 alt="*"/> Белый лебедь!';
if($rang=='lebed_2')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/lebed/lebed_2.gif" height=16 width=16 alt="*"/> Белый лебедь!';
if($rang=='lebed_3')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/lebed/lebed_3.gif" height=16 width=16 alt="*"/> Белый лебедь!';
if($rang=='lebed_4')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/lebed/lebed_4.gif" height=16 width=16 alt="*"/> Белый лебедь!';
if($rang=='lebed_5')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/lebed/lebed_5.gif" height=16 width=16 alt="*"/> Белый лебедь!';
if($rang=='lebed_6')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/lebed/lebed_6.gif" height=16 width=16 alt="*"/> Белый лебедь!';
if($rang=='lebed_7')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/lebed/lebed_7.gif" height=16 width=16 alt="*"/> Белый лебедь!';
if($rang=='orlov_1')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/orlov/orlov_1.gif" height=16 width=16 alt="*"/> Орловский централ!';
if($rang=='orlov_2')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/orlov/orlov_2.gif" height=16 width=16 alt="*"/> Орловский централ!';
if($rang=='orlov_3')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/orlov/orlov_3.gif" height=16 width=16 alt="*"/> Орловский централ!';
if($rang=='orlov_4')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/orlov/orlov_4.gif" height=16 width=16 alt="*"/> Орловский централ!';
if($rang=='orlov_5')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/orlov/orlov_5.gif" height=16 width=16 alt="*"/> Орловский централ!';
if($rang=='orlov_6')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/orlov/orlov_6.gif" height=16 width=16 alt="*"/> Орловский централ!';
if($rang=='orlov_7')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/orlov/orlov_7.gif" height=16 width=16 alt="*"/> Орловский централ!';
if($rang=='delfin_1')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/delfin/delfin_1.gif" height=16 width=16 alt="*"/> Чёрный дельфин!';
if($rang=='delfin_2')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/delfin/delfin_2.gif" height=16 width=16 alt="*"/> Чёрный дельфин!';
if($rang=='delfin_3')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/delfin/delfin_3.gif" height=16 width=16 alt="*"/> Чёрный дельфин!';
if($rang=='delfin_4')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/delfin/delfin_4.gif" height=16 width=16 alt="*"/> Чёрный дельфин!';
if($rang=='delfin_5')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/delfin/delfin_5.gif" height=16 width=16 alt="*"/> Чёрный дельфин!';
if($rang=='delfin_6')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/delfin/delfin_6.gif" height=16 width=16 alt="*"/> Чёрный дельфин!';
if($rang=='delfin_7')$n='<b>'.$_POST[kol].'</b> ныч(чек) <img src="/pictures/nycky/delfin/delfin_7.gif" height=16 width=16 alt="*"/> Чёрный дельфин!';
switch($_GET[mod]){
default:
echo "<font color=gold><i>Бутырка:</i></font> <img src='/pictures/nycky/byturka/buturka_1.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=byturka_1'>".number_format ($vps[byturka_1])."</a></sup> ";
echo "<img src='/pictures/nycky/byturka/buturka_2.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=byturka_2'>".number_format ($vps[byturka_2])."</a></sup> ";
echo "<img src='/pictures/nycky/byturka/buturka_3.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=byturka_3'>".number_format ($vps[byturka_3])."</a></sup> ";
echo "<img src='/pictures/nycky/byturka/buturka_4.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=byturka_4'>".number_format ($vps[byturka_4])."</a></sup> ";
echo "<img src='/pictures/nycky/byturka/buturka_5.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=byturka_5'>".number_format ($vps[byturka_5])."</a></sup> ";
echo "<img src='/pictures/nycky/byturka/buturka_6.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=byturka_6'>".number_format ($vps[byturka_6])."</a></sup> ";
echo "<img src='/pictures/nycky/byturka/buturka_7.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=byturka_7'>".number_format ($vps[byturka_7])."</a></sup> ";
echo '<div class="bts"></div>';
echo "<font color=gold><i>Кресты:</i></font> <img src='/pictures/nycky/kresty/kresty_1.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=kresty_1'>".number_format ($vps[kresty_1])."</a></sup> ";
echo "<img src='/pictures/nycky/kresty/kresty_2.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=kresty_2'>".number_format ($vps[kresty_2])."</a></sup> ";
echo "<img src='/pictures/nycky/kresty/kresty_3.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=kresty_3'>".number_format ($vps[kresty_3])."</a></sup> ";
echo "<img src='/pictures/nycky/kresty/kresty_4.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=kresty_4'>".number_format ($vps[kresty_4])."</a></sup> ";
echo "<img src='/pictures/nycky/kresty/kresty_5.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=kresty_5'>".number_format ($vps[kresty_5])."</a></sup> ";
echo "<img src='/pictures/nycky/kresty/kresty_6.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=kresty_6'>".number_format ($vps[kresty_6])."</a></sup> ";
echo "<img src='/pictures/nycky/kresty/kresty_7.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=kresty_7'>".number_format ($vps[kresty_7])."</a></sup> ";
echo "<div class='bts'></div>";
echo "<font color=gold><i>Владимирский централ:</i></font> <img src='/pictures/nycky/central/central_1.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=central_1'>".number_format ($vps[central_1])."</a></sup> ";
echo "<img src='/pictures/nycky/central/central_2.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=central_2'>".number_format ($vps[central_2])."</a></sup> ";
echo "<img src='/pictures/nycky/central/central_3.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=central_3'>".number_format ($vps[central_3])."</a></sup> ";
echo "<img src='/pictures/nycky/central/central_4.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=central_4'>".number_format ($vps[central_4])."</a></sup> ";
echo "<img src='/pictures/nycky/central/central_5.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=central_5'>".number_format ($vps[central_5])."</a></sup> ";
echo "<img src='/pictures/nycky/central/central_6.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=central_6'>".number_format ($vps[central_6])."</a></sup> ";
echo "<img src='/pictures/nycky/central/central_7.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=central_7'>".number_format ($vps[central_7])."</a></sup> ";
echo "<div class='bts'></div>";
echo "<font color=gold><i>Красная пресня:</i></font> <img src='/pictures/nycky/presnya/presnya_1.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=presnya_1'>".number_format ($vps[presnya_1])."</a></sup> ";
echo "<img src='/pictures/nycky/presnya/presnya_2.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=presnya_2'>".number_format ($vps[presnya_2])."</a></sup> ";
echo "<img src='/pictures/nycky/presnya/presnya_3.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=presnya_3'>".number_format ($vps[presnya_3])."</a></sup> ";
echo "<img src='/pictures/nycky/presnya/presnya_4.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=presnya_4'>".number_format ($vps[presnya_4])."</a></sup> ";
echo "<img src='/pictures/nycky/presnya/presnya_5.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=presnya_5'>".number_format ($vps[presnya_5])."</a></sup> ";
echo "<img src='/pictures/nycky/presnya/presnya_6.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=presnya_6'>".number_format ($vps[presnya_6])."</a></sup> ";
echo "<img src='/pictures/nycky/presnya/presnya_7.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=presnya_7'>".number_format ($vps[presnya_7])."</a></sup> ";
echo "<div class='bts'></div>";
echo "<font color=gold><i>Матросская тишина:</i></font> <img src='/pictures/nycky/matros/matros_1.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=matros_1'>".number_format ($vps[matros_1])."</a></sup> ";
echo "<img src='/pictures/nycky/matros/matros_2.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=matros_2'>".number_format ($vps[matros_2])."</a></sup> ";
echo "<img src='/pictures/nycky/matros/matros_3.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=matros_3'>".number_format ($vps[matros_3])."</a></sup> ";
echo "<img src='/pictures/nycky/matros/matros_4.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=matros_4'>".number_format ($vps[matros_4])."</a></sup> ";
echo "<img src='/pictures/nycky/matros/matros_5.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=matros_5'>".number_format ($vps[matros_5])."</a></sup> ";
echo "<img src='/pictures/nycky/matros/matros_6.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=matros_6'>".number_format ($vps[matros_6])."</a></sup> ";
echo "<img src='/pictures/nycky/matros/matros_7.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=matros_7'>".number_format ($vps[matros_7])."</a></sup> ";
echo "<div class='bts'></div>";
echo "<font color=gold><i>Вологодский пятак:</i></font> <img src='/pictures/nycky/patyak/patyak_1.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=patyak_1'>".number_format ($vps[patyak_1])."</a></sup> ";
echo "<img src='/pictures/nycky/patyak/patyak_2.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=patyak_2'>".number_format ($vps[patyak_2])."</a></sup> ";
echo "<img src='/pictures/nycky/patyak/patyak_3.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=patyak_3'>".number_format ($vps[patyak_3])."</a></sup> ";
echo "<img src='/pictures/nycky/patyak/patyak_4.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=patyak_4'>".number_format ($vps[patyak_4])."</a></sup> ";
echo "<img src='/pictures/nycky/patyak/patyak_5.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=patyak_5'>".number_format ($vps[patyak_5])."</a></sup> ";
echo "<img src='/pictures/nycky/patyak/patyak_6.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=patyak_6'>".number_format ($vps[patyak_6])."</a></sup> ";
echo "<img src='/pictures/nycky/patyak/patyak_7.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=patyak_7'>".number_format ($vps[patyak_7])."</a></sup> ";
echo "<div class='bts'></div>";
echo "<font color=gold><i>Белый лебедь:</i></font> <img src='/pictures/nycky/lebed/lebed_1.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=lebed_1'>".number_format ($vps[lebed_1])."</a></sup> ";
echo "<img src='/pictures/nycky/lebed/lebed_2.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=lebed_2'>".number_format ($vps[lebed_2])."</a></sup> ";
echo "<img src='/pictures/nycky/lebed/lebed_3.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=lebed_3'>".number_format ($vps[lebed_3])."</a></sup> ";
echo "<img src='/pictures/nycky/lebed/lebed_4.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=lebed_4'>".number_format ($vps[lebed_4])."</a></sup> ";
echo "<img src='/pictures/nycky/lebed/lebed_5.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=lebed_5'>".number_format ($vps[lebed_5])."</a></sup> ";
echo "<img src='/pictures/nycky/lebed/lebed_6.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=lebed_6'>".number_format ($vps[lebed_6])."</a></sup> ";
echo "<img src='/pictures/nycky/lebed/lebed_7.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=lebed_7'>".number_format ($vps[lebed_7])."</a></sup> ";
echo "<div class='bts'></div>";
echo "<font color=gold><i>Орловский централ:</i></font> <img src='/pictures/nycky/orlov/orlov_1.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=orlov_1'>".number_format ($vps[orlov_1])."</a></sup> ";
echo "<img src='/pictures/nycky/orlov/orlov_2.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=orlov_2'>".number_format ($vps[orlov_2])."</a></sup> ";
echo "<img src='/pictures/nycky/orlov/orlov_3.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=orlov_3'>".number_format ($vps[orlov_3])."</a></sup> ";
echo "<img src='/pictures/nycky/orlov/orlov_4.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=orlov_4'>".number_format ($vps[orlov_4])."</a></sup> ";
echo "<img src='/pictures/nycky/orlov/orlov_5.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=orlov_5'>".number_format ($vps[orlov_5])."</a></sup> ";
echo "<img src='/pictures/nycky/orlov/orlov_6.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=orlov_6'>".number_format ($vps[orlov_6])."</a></sup> ";
echo "<img src='/pictures/nycky/orlov/orlov_7.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=orlov_7'>".number_format ($vps[orlov_7])."</a></sup> ";
echo "<div class='bts'></div>";
echo "<font color=gold><i>Чёрный дельфин:</i></font> <img src='/pictures/nycky/delfin/delfin_1.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=delfin_1'>".number_format ($vps[delfin_1])."</a></sup> ";
echo "<img src='/pictures/nycky/delfin/delfin_2.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=delfin_2'>".number_format ($vps[delfin_2])."</a></sup> ";
echo "<img src='/pictures/nycky/delfin/delfin_3.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=delfin_3'>".number_format ($vps[delfin_3])."</a></sup> ";
echo "<img src='/pictures/nycky/delfin/delfin_4.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=delfin_4'>".number_format ($vps[delfin_4])."</a></sup> ";
echo "<img src='/pictures/nycky/delfin/delfin_5.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=delfin_5'>".number_format ($vps[delfin_5])."</a></sup> ";
echo "<img src='/pictures/nycky/delfin/delfin_6.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=delfin_6'>".number_format ($vps[delfin_6])."</a></sup> ";
echo "<img src='/pictures/nycky/delfin/delfin_7.gif' height=16 width=16 alt='*'/><sup><a href='obmen_nucky.php?mod=peredacha&rang=delfin_7'>".number_format ($vps[delfin_7])."</a></sup> ";
break;
case 'peredacha':
if($rang!=byturka_1 && $rang!=byturka_2 && $rang!=byturka_3 && $rang!=byturka_4 && $rang!=byturka_5 && $rang!=byturka_6 && $rang!=byturka_7 && $rang!=kresty_1 && $rang!=kresty_2 && $rang!=kresty_3 && $rang!=kresty_4 && $rang!=kresty_5 && $rang!=kresty_6 && $rang!=kresty_7 && $rang!=central_1 && $rang!=central_2 && $rang!=central_3 && $rang!=central_4 && $rang!=central_5 && $rang!=central_6 && $rang!=central_7 && $rang!=presnya_1 && $rang!=presnya_2 && $rang!=presnya_3 && $rang!=presnya_4 && $rang!=presnya_5 && $rang!=presnya_6 && $rang!=presnya_7 && $rang!=matros_1 && $rang!=matros_2 && $rang!=matros_3 && $rang!=matros_4 && $rang!=matros_5 && $rang!=matros_6 && $rang!=matros_7 && $rang!=patyak_1 && $rang!=patyak_2 && $rang!=patyak_3 && $rang!=patyak_4 && $rang!=patyak_5 && $rang!=patyak_6 && $rang!=patyak_7 && $rang!=lebed_1 && $rang!=lebed_2 && $rang!=lebed_3 && $rang!=lebed_4 && $rang!=lebed_5 && $rang!=lebed_6 && $rang!=lebed_7 && $rang!=orlov_1 && $rang!=orlov_2 && $rang!=orlov_3 && $rang!=orlov_4 && $rang!=orlov_5 && $rang!=orlov_6 && $rang!=orlov_7 && $rang!=delfin_1 && $rang!=delfin_2 && $rang!=delfin_3 && $rang!=delfin_4 && $rang!=delfin_5 && $rang!=delfin_6 && $rang!=delfin_7){
echo'Ошибка!';
include ("niz/niz.php");
exit;
}
if(empty($_POST[kol])){
echo "<form action="obmen_nucky.php?mod=peredacha&rang=$rang" method="post">";
echo"Кому отправляем:<br/>";
echo"<input class='input' type="text" size="20" name="name" maxlength="32"/><br/>";
echo "Сколько?<br/>";
echo "<input name="kol" maxlength="20" title="name"/><br/>";
echo '<input type="submit" value="Передать" /></form>';
}else{
$name=htmlspecialchars($_POST[name]);
$req = mysql_query("SELECT * FROM `turaga_pers` WHERE `nick` = '$name'");
////////////////////////////
$avto=mysql_num_rows($req);
$inv = mysql_fetch_array($req);
if($avto=="0"){
echo'Нет такого персонажа!<br/>';
include ("niz/niz.php");
exit;
}
$log=$nick;
if($name==$log){
echo'Себе отправлять нычки нельзя!<br/>';
include ("niz/niz.php");
exit;
}
if($_POST[kol]<=0){echo'Ошибка!';
include ("niz/niz.php");
exit;}
if(eregi("[^0-9]",$_POST[kol])){echo"Вводите число, а не буквы...";
include ("niz/niz.php");
exit;}
if($_POST[kol]>$vps[$rang]){echo"У вас нет столько нычек!";
include ("niz/niz.php");
exit;}
mysql_query("UPDATE `turaga_nucky` SET `$rang` = `$rang` - '".intval($_POST['kol'])."' WHERE `nick` = '$nick'");
mysql_query("UPDATE `turaga_nucky` SET `$rang` = `$rang` + '".intval($_POST['kol'])."' WHERE `nick` = '$name'");
$time = date("H:i d.m.y");
$text = "Персонаж $v[nick] передал вам $n";
mysql_query("INSERT INTO `turaga_jurnal` SET `nick` = '$name', `time` = '$time', `text` = '$text'");
$time2 = date("H:i d.m.y");
$text2 = "У вас есть новые события в Журнале!";
mysql_query("INSERT INTO `turaga_r` SET `user_from` = 'System', `user_to` = '$name', `time` = '$time2', `read` = 1, `mail_msg` = '$text2'");
echo"Вы успешно отправили персонажу: <b>$name</b>, $n";
}
}
}else{
echo "Пройдите авторизацию!";
echo "<hr><a href="index.php">На главную</a>";
}
include ("niz/niz.php");
?>