<? 
if (isset($_COOKIE['p'])) {
echo "";
}
else {
$kick = time()+615360000;
SetCookie('p',$p,$kick);}


if ($seva == seva) {
echo "test";
}
else {?>
<? include "base.php"; ?>
<?

$result = mysql_query ("select * from loto_admin_design2 where id=1" ,$cnct);$data=mysql_fetch_object($result);$data->top=preg_replace("/(<\?\W*include\W*)(\w*\.?\w*)(\W*\s*\W*\?>)/eim","implode('', file('\\2'))",$data->top);echo $data->top;
?>

<table border="0" width="180" cellspacing="1" cellpadding="5" align="center" bgcolor="#386297">
  <tr>
    <td bgcolor="#386297" align="left" width="180"class="menutop">
      <b> Статистика</b>
    </td>
  </tr>
  <tr>
    <td bgcolor="#EDF0F5" align="justify" valign="top" height="50" class="text">

<? echo '
Куплено билетов: <b><font color=black>';
$result=mysql_query("select * from superloto",$cnct);
$stat1 = mysql_num_rows($result);
echo $stat1; ?></b> 
<br>
Сыграло игроков:
<b>
<? 
$result=mysql_query("SELECT COUNT(DISTINCT ACCOUNT) as cnt FROM superloto",$cnct);
$arr=mysql_fetch_array($result);
$stat2=$arr["cnt"];
echo $stat2; ?></b> чел.

<font color=>
<?  echo '<font color=black>
Выигрышей на: <b><font color=black>';
$result=mysql_query("select SUM(AMMOUNT) as samm from superloto where STATE='win'",$cnct);
$arr=mysql_fetch_array($result);
$stat2=$arr["samm"];
echo $stat2; ?></b>wmz<br><font color=black>

Джек-пот: 
<b><font color=red>
<? 
$dateiname = "pot.txt";
$fp = fopen($dateiname, "r");
while ( ! feof ($fp) ) {
	$zeile = fgets ($fp,1024);
}
echo $zeile;
?></b><font color=black>wmz <BR>
<font color=black> Сейчас на сайте: <script language="javascript" src="http://cool-wm.ru/users/"></script> игроков<br>



    </td>
  </tr>
</table><BR>

<table border="0" width="180" cellspacing="1" cellpadding="5" align="center" bgcolor="#386297">
  <tr>
    <td bgcolor="#386297" align="left" width="180"class="menutop">
      <b> Самые активные игроки</b>
    </td>
  </tr>
  <tr>
    <td bgcolor="#EDF0F5" align="justify" valign="top" height="50" class="text">В конце каждого месяца самые активные игроки получат призы!<br>
Рейтинг игроков:<br>
<?
$result=mysql_query("select ACCOUNT, count(ACCOUNT) as cip from `superloto` group by ACCOUNT order by cip desc",$cnct);
for ($i=0;$i<3;$i++){
  $data=mysql_fetch_object($result);
echo "<font size=2><b>";
  echo ($i+1).'.</b></font> '.$data->ACCOUNT.' - <font color=black><b>'.$data->cip.'</b> раз</font> <br>';
}
?>
</td>
  </tr>
</table><BR>
    </td>
    <td bgcolor="#FFFFFF" align="center" valign="top">


<table border="0" width="100%" cellspacing="10" cellpadding="0" align="center">
  <tr>
    <td bgcolor="#FFFFFF" align="center">


<? 
include "confa2.php";





if ($type == webmoney and $num == 1) { 




$result = mysql_query ("select * from loto_admin_design2 where id=3" ,$cnct);$data=mysql_fetch_object($result);$data->top=preg_replace("/(<\?\W*include\W*)(\w*\.?\w*)(\W*\s*\W*\?>)/eim","implode('', file('\\2'))",$data->top);echo $data->top;



echo '



                  <FORM action=https://merchant.webmoney.ru/lmi/payment.asp method=post name=bolshe><center><span class=n>
                     '; srand((double)microtime()*1000000);
$chislo  = rand(2, 99); print "<center><span class=n><font size=3>Текущее число: <b><font color=#365A7F>$chislo</font>";








 print '</font></b><BR>
                        <BR>
                        <INPUT name=state type=radio value=1 checked>
                        Больше
                     или
                        Меньше    <INPUT name=state type=radio value=2><BR>
                        <center><span class=n><br>
                    
                        
<input type="hidden" name="num" value="1">
<input type="hidden" name="chislo" value="'; echo $chislo; print '">
<input type="hidden" name="p" value="'; echo $p; print '">
<input type="hidden" name="LMI_PAYEE_PURSE" value="'; print "$purseZ"; print '"><br>
                        <INPUT name=LMI_PAYMENT_DESC type=hidden value="Лотерея Больше/меньше">
                  
                  <TABLE cellSpacing=1 cellPadding=4 width=268 align=center 
                  bgColor=#f5f5fa border=0>
                    <TBODY>
                    <TR>
                      <TD width=78 bgColor=white>
                        <P align=left><B>ставка: </B></P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>0.10wmz</P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>0.20wmz</P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>0.50wmz</P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center>1wmz</P></TD>
                      <TD width=38 bgColor=white>
                       <P align=center>3wmz</P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center>5wmz</P></TD></TR>
                    <TR>
                      <TD width=78 bgColor=white>
                        <P align=center><B>выигрыш:</B></P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>0.20wmz</P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>0.40wmz</P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>1wmz</P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center>2wmz</P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center>6wmz</P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center>10wmz</P></TD>
 <TR>
                      <TD width=78 bgColor=white>
                        <P align=center><B>выберите:</B></P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=0.10 checked></P></TD>
                      <TD width=78 bgColor=white>
                       <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=0.20></P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=0.50></P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=1></P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=3></P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=5></P></TD>
              </TBODY></TABLE>
<br>
 <input type=image src="http://cool-wm.ru/button.gif" align=center>
             
           
                       
                    </FORM>


';



if ($access == success) { echo "<a name=game>";



$result=@mysql_query ("SELECT * FROM `superloto` ORDER BY `ID` DESC"); 
$id = mysql_num_rows($result);
$que=@mysql_query ("SELECT * FROM `superloto` WHERE ID='$id'");
$que2=@mysql_fetch_array($que);
$count=$id;
$win_state=$que2[STATE];
$win_amount=$que2[AMMOUNT];
$perem=$que2[BAP];
$purse=$que2[ACCOUNT_];
$char=substr($purse,0,1);



if ($win_state == 'win'){
echo 
"<b><font class=text><font color='red'>Поздравляем вас с победой!</b></font><br>
Ваш выигрыш составил: <b><font color=green>$win_amount WM$char</font></b><br>Аккаунт: <u>$purse</u> Номер игры: <b>$count</b>";



 print "</u></font></b>";

}
if ($win_state == 'lose'){

echo "<b><font class=text><font color=red>К сожалению вы проиграли</font></b><br>Аккаунт: <u>$purse</u> Номер игры: <b>$count</b>"; print "<br> Число было: <b><font color=brown><u>"; 


if($perem == 2) {
if($state == 1) { 
echo "1";
}  
elseif($state == 2) { 
echo "3";
}  
}
elseif($perem == 99) {
if($state == 1) { 
echo "98";
}  
elseif($state == 2) { 
echo "100";
}  
}
else {
if($state == 1) { 
srand((double)microtime()*1000000);$chis  = rand(2, $perem-1); echo $chis; 
}  
elseif($state == 2) { 
srand((double)microtime()*1000000);$chis  = rand($perem+1, 99); echo $chis;
}  
}
}
print "</u></font></b>";}
elseif ($win_state == 'not'){
echo "Информации о вашей ставки нет!"; }

echo '</form>';

}


elseif ($type == webmoney and $num == 2) {
	

	
$result = mysql_query ("select * from loto_admin_design2 where id=4" ,$cnct);$data=mysql_fetch_object($result);$data->top=preg_replace("/(<\?\W*include\W*)(\w*\.?\w*)(\W*\s*\W*\?>)/eim","implode('', file('\\2'))",$data->top);echo $data->top;

print '	


                  <FORM action=https://merchant.webmoney.ru/lmi/payment.asp method=post name=bolshe><center><span class=n>
                                 <br>
<input type="hidden" name="num" value="2">
<input type="hidden" name="chislo" value="4">
<input type="hidden" name="p" value="'; echo $p; print '">
<input type="hidden" name="LMI_PAYEE_PURSE" value="'; print "$purseZ"; print '">

                      
                                      <TABLE cellSpacing=1 cellPadding=4 width=268 align=center 
                  bgColor=#f5f5fa border=0>
                    <TBODY>
                    <TR>
                      <TD width=78 bgColor=white>
                        <P align=left><B>ставка: </B></P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>0.10wmz</P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>0.20wmz</P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>0.50wmz</P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center>1wmz</P></TD>
                      <TD width=38 bgColor=white>
                       <P align=center>3wmz</P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center>5wmz</P></TD></TR>
                    <TR>
                      <TD width=78 bgColor=white>
                        <P align=center><B>выигрыш:</B></P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>0.20wmz</P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>0.40wmz</P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>1wmz</P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center>2wmz</P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center>6wmz</P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center>10wmz</P></TD>
 <TR>
                      <TD width=78 bgColor=white>
                        <P align=center><B>выберите:</B></P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=0.10 checked></P></TD>
                      <TD width=78 bgColor=white>
                       <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=0.20></P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=0.50></P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=1></P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=3></P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=5></P></TD>
              </TBODY></TABLE>
<br>
 <input type=image src="http://cool-wm.ru/button.gif" align=center>
                    </FORM>

';

if ($access == success) { echo "<a name=game>";




$result=@mysql_query ("SELECT * FROM `superloto` ORDER BY `ID` DESC"); 
$id = mysql_num_rows($result);
$que=@mysql_query ("SELECT * FROM `superloto` WHERE ID='$id'");
$que2=@mysql_fetch_array($que);
$count=$id;
$win_state=$que2[STATE];
$win_amount=$que2[AMMOUNT];
$perem=$que2[BAP];
$purse=$que2[ACCOUNT_];
$char=substr($purse,0,1);




if ($win_state == 'win'){
echo 
"<b><font class=text><font color='red'>Поздравляем вас с победой!</b></font><br>
Ваш выигрыш составил: <b><font color=green>$win_amount WM$char</font></b><br>Кошелёк: <u>$purse</u> Номер игры: <b>$count</b>
<br>Комбинация: <b>
";
if ($perem == 1) {
echo "<font color=black>WINNING</font>";
}
elseif ($perem == 2) {
echo "<font color=black>DOUBLE-WINNING</font>";
}

elseif ($perem == 3) {
echo "<font color=black>WINNING-POT</font>";
}

elseif ($perem == 4) {
echo "<font color=red>BINGO</font>";
}

elseif ($perem == 5) {
echo "<font color=red>SUPER-BINGO</font>";
}

elseif ($perem == 6) {
echo "<font color=green>JACK-POT</font>";
}
echo "</b>";






 print "</u></font></b>";

}
if ($win_state == 'lose'){

echo "<b><font class=text><font color=red>К сожалению вы проиграли</font></b><br>Кошелёк: <u>$purse</u> Номер игры: <b>$count</b>";
}
elseif ($win_state == 'not'){
echo "Информации о вашей ставки нет!"; }



echo '</form>';



}
}

if ($type == webmoney and $num == 3) { 

					
$result = mysql_query ("select * from loto_admin_design2 where id=5" ,$cnct);$data=mysql_fetch_object($result);$data->top=preg_replace("/(<\?\W*include\W*)(\w*\.?\w*)(\W*\s*\W*\?>)/eim","implode('', file('\\2'))",$data->top);echo $data->top;

print '


                  <FORM action=https://merchant.webmoney.ru/lmi/payment.asp method=post name=bolshe><center><span class=n>
                                 <br>
<input type="hidden" name="num" value="3">
<input type="hidden" name="chislo" value="4">
<input type="hidden" name="p" value="'; echo $p; print '">
<input type="hidden" name="LMI_PAYEE_PURSE" value="'; print "$purseZ"; print '">

                      
                                      <TABLE cellSpacing=1 cellPadding=4 width=268 align=center 
                  bgColor=#f5f5fa border=0>
                    <TBODY>
                    <TR>
                      <TD width=78 bgColor=white>
                        <P align=left><B>ставка: </B></P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>0.10wmz</P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>0.20wmz</P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>0.50wmz</P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center>1wmz</P></TD>
                      <TD width=38 bgColor=white>
                       <P align=center>3wmz</P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center>5wmz</P></TD></TR>
                    <TR>
                      <TD width=78 bgColor=white>
                        <P align=center><B>выигрыш:</B></P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>0.20wmz</P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>0.40wmz</P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>1wmz</P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center>2wmz</P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center>6wmz</P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center>10wmz</P></TD>
 <TR>
                      <TD width=78 bgColor=white>
                        <P align=center><B>выберите:</B></P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=0.10 checked></P></TD>
                      <TD width=78 bgColor=white>
                       <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=0.20></P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=0.50></P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=1></P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=3></P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=5></P></TD>
              </TBODY></TABLE>
<br>
 <input type=image src="http://cool-wm.ru/button.gif" align=center>
                    </FORM>

';
if ($access == success) { echo "<a name=game>";



$result=@mysql_query ("SELECT * FROM `superloto` ORDER BY `ID` DESC"); 
$id = mysql_num_rows($result);
$que=@mysql_query ("SELECT * FROM `superloto` WHERE ID='$id'");
$que2=@mysql_fetch_array($que);
$count=$id;
$win_state=$que2[STATE];
$win_amount=$que2[AMMOUNT];
$perem=$que2[BAP];
$purse=$que2[ACCOUNT_];
$char=substr($purse,0,1);



if ($win_state == 'win'){
echo 
"<b><font class=text><font color='red'>Поздравляем вас с победой!</b></font><br>
Ваш выигрыш составил: <b><font color=green>$win_amount WM$char</font></b><br>Кошелёк: <u>$purse</u> Номер игры: <b>$count</b>";



 print "</u></font></b>";

}
if ($win_state == 'lose'){

echo "<b><font class=text><font color=red>К сожалению вы проиграли</font></b><br>Кошелёк: <u>$purse</u> Номер игры: <b>$count</b>";}
elseif ($win_state == 'not'){
echo "Информации о вашей ставки нет!"; }



echo '</form>';
}
}
elseif ($type == webmoney and $num == 4) {
$result = mysql_query ("select * from loto_admin_design2 where id=6" ,$cnct);$data=mysql_fetch_object($result);$data->top=preg_replace("/(<\?\W*include\W*)(\w*\.?\w*)(\W*\s*\W*\?>)/eim","implode('', file('\\2'))",$data->top);echo $data->top;


 print '

   
                  <FORM action=https://merchant.webmoney.ru/lmi/payment.asp method=post name=bolshe><center><span class=n>
                                 <br>
<input type="hidden" name="num" value="4">
<input type="hidden" name="chislo" value="4">
<input type="hidden" name="p" value="'; echo $p; print '">
<input type="hidden" name="LMI_PAYEE_PURSE" value="'; print "$purseZ"; print '">

                      
                                      <TABLE cellSpacing=1 cellPadding=4 width=268 align=center 
                  bgColor=#f5f5fa border=0>
                    <TBODY>
                    <TR>
                      <TD width=78 bgColor=white>
                        <P align=left><B>ставка: </B></P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>0.10wmz</P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>0.20wmz</P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>0.50wmz</P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center>1wmz</P></TD>
                      <TD width=38 bgColor=white>
                       <P align=center>3wmz</P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center>5wmz</P></TD></TR>
                    <TR>
                      <TD width=78 bgColor=white>
                        <P align=center><B>выигрыш:</B></P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>0.20wmz</P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>0.40wmz</P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>1wmz</P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center>2wmz</P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center>6wmz</P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center>10wmz</P></TD>
 <TR>
                      <TD width=78 bgColor=white>
                        <P align=center><B>выберите:</B></P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=0.10 checked></P></TD>
                      <TD width=78 bgColor=white>
                       <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=0.20></P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=0.50></P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=1></P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=3></P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=5></P></TD>
              </TBODY></TABLE>
<br>
 <input type=image src="http://cool-wm.ru/button.gif" align=center>
                    </FORM>
 
';
if ($access == success) { echo "<a name=game>";


$result=@mysql_query ("SELECT * FROM `superloto` ORDER BY `ID` DESC"); 
$id = mysql_num_rows($result);
$que=@mysql_query ("SELECT * FROM `superloto` WHERE ID='$id'");
$que2=@mysql_fetch_array($que);
$count=$id;
$win_state=$que2[STATE];
$win_amount=$que2[AMMOUNT];
$perem=$que2[BAP];
$purse=$que2[ACCOUNT_];
$char=substr($purse,0,1);





if ($win_state == 'win'){
echo 
"<b><font class=text><font color='red'>Поздравляем вас с победой!</b></font><br>
Ваш выигрыш составил: <b><font color=green>$win_amount WM$char</font></b><br>Кошелёк: <u>$purse</u> Номер игры: <b>$count</b>";



 print "</u></font></b>";

}
if ($win_state == 'lose'){

echo "<b><font class=text><font color=red>К сожалению вы проиграли</font></b><br>Кошелёк: <u>$purse</u> Номер игры: <b>$count</b><br>";

if ($chislo == 1) {
echo "<img src=./images/karta_2.gif><img src=./images/karta_1.gif><img src=./images/karta_3.gif>";
}
elseif ($chislo == 2) {
echo "<img src=./images/karta_3.gif><img src=./images/karta_2.gif><img src=./images/karta_1.gif>";
}
elseif ($chislo == 3) {
echo "<img src=./images/karta_1.gif><img src=./images/karta_2.gif><img src=./images/karta_3.gif>";
}
}
elseif ($win_state == 'not'){
echo "Информации о вашей ставки нет!"; }



echo '</form>';
}
}




elseif ($type == webmoney and $num == 5) {

$result = mysql_query ("select * from loto_admin_design2 where id=7" ,$cnct);$data=mysql_fetch_object($result);$data->top=preg_replace("/(<\?\W*include\W*)(\w*\.?\w*)(\W*\s*\W*\?>)/eim","implode('', file('\\2'))",$data->top);echo $data->top;

 print '
	
			
             
                  <FORM action=https://merchant.webmoney.ru/lmi/payment.asp method=post name=bolshe><center><span class=n>
                                 <br>
<input type="hidden" name="num" value="5">
<input type="hidden" name="chislo" value="4">
<input type="hidden" name="p" value="'; echo $p; print '">
<input type="hidden" name="LMI_PAYEE_PURSE" value="'; print "$purseZ"; print '">

                      
                                      <TABLE cellSpacing=1 cellPadding=4 width=268 align=center 
                  bgColor=#f5f5fa border=0>
                    <TBODY>
                    <TR>
                      <TD width=78 bgColor=white>
                        <P align=left><B>ставка: </B></P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>0.10wmz</P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>0.20wmz</P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>0.50wmz</P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center>1wmz</P></TD>
                      <TD width=38 bgColor=white>
                       <P align=center>3wmz</P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center>5wmz</P></TD></TR>
                    <TR>
                      <TD width=78 bgColor=white>
                        <P align=center><B>выигрыш:</B></P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>0.20wmz</P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>0.40wmz</P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>1wmz</P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center>2wmz</P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center>6wmz</P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center>10wmz</P></TD>
 <TR>
                      <TD width=78 bgColor=white>
                        <P align=center><B>выберите:</B></P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=0.10 checked></P></TD>
                      <TD width=78 bgColor=white>
                       <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=0.20></P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=0.50></P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=1></P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=3></P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=5></P></TD>
              </TBODY></TABLE>
<br>
 <input type=image src="http://cool-wm.ru/button.gif" align=center>
                    </FORM>

';

if ($access == success) { echo "<a name=game>";

$result=@mysql_query ("SELECT * FROM `superloto` ORDER BY `ID` DESC"); 
$id = mysql_num_rows($result);
$que=@mysql_query ("SELECT * FROM `superloto` WHERE ID='$id'");$que2=@mysql_fetch_array($que);
$count=$id;
$win_state=$que2[STATE];
$win_amount=$que2[AMMOUNT];
$perem=$que2[BAP];
$purse=$que2[ACCOUNT_];
$char=substr($purse,0,1);





if ($win_state == 'win'){
echo 
"<b><font class=text><font color='red'>Поздравляем вас с победой!</b></font><br>
Ваш выигрыш составил: <b><font color=green>$win_amount WM$char</font></b><br>Кошелёк: <u>$purse</u> Номер игры: <b>$count</b>";


if ($perem == 1) {
echo '<br><img src="http://wmlotto.ru/cards/213.gif" width="71" height="96" border=0 alt="">
 <img src="http://wmlotto.ru/cards/113.gif" width="71" height="96" border=0 alt="">
 <img src="http://wmlotto.ru/cards/000.gif" width="71" height="96" border=0 alt="">
 <img src="http://wmlotto.ru/cards/000.gif" width="71" height="96" border=0 alt="">
 <img src="http://wmlotto.ru/cards/000.gif" width="71" height="96" border=0 alt="">';

}
elseif ($perem == 2) {
echo '<br><img src="http://wmlotto.ru/cards/208.gif" width="71" height="96" border=0 alt="">
 <img src="http://wmlotto.ru/cards/308.gif" width="71" height="96" border=0 alt="">
 <img src="http://wmlotto.ru/cards/114.gif" width="71" height="96" border=0 alt="">
 <img src="http://wmlotto.ru/cards/414.gif" width="71" height="96" border=0 alt="">
 <img src="http://wmlotto.ru/cards/000.gif" width="71" height="96" border=0 alt="">';
}
elseif ($perem == 3) {
echo ' <br><img src="http://wmlotto.ru/cards/202.gif" width="71" height="96" border=0 alt="">
 <img src="http://wmlotto.ru/cards/302.gif" width="71" height="96" border=0 alt="">
 <img src="http://wmlotto.ru/cards/102.gif" width="71" height="96" border=0 alt="">
 <img src="http://wmlotto.ru/cards/000.gif" width="71" height="96" border=0 alt="">
 <img src="http://wmlotto.ru/cards/000.gif" width="71" height="96" border=0 alt="">';
}

elseif ($perem == 4) {
echo ' <br><img src="http://wmlotto.ru/cards/208.gif" width="71" height="96" border=0 alt="">
 <img src="http://wmlotto.ru/cards/307.gif" width="71" height="96" border=0 alt="">
 <img src="http://wmlotto.ru/cards/106.gif" width="71" height="96" border=0 alt="">
 <img src="http://wmlotto.ru/cards/405.gif" width="71" height="96" border=0 alt="">
 <img src="http://wmlotto.ru/cards/304.gif" width="71" height="96" border=0 alt="">';
}
elseif ($perem == 5) {
echo ' <br> <img src="http://wmlotto.ru/cards/312.gif" width="71" height="96" border=0 alt="">
 <img src="http://wmlotto.ru/cards/311.gif" width="71" height="96" border=0 alt="">
 <img src="http://wmlotto.ru/cards/308.gif" width="71" height="96" border=0 alt="">
 <img src="http://wmlotto.ru/cards/307.gif" width="71" height="96" border=0 alt="">
 <img src="http://wmlotto.ru/cards/302.gif" width="71" height="96" border=0 alt="">';
}
elseif ($perem == 6) {
echo ' <br><img src="http://wmlotto.ru/cards/312.gif" width="71" height="96" border=0 alt="">
 <img src="http://wmlotto.ru/cards/112.gif" width="71" height="96" border=0 alt="">
 <img src="http://wmlotto.ru/cards/108.gif" width="71" height="96" border=0 alt="">
 <img src="http://wmlotto.ru/cards/208.gif" width="71" height="96" border=0 alt="">
 <img src="http://wmlotto.ru/cards/408.gif" width="71" height="96" border=0 alt="">';
}
elseif ($perem == 7) {
echo ' <br><img src="http://wmlotto.ru/cards/204.gif" width="71" height="96" border=0 alt="">
 <img src="http://wmlotto.ru/cards/404.gif" width="71" height="96" border=0 alt="">
 <img src="http://wmlotto.ru/cards/304.gif" width="71" height="96" border=0 alt="">
 <img src="http://wmlotto.ru/cards/104.gif" width="71" height="96" border=0 alt="">
 <img src="http://wmlotto.ru/cards/000.gif" width="71" height="96" border=0 alt="">';
}
elseif ($perem == 8) {
echo '<br><img src="http://wmlotto.ru/cards/211.gif" width="71" height="96" border=0 alt="">
 <img src="http://wmlotto.ru/cards/210.gif" width="71" height="96" border=0 alt="">
 <img src="http://wmlotto.ru/cards/209.gif" width="71" height="96" border=0 alt="">
 <img src="http://wmlotto.ru/cards/208.gif" width="71" height="96" border=0 alt="">
 <img src="http://wmlotto.ru/cards/207.gif" width="71" height="96" border=0 alt="">';
}
elseif ($perem == 9) {
echo '<br><img src="http://wmlotto.ru/cards/414.gif" width="71" height="96" border=0 alt="">
 <img src="http://wmlotto.ru/cards/413.gif" width="71" height="96" border=0 alt="">
 <img src="http://wmlotto.ru/cards/412.gif" width="71" height="96" border=0 alt="">
 <img src="http://wmlotto.ru/cards/411.gif" width="71" height="96" border=0 alt="">
 <img src="http://wmlotto.ru/cards/410.gif" width="71" height="96" border=0 alt="">';
}
elseif ($perem == 10) {
echo ' <br><img src="http://wmlotto.ru/cards/208.gif" width="71" height="96" border=0 alt="">
 <img src="http://wmlotto.ru/cards/408.gif" width="71" height="96" border=0 alt="">
 <img src="http://wmlotto.ru/cards/308.gif" width="71" height="96" border=0 alt="">
 <img src="http://wmlotto.ru/cards/108.gif" width="71" height="96" border=0 alt="">
 <img src="http://wmlotto.ru/cards/555.gif" width="71" height="96" border=0 alt="">';
}












echo "</b>";




 print "</u></font></b>";

}
if ($win_state == 'lose'){

echo "<b><font class=text><font color=red>К сожалению вы проиграли</font></b><br>Кошелёк: <u>$purse</u> Номер игры: <b>$count</b><br>
<img src=http://wmlotto.ru/cards/000.gif> <img src=http://wmlotto.ru/cards/213.gif> <img src=http://wmlotto.ru/cards/114.gif> <img src=http://wmlotto.ru/cards/202.gif> <img src=http://wmlotto.ru/cards/307.gif> 
";
echo '</form>';
}
}
}


elseif ($type == webmoney and $num == 6) {

$result = mysql_query ("select * from loto_admin_design2 where id=8" ,$cnct);$data=mysql_fetch_object($result);$data->top=preg_replace("/(<\?\W*include\W*)(\w*\.?\w*)(\W*\s*\W*\?>)/eim","implode('', file('\\2'))",$data->top);echo $data->top;

 print '
	
			
               
                  <FORM action=https://merchant.webmoney.ru/lmi/payment.asp method=post name=bolshe><center><span class=n>
                                 <br>
<input type="hidden" name="num" value="6">
<input type="hidden" name="chislo" value="4">
<input type="hidden" name="p" value="'; echo $p; print '">
<input type="hidden" name="LMI_PAYEE_PURSE" value="'; print "$purseZ"; print '">

                      
                                      <TABLE cellSpacing=1 cellPadding=4 width=268 align=center 
                  bgColor=#f5f5fa border=0>
                    <TBODY>
                    <TR>
                      <TD width=78 bgColor=white>
                        <P align=left><B>ставка: </B></P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>0.10wmz</P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>0.20wmz</P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>0.50wmz</P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center>1wmz</P></TD>
                      <TD width=38 bgColor=white>
                       <P align=center>3wmz</P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center>5wmz</P></TD></TR>
                    <TR>
                      <TD width=78 bgColor=white>
                        <P align=center><B>выигрыш:</B></P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>0.20wmz</P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>0.40wmz</P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>1wmz</P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center>2wmz</P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center>6wmz</P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center>10wmz</P></TD>
 <TR>
                      <TD width=78 bgColor=white>
                        <P align=center><B>выберите:</B></P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=0.10 checked></P></TD>
                      <TD width=78 bgColor=white>
                       <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=0.20></P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=0.50></P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=1></P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=3></P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=5></P></TD>
              </TBODY></TABLE>
<br>
 <input type=image src="http://cool-wm.ru/button.gif" align=center>
                    </FORM>

';

if ($access == success) { echo "<a name=game>";


$result=@mysql_query ("SELECT * FROM `superloto` ORDER BY `ID` DESC"); 
$id = mysql_num_rows($result);
$que=@mysql_query ("SELECT * FROM `superloto` WHERE ID='$id'");
$que2=@mysql_fetch_array($que);
$count=$id;
$win_state=$que2[STATE];
$win_amount=$que2[AMMOUNT];
$perem=$que2[BAP];
$purse=$que2[ACCOUNT_];
$char=substr($purse,0,1);





if ($win_state == 'win'){
echo 
"<b><font class=text><font color='red'>Поздравляем вас с победой!</b></font><br>
Ваш выигрыш составил: <b><font color=green>$win_amount WM$char</font></b><br>Кошелёк: <u>$purse</u> Номер игры: <b>$count</b><br>Комбинация: <b>
";
if ($perem == 1) {
echo "<font color=black>X**</font>";
}
elseif ($perem == 2) {
echo "<font color=black>XX*</font>";
}

elseif ($perem == 3) {
echo "<font color=black>XXX</font>";
}

elseif ($perem == 4) {
echo "<font color=black>111</font>";
}

elseif ($perem == 5) {
echo "<font color=black>222</font>";
}

elseif ($perem == 6) {
echo "<font color=black>333</font>";
}

elseif ($perem == 7) {
echo "<font color=black>444</font>";
}

elseif ($perem == 8) {
echo "<font color=black>555</font>";
}

elseif ($perem == 9) {
echo "<font color=black>666</font>";
}

elseif ($perem == 10) {
echo "<font color=black>777</font>";
}

elseif ($perem == 11) {
echo "<font color=black>888</font>";
}

elseif ($perem == 12) {
echo "<font color=black>999</font>";
}
echo "</b>";



 print "</u></font></b>";

}
if ($win_state == 'lose'){

echo "<b><font class=text><font color=red>К сожалению вы проиграли</font></b><br>Кошелёк: <u>$purse</u> Номер игры: <b>$count</b>";}
elseif ($win_state == 'not'){
echo "Информации о вашей ставки нет!"; }



echo '</form>		';
}
}


elseif ($type == webmoney and $num == 7) {
$result = mysql_query ("select * from loto_admin_design2 where id=9" ,$cnct);$data=mysql_fetch_object($result);$data->top=preg_replace("/(<\?\W*include\W*)(\w*\.?\w*)(\W*\s*\W*\?>)/eim","implode('', file('\\2'))",$data->top);echo $data->top;
 print '
	
			


                  
                  <FORM action=https://merchant.webmoney.ru/lmi/payment.asp method=post name=bolshe><center><span class=n>
                                 <br>
<input type="hidden" name="num" value="7">
<input type="hidden" name="chislo" value="4">
<input type="hidden" name="p" value="'; echo $p; print '">
<input type="hidden" name="LMI_PAYEE_PURSE" value="'; print "$purseZ"; print '">

                      
                                      <TABLE cellSpacing=1 cellPadding=4 width=268 align=center 
                  bgColor=#f5f5fa border=0>
                    <TBODY>
                    <TR>
                      <TD width=78 bgColor=white>
                        <P align=left><B>ставка: </B></P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>0.10wmz</P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>0.20wmz</P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>0.50wmz</P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center>1wmz</P></TD>
                      <TD width=38 bgColor=white>
                       <P align=center>3wmz</P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center>5wmz</P></TD></TR>
                    <TR>
                      <TD width=78 bgColor=white>
                        <P align=center><B>выигрыш:</B></P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>0.20wmz</P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>0.40wmz</P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>1wmz</P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center>2wmz</P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center>6wmz</P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center>10wmz</P></TD>
 <TR>
                      <TD width=78 bgColor=white>
                        <P align=center><B>выберите:</B></P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=0.10 checked></P></TD>
                      <TD width=78 bgColor=white>
                       <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=0.20></P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=0.50></P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=1></P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=3></P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=5></P></TD>
              </TBODY></TABLE>
<br>
 <input type=image src="http://cool-wm.ru/button.gif" align=center>
                    </FORM>

';
if ($access == success) { echo "<a name=game>";



$result=@mysql_query ("SELECT * FROM `superloto` ORDER BY `ID` DESC"); 
$id = mysql_num_rows($result);
$que=@mysql_query ("SELECT * FROM `superloto` WHERE ID='$id'");
$que2=@mysql_fetch_array($que);
$count=$id;
$win_state=$que2[STATE];
$win_amount=$que2[AMMOUNT];
$perem=$que2[BAP];
$purse=$que2[ACCOUNT_];
$char=substr($purse,0,1);



if ($win_state == 'win'){
echo 
"<b><font class=text><font color='red'>Поздравляем вас с победой!</b></font><br>
Ваш выигрыш составил: <b><font color=green>$win_amount WM$char</font></b><br>Кошелёк: <u>$purse</u> Номер игры: <b>$count</b>";



 print "</u></font></b>";

}
if ($win_state == 'lose'){

echo "<b><font class=text><font color=red>К сожалению вы проиграли</font></b><br>Кошелёк: <u>$purse</u> Номер игры: <b>$count</b>";
if ($chislo == 1) {
echo "<br><img src=./images/nap.gif><img src=./images/winnap.gif><img src=./images/nap.gif>";
}
elseif ($chislo == 2) {
echo "<br><img src=./images/nap.gif><img src=./images/nap.gif><img src=./images/winnap.gif>";
}
elseif ($chislo == 3) {
echo "<br><img src=./images/winnap.gif><img src=./images/nap.gif><img src=./images/nap.gif>";
}
}


elseif ($win_state == 'not'){
echo "Информации о вашей ставки нет!"; }


echo '</form>';
}
}


elseif ($type == webmoney and $num == 8) {
$result = mysql_query ("select * from loto_admin_design2 where id=10" ,$cnct);$data=mysql_fetch_object($result);$data->top=preg_replace("/(<\?\W*include\W*)(\w*\.?\w*)(\W*\s*\W*\?>)/eim","implode('', file('\\2'))",$data->top);echo $data->top;
 print '		
     


                  <FORM action=https://merchant.webmoney.ru/lmi/payment.asp method=post name=bolshe><center><span class=n>
                                 <br>
<input type="hidden" name="num" value="8">
<input type="hidden" name="chislo" value="4">
<input type="hidden" name="p" value="'; echo $p; print '">
<input type="hidden" name="LMI_PAYEE_PURSE" value="'; print "$purseZ"; print '">

                      
                                      <TABLE cellSpacing=1 cellPadding=4 width=268 align=center 
                  bgColor=#f5f5fa border=0>
                    <TBODY>
                    <TR>
                      <TD width=78 bgColor=white>
                        <P align=left><B>ставка: </B></P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>0.10wmz</P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>0.20wmz</P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>0.50wmz</P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center>1wmz</P></TD>
                      <TD width=38 bgColor=white>
                       <P align=center>3wmz</P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center>5wmz</P></TD></TR>
                    <TR>
                      <TD width=78 bgColor=white>
                        <P align=center><B>выигрыш:</B></P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>0.20wmz</P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>0.40wmz</P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>1wmz</P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center>2wmz</P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center>6wmz</P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center>10wmz</P></TD>
 <TR>
                      <TD width=78 bgColor=white>
                        <P align=center><B>выберите:</B></P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=0.10 checked></P></TD>
                      <TD width=78 bgColor=white>
                       <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=0.20></P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=0.50></P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=1></P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=3></P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=5></P></TD>
              </TBODY></TABLE>
<br>
 <input type=image src="http://cool-wm.ru/button.gif" align=center>
                    </FORM>

';
if ($access == success) { echo "<a name=game>";


$result=@mysql_query ("SELECT * FROM `superloto` ORDER BY `ID` DESC"); 
$id = mysql_num_rows($result);
$que=@mysql_query ("SELECT * FROM `superloto` WHERE ID='$id'");
$que2=@mysql_fetch_array($que);
$count=$id;
$win_state=$que2[STATE];
$win_amount=$que2[AMMOUNT];
$perem=$que2[BAP];
$purse=$que2[ACCOUNT_];
$char=substr($purse,0,1);




if ($win_state == 'win'){
echo 
"<b><font class=text><font color='red'>Поздравляем вас с победой!</b></font><br>
Ваш выигрыш составил: <b><font color=green>$win_amount WM$char</font></b><br>Кошелёк: <u>$purse</u> Номер игры: <b>$count</b>";



 print "</u></font></b>";

}
if ($win_state == 'lose'){

echo "<b><font class=text><font color=red>К сожалению вы проиграли</font></b><br>Кошелёк: <u>$purse</u> Номер игры: <b>$count</b>";}
elseif ($win_state == 'not'){
echo "Информации о вашей ставки нет!"; }



echo '</form>	';
}
}




elseif ($type == webmoney and $num == 9) {
$result = mysql_query ("select * from loto_admin_design2 where id=11" ,$cnct);$data=mysql_fetch_object($result);$data->top=preg_replace("/(<\?\W*include\W*)(\w*\.?\w*)(\W*\s*\W*\?>)/eim","implode('', file('\\2'))",$data->top);echo $data->top;
 print '


                  <FORM action=https://merchant.webmoney.ru/lmi/payment.asp method=post name=bolshe><center><span class=n>
                        <input type=hidden name=LMI_PAYMENT_AMOUNT value=1>
                       
                        
<input type="hidden" name="num" value="9">
<input type="hidden" name="chislo" value="'; echo $chislo; print '">
<input type="hidden" name="p" value="'; echo $p; print '">
<input type="hidden" name="LMI_PAYEE_PURSE" value="'; print "$purseZ"; print '">
<INPUT name=LMI_PAYMENT_DESC type=hidden value="Лотерея Шанс">
              
                        
                        <INPUT name="submit2" type=submit class=submit2 value=Играть!>
                    </FORM>    

';
if ($access == success) { echo "<a name=game>";


$result=@mysql_query ("SELECT * FROM `superloto` ORDER BY `ID` DESC"); 
$id = mysql_num_rows($result);
$que=@mysql_query ("SELECT * FROM `superloto` WHERE ID='$id'");
$que2=@mysql_fetch_array($que);
$count=$id;
$win_state=$que2[STATE];
$win_amount=$que2[AMMOUNT];
$perem=$que2[BAP];
$purse=$que2[ACCOUNT_];
$char=substr($purse,0,1);




if ($win_state == 'win'){
echo 
"<b><font class=text><font color='red'>Поздравляем вас с победой!</b></font><br>
Ваш выигрыш составил: <b><font color=green>$win_amount WM$char</font></b><br>Кошелёк: <u>$purse</u> Номер игры: <b>$count</b>";



 print "</u></font></b>";

}
if ($win_state == 'lose'){

echo "<b><font class=text><font color=red>К сожалению вы проиграли</font></b><br>Кошелёк: <u>$purse</u> Номер игры: <b>$count</b>";}
elseif ($win_state == 'not'){
echo "Информации о вашей ставки нет!"; }



echo '</form>';
}
}

elseif ($type == webmoney and $num == 10) {
$result = mysql_query ("select * from loto_admin_design2 where id=12" ,$cnct);$data=mysql_fetch_object($result);$data->top=preg_replace("/(<\?\W*include\W*)(\w*\.?\w*)(\W*\s*\W*\?>)/eim","implode('', file('\\2'))",$data->top);echo $data->top; print '
<!--
    
                  <FORM action=https://merchant.webmoney.ru/lmi/payment.asp method=post name=bolshe><center><span class=n>
                                        <center><span class=n>Размер ставки: 
                        <SELECT class=submit3 name=LMI_PAYMENT_AMOUNT>
                          <OPTION selected value=0.02>0.02</OPTION>
                          <OPTION value=0.05>0.05</OPTION>
                          <OPTION value=0.1>0.1</OPTION>
                          <OPTION value=0.2>0.2</OPTION>
                          <OPTION value=0.3>0.3</OPTION>
                          <OPTION value=0.4>0.4</OPTION>
                          <OPTION value=0.5>0.5</OPTION>
                          <OPTION value=0.7>0.7</OPTION>
                          <OPTION value=1>1</OPTION>
                          <OPTION value=2>2</OPTION>
                          <OPTION value=3>3</OPTION>
                          <OPTION value=5>5</OPTION>
                          <OPTION value=10>10</OPTION>
                          <OPTION value=20>20</OPTION>
                          <OPTION value=30>30</OPTION>
                        </SELECT>
                        
<input type="hidden" name="num" value="10">
<input type="hidden" name="chislo" value="'; echo $chislo; print '">
<input type="hidden" name="p" value="'; echo $p; print '">
<select name="LMI_PAYEE_PURSE" class=submit3>
<option value="'; print "$purseZ"; print '">WMZ</option>
<option value="'; print "$purseR"; print '"></option>
<option value="'; print "$purseE"; print '"></option>
</select><br>
<INPUT name=LMI_PAYMENT_DESC type=hidden value="Лотерея Халява">
                      
                        <BR>
                        <INPUT name="submit2" type=submit class=submit2 value=Играть!>
                    </FORM>
-->
';
if ($access == success) { echo "<a name=game>";


$result=@mysql_query ("SELECT * FROM `superloto` ORDER BY `ID` DESC"); 
$id = mysql_num_rows($result);
$que=@mysql_query ("SELECT * FROM `superloto` WHERE ID='$id'");
$que2=@mysql_fetch_array($que);
$count=$id;
$win_state=$que2[STATE];
$win_amount=$que2[AMMOUNT];
$perem=$que2[BAP];
$purse=$que2[ACCOUNT_];
$char=substr($purse,0,1);

echo '

<SCRIPT LANGUAGE="JavaScript" SRC="http://www.BXOD.com/codeupd.asp?AdvId=3774">
</SCRIPT>';



if ($win_state == 'win'){
echo 
"<b><font class=text><font color='red'>Поздравляем вас с победой!</b></font><br>
Ваш выигрыш составил: <b><font color=green>$win_amount WM$char</font></b><br>Кошелёк: <u>$purse</u> Номер игры: <b>$count</b>";



 print "</u></font></b>";

}
if ($win_state == 'lose'){

echo "<b><font class=text><font color=red>К сожалению вы проиграли</font></b><br>Кошелёк: <u>$purse</u> Номер игры: <b>$count</b>";}
elseif ($win_state == 'not'){
echo "Информации о вашей ставки нет!"; }



echo '</form>	';
}
}


elseif ($type == webmoney and $num == 11) {
$result = mysql_query ("select * from loto_admin_design2 where id=13" ,$cnct);$data=mysql_fetch_object($result);$data->top=preg_replace("/(<\?\W*include\W*)(\w*\.?\w*)(\W*\s*\W*\?>)/eim","implode('', file('\\2'))",$data->top);echo $data->top;
 print '
				
          
                  <FORM action=https://merchant.webmoney.ru/lmi/payment.asp method=post name=bolshe><center><span class=n>
                                 <br>
<input type="hidden" name="num" value="11">
<input type="hidden" name="chislo" value="4">
<input type="hidden" name="p" value="'; echo $p; print '">
<input type="hidden" name="LMI_PAYEE_PURSE" value="'; print "$purseZ"; print '">

                      
                                      <TABLE cellSpacing=1 cellPadding=4 width=268 align=center 
                  bgColor=#f5f5fa border=0>
                    <TBODY>
                    <TR>
                      <TD width=78 bgColor=white>
                        <P align=left><B>ставка: </B></P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>0.10wmz</P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>0.20wmz</P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>0.50wmz</P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center>1wmz</P></TD>
                      <TD width=38 bgColor=white>
                       <P align=center>3wmz</P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center>5wmz</P></TD></TR>
                    <TR>
                      <TD width=78 bgColor=white>
                        <P align=center><B>выигрыш:</B></P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>0.20wmz</P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>0.40wmz</P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>1wmz</P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center>2wmz</P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center>6wmz</P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center>10wmz</P></TD>
 <TR>
                      <TD width=78 bgColor=white>
                        <P align=center><B>выберите:</B></P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=0.10 checked></P></TD>
                      <TD width=78 bgColor=white>
                       <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=0.20></P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=0.50></P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=1></P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=3></P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=5></P></TD>
              </TBODY></TABLE>
<br>
 <input type=image src="http://cool-wm.ru/button.gif" align=center>
                    </FORM>
 ';
if ($access == success) { echo "<a name=game>";


$result=@mysql_query ("SELECT * FROM `superloto` ORDER BY `ID` DESC"); 
$id = mysql_num_rows($result);
$que=@mysql_query ("SELECT * FROM `superloto` WHERE ID='$id'");
$que2=@mysql_fetch_array($que);
$count=$id;
$win_state=$que2[STATE];
$win_amount=$que2[AMMOUNT];
$perem=$que2[BAP];
$purse=$que2[ACCOUNT_];
$char=substr($purse,0,1);




if ($win_state == 'win'){
echo 
"<b><font class=text><font color='red'>Поздравляем вас с победой!</b></font><br>
Ваш выигрыш составил: <b><font color=green>$win_amount WM$char</font></b><br>Кошелёк: <u>$purse</u> Номер игры: <b>$count</b>";


 print "</u></font></b>";
print '<br><Br><SCRIPT LANGUAGE="JavaScript" SRC="http://www.BXOD.com/codeupd.asp?AdvId=3774">
</SCRIPT>';

}
if ($win_state == 'lose'){

echo "<b><font class=text><font color=red>К сожалению вы проиграли</font></b><br>Кошелёк: <u>$purse</u> Номер игры: <b>$count</b>";

if ($chislo == 1) {
echo "<br><img src=./images/chest1.gif><img src=./images/chestluck1.gif>";
}
elseif ($chislo == 2) {
echo "<br><img src=./images/chestluck1.gif><img src=./images/chest1.gif>";
}
print '<br><Br><SCRIPT LANGUAGE="JavaScript" SRC="http://www.BXOD.com/codeupd.asp?AdvId=3774">
</SCRIPT>';
}
elseif ($win_state == 'not'){
echo "Информации о вашей ставки нет!"; }


echo '</form>		';
}
}



elseif ($type == webmoney and $num == 12) {
$result = mysql_query ("select * from loto_admin_design2 where id=14" ,$cnct);$data=mysql_fetch_object($result);$data->top=preg_replace("/(<\?\W*include\W*)(\w*\.?\w*)(\W*\s*\W*\?>)/eim","implode('', file('\\2'))",$data->top);echo $data->top;
 print '		
                 
                 
                  <FORM action=https://merchant.webmoney.ru/lmi/payment.asp method=post name=bolshe><center><span class=n>
                                 <br>
<center><input type="radio" value="1" name="r2" checked><span class=n>Больше <input type="radio" value="2" name="r3">Обычных<br>
<input type="radio" value="1" name="r2" checked>Меньше <input type="radio" value="2" name="r3">Укороченных<br>

<input type="hidden" name="num" value="12">
<input type="hidden" name="chislo" value="4">
<input type="hidden" name="p" value="'; echo $p; print '">
<input type="hidden" name="LMI_PAYEE_PURSE" value="'; print "$purseZ"; print '">

                      
                                      <TABLE cellSpacing=1 cellPadding=4 width=268 align=center 
                  bgColor=#f5f5fa border=0>
                    <TBODY>
                    <TR>
                      <TD width=78 bgColor=white>
                        <P align=left><B>ставка: </B></P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>0.20wmz</P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>0.50wmz</P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center>1wmz</P></TD>
                      <TD width=38 bgColor=white>
                       <P align=center>3wmz</P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center>5wmz</P></TD></TR>
                    <TR>
                      <TD width=78 bgColor=white>
                        <P align=center><B>выигрыш:</B></P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>0.40wmz</P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center>1wmz</P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center>2wmz</P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center>6wmz</P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center>10wmz</P></TD>
 <TR>
                      <TD width=78 bgColor=white>
                        <P align=center><B>выберите:</B></P></TD>
                      <TD width=78 bgColor=white>
                       <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=0.20 checked></P></TD>
                      <TD width=78 bgColor=white>
                        <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=0.50></P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=1></P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=3></P></TD>
                      <TD width=38 bgColor=white>
                        <P align=center><input type=radio name=LMI_PAYMENT_AMOUNT value=5></P></TD>
              </TBODY></TABLE>
<br>
 <input type=image src="http://cool-wm.ru/button.gif" align=center>
                    </FORM>
';
if ($access == success) { echo "<a name=game>";


$result=@mysql_query ("SELECT * FROM `superloto` ORDER BY `ID` DESC"); 
$id = mysql_num_rows($result);
$que=@mysql_query ("SELECT * FROM `superloto` WHERE ID='$id'");
$que2=@mysql_fetch_array($que);
$count=$id;
$win_state=$que2[STATE];
$win_amount=$que2[AMMOUNT];
$perem=$que2[BAP];$purse=$que2[ACCOUNT_];
$char=substr($purse,0,1);





if ($win_state == 'win'){
echo "<b><font class=text><font color='red'>Поздравляем вас с победой!</b></font><br>
Ваш выигрыш составил: <b><font color=green>$win_amount WM$char</font></b><br>Кошелёк: <u>$purse</u> Номер игры: <b>$count</b>
";
echo '
<SCRIPT LANGUAGE="JavaScript" SRC="http://www.BXOD.com/codeupd.asp?AdvId=3774">
</SCRIPT>';


 print "</u></font></b>";

}
if ($win_state == 'lose'){

echo "<b><font class=text><font color=red>К сожалению вы проиграли</font></b><br>Кошелёк: <u>$purse</u> Номер игры: <b>$count</b>";

echo '
<SCRIPT LANGUAGE="JavaScript" SRC="http://www.BXOD.com/codeupd.asp?AdvId=3774">
</SCRIPT>';

}
elseif ($win_state == 'not'){
echo "Информации о вашей ставки нет!"; }



echo '</form>		';
}
}

if ($num <> '') {


echo '
	
								<div class="game_name">Общая статистика(по этой игре)</div>
						




<p align="left">

Куплено билетов: <b><font color=brown>
';
$result=mysql_query("select * from superloto where TYPE='$type' and GAMENUM='$num'",$cnct);
$stat1 = mysql_num_rows($result);
echo $stat1; 
echo '
</font></b><br>
Выигрышей: <b><font color=brown>';
$result=mysql_query("select * from superloto where TYPE='$type' and STATE='win' and GAMENUM='$num'",$cnct);
$stat1 = mysql_num_rows($result);
echo $stat1;
echo '</font></b><br>
Выплачено: <b><font color=green>';
$result=mysql_query("select SUM(AMMOUNT) as samm from superloto where TYPE='$type' and ACCOUNT_ like '%z%' and STATE='win' and GAMENUM='$num'",$cnct);
$arr=mysql_fetch_array($result);
$stat2=$arr["samm"];
echo $stat2; 
echo ' WMZ</font> 
</b><br>
</p>											
						
								<div class="game_name">10 последних выигрышей</div>


<p align="left">



</b></font></u></b></form>
';
$tbl = "superloto";
$res = mysql_query ("select * from ".$tbl." where STATE='win' and TYPE='$type' and GAMENUM='$num' order by DATE desc LIMIT 0,10" ,$cnct);

for ($i=0;$i<mysql_num_rows($res);$i++){
$data2=mysql_fetch_object($res);
$test = $data2->ACCOUNT_;
$char=substr($test,0,1);
echo "<font color=#386297>Кошелёк: <b>$data2->ACCOUNT_</b> | Дата: <b><font color=red>$data2->DATE</b></font> |
Выигрыш: <b>$data2->AMMOUNT WM$char</b><br>"; 

}
}
}

