Вход Регистрация
Файл: public_html/trade.php
Строк: 200
<?
include './system/common.php';
include 
'./system/functions.php';
include 
'./system/user.php';

if(!
$user) {
header('location: /');
exit;
}


if (isset(
$_GET['gold'])){
    
$curl curl_init();
    
curl_setopt($curlCURLOPT_URL'https://api.xsolla.com/merchant/merchants/35679/token');
    
$h = array("Content-Type: application/json");
    
curl_setopt($curlCURLOPT_HTTPHEADER$h);
    
curl_setopt($curlCURLOPT_HTTPAUTHCURLAUTH_BASIC);
    
curl_setopt($curlCURLOPT_USERPWD'37549:W1bgDhyN2vMUXWxv');
    
curl_setopt($curlCURLOPT_RETURNTRANSFER,true);
    
curl_setopt($curlCURLOPT_POSTtrue);
    
$json = array("user" => array("id" => array("value" => $user['id'], "hidden" => true)), "settings" => array("project_id" => 21344/*, "mode" => "sandbox"*/));
    
$json json_encode($json);
    
curl_setopt($curlCURLOPT_POSTFIELDS$json);
    
$token json_decode(curl_exec($curl))->token;
    
curl_close($curl);
    if (isset(
$token)) {
//         header("Location:https://sandbox-secure.xsolla.com/paystation2/?access_token=$token");
        
header("Location:https://secure.xsolla.com/paystation2/?access_token=$token");
        exit;
    } else {
      
//$_SESSION['err']='Данный метод оплаты не работает';
        
header("Location:/xsolla/");
        exit;
    }
}


switch(
$_GET['action']) {
default:

$title 'Золото';
include 
'./system/h.php';
?>

<div class="block_zero center blue">Золото - самый ценный ресурс! </div>
<div class="mini-line"></div>
<div class="block_zero center"><img src="/images/town/trade.png?v2" alt="" width="100%"></div>
<div class="mini-line"></div>
<div class="menuList"><li><a href="/trade/exchange/"><img src="/images/icon/gold.png" alt="">Обменник золота </a></li>
<li><a href="/xsolla/"><img src="/images/icon/gold.png" alt=""><font color='red'><b>Покупка Через Xsolla</b></font></a></li>
</div>

<div class="block_zero">
<img src="/images/gold/0.png" alt="" style="float:left;margin-right:3px;margin-top:3px;" height="50" width="50"> <b>Горсть золота</b> <br>
<img src="/images/icon/gold.png" alt="g"> <b>100000</b> золотых<br>
<span class="medium">
<span class="dgreen bold"><img src="/images/icon/gold.png" alt="g"><font color='gren'> +50'000</span></font> в подарок!</span>
<div style="clear:both;"></div>
<a class="btn" href="/worldkassa/index.php?gold=150000"><span class="end"><span class="label">Купить</span></span></a> <span class="grey">(Цена <span class="bold">20</span> руб.)</span>
</div>
<div class="dot-line"></div>
<div class="block_zero">
<img src="/images/gold/1.png" alt="" style="float:left;margin-right:3px;margin-top:3px;" height="50" width="50"> <b>Мешок золота</b> <br>
<img src="/images/icon/gold.png" alt="g"> <b>250.000</b> золотых<br>
<span class="medium">
<span class="dgreen bold"><img src="/images/icon/gold.png" alt="g"> <font color='gren'>+100'000</font></span> в подарок!</span>
<div style="clear:both;"></div>
<a class="btn" href="/worldkassa/index.php?gold=350000"><span class="end"><span class="label">Купить</span></span></a> <span class="grey">(Цена <span class="bold">50</span> руб.)</span>
</div>
<div class="dot-line"></div>
<div class="block_zero">
<img src="/images/gold/2.png" alt="" style="float:left;margin-right:3px;margin-top:3px;" height="50" width="50"> <b>Ларец золота</b> <br>
<img src="/images/icon/gold.png" alt="g"> <b>500.000</b> золотых<br>
<span class="medium">
<span class="dgreen bold"><img src="/images/icon/gold.png" alt="g"> <font color='gren'>+150'000</span></font> в подарок!</span>
<div style="clear:both;"></div>
<a class="btn" href="/worldkassa/index.php?gold=650000"><span class="end"><span class="label">Купить</span></span></a> <span class="grey">(Цена <span class="bold">100</span> руб.)</span>
</div>
<div class="dot-line"></div>
<div class="block_zero">
<img src="/images/gold/3.png" alt="" style="float:left;margin-right:3px;margin-top:3px;" height="50" width="50"> <b>Сундук золота</b> <br>
<img src="/images/icon/gold.png" alt="g"> <b>750.000</b> золотых<br>
<span class="medium">
<span class="dgreen bold"><img src="/images/icon/gold.png" alt="g"> <font color='gren'>+500'000</font></span> в подарок!</span>
<div style="clear:both;"></div>
<a class="btn" href="/worldkassa/index.php?gold=1250000"><span class="end"><span class="label">Купить</span></span></a> <span class="grey">(Цена <span class="bold">200</span> руб.)</span>
</div>
<div class="dot-line"></div>
<div class="block_zero">
<img src="/images/gold/4.png" alt="" style="float:left;margin-right:3px;margin-top:3px;" height="50" width="50"> <b>Сокровище богов</b> <br>
<img src="/images/icon/gold.png" alt="g"> <b>2.000.000</b> золотых<br>
<span class="medium">
<span class="dgreen bold"><img src="/images/icon/gold.png" alt="g"> <font color='gren'>+500'000</font></span> в подарок!</span>
<div style="clear:both;"></div>
<a class="btn" href="/worldkassa/index.php?gold=2500000"><span class="end"><span class="label">Купить</span></span></a> <span class="grey">(Цена <span class="bold">450</span> руб.)</span>
</div>
<hr>
<center>Кошельки Игры:</center>
Яндекс: <font color='orange'>410015025022166</font><br>
Киви: <font color='orange'>+7 992 007 64 82</font><br>
После перевода средств писать Администратору <a href='/user/1/'>ddarder</a>
<?
include './system/f.php';
break;
}
?>
Онлайн: 2
Реклама