if ($num == '' & $page == '') {

$result = mysql_query ("select * from loto_admin_design2 where id=2" ,$cnct);$data=mysql_fetch_object($result);$data->top=preg_replace("/(<\?\W*include\W*)(\w*\.?\w*)(\W*\s*\W*\?>)/eim","implode('', file('\\2'))",$data->top);echo $data->top;
echo '
<tr> '; 


   



} 

elseif ($page == '1') {

include "empty.txt";


} 

elseif ($page == '2') {

include "empty2.txt";


} 

elseif ($page == '3') {

include "empty3.txt";


} 

elseif ($page == '4') {

include "empty4.txt";


} 

elseif ($page == '5') {

include "empty5.txt";


} 

elseif ($page == '6') {

include "empty6.txt";


} 

elseif ($page == '7') {

include "empty7.txt";


} 


elseif ($page == '8') {

include "empty8.txt";


} 


elseif ($page == '9') {

include "empty9.txt";


} 

elseif ($page == '10') {

include "empty2.txt";


} 

?>
</td>
  </tr>
</table>

<table border="0" width="530" cellspacing="1" cellpadding="5" align="center" bgcolor="#386297">
  <tr>
    <td bgcolor="#386297" align="left" width="180"class="menutop">
      <b> Случайный анекдот</b>
    </td>
  </tr>
  <tr> 
    <td bgcolor="#EDF0F5" align="justify" valign="top" height="50" class="text"> <? include('./anek/index.php'); ?>
</td>
  </tr>
</table><BR><BR>



    </td>
    <td bgcolor="#000000" align="center" width="1" valign="top">
     <img src="images/0.gif" width="1" height="1" border="0" hspace="0" vspace="0">
    </td>
    <td bgcolor="#F1F0F0" align="center" width="40%" valign="top">
     <img src="images/0.gif" width="1" height="1" border="0" hspace="0" vspace="0">
    </td>
  </tr>



  <tr>
    <td bgcolor="#FFFFFF" align="center" width="200" valign="top">

    </td>
    <td bgcolor="#FFFFFF" align="center" valign="top" class="bottom">
    Все права защищены: 2003 &copy; <a href="#"><b>Cool - WM.ru</b></a>
    </td>
    <td bgcolor="#000000" align="center" width="1" valign="top">
     <img src="images/0.gif" width="1" height="1" border="0" hspace="0" vspace="0">
    </td>
    <td bgcolor="#F1F0F0" align="center" width="40%" valign="top">
     <img src="images/0.gif" width="1" height="1" border="0" hspace="0" vspace="0">
    </td>
  </tr>

</table>



</body>
</html>

