Файл: public_html/payment1/buy.php
Строк: 65
<?php
$root = $_SERVER['DOCUMENT_ROOT'];
include_once($root . '/core/base.php');
falseauth();
$header = "Купить гемы";
include_once($root . '/core/head.php');
if(isset($_GET['pay']))
{
    $paymentId = fl($_GET['id']);
    if(!in_array($paymentId, [1,2,3,4,5])) redirect('/payment');
    $gold = [1 => 110, 2 => 330, 3 => 550, 4 => 1100, 5 => 3500];
    redirect('/modules/payment/index.php?gold='.$gold[$paymentId]);
}
echo ' 
    <div class="b"> 
        <table width="100%"> 
            <tr> 
                <td width="70px" valign="top"> 
                    <img width="90px" src="/images/img-pay/pay-1-min.png"/> 
                </td> 
                <td valign="top"> 
                    <big> <font color = "white">Мешочек гемов</font></big> 
                    <div class="txt"> 
                       Вы получите 100+10 гемов на свой счёт.
                    </div> 
                </td> 
            </tr> 
        </table> </br>
        <center><a href="/payment/1"><input type="submit" value="Купить за 50 рублей"></a></center></div>
    '; 
    echo ' 
    <div class="b"> 
        <table width="100%"> 
            <tr> 
                <td width="70px" valign="top"> 
                    <img width="90px" src="/images/img-pay/pay-2-min.png"/> 
                </td> 
                <td valign="top"> 
                    <big> <font color = "white">Маленький сундук</font></big> 
                    <div class="txt"> 
                       Вы получите 300+30 гемов на свой счёт.
                    </div> 
                </td> 
            </tr> 
        </table> </br>
        <center><a href="/payment/2"><input type="submit" value="Купить за 150 рублей"></a></center></div>
    ';
    echo ' 
    <div class="b"> 
        <table width="100%"> 
            <tr> 
                <td width="70px" valign="top"> 
                    <img width="90px" src="/images/img-pay/pay-3-min.png"/> 
                </td> 
                <td valign="top"> 
                    <big> <font color = "white">Большой сундук</font></big> 
                    <div class="txt"> 
                      Вы получите 500+50 гемов на свой счёт.
                    </div> 
                </td> 
            </tr> 
        </table> </br>
        <center><a href="/payment/3"><input type="submit" value="Купить за 250 рублей"></a></center></div>
    ';
    echo ' 
    <div class="b"> 
        <table width="100%"> 
            <tr> 
                <td width="70px" valign="top"> 
                    <img width="90px" src="/images/img-pay/pay-4-min.png"/> 
                </td> 
                <td valign="top"> 
                    <big> <font color = "white">Тележка гемов</font></big> 
                    <div class="txt"> 
                       Вы получите 1000+100 гемов на свой счёт.
                    </div> 
                </td> 
            </tr> 
        </table> </br>
        <center><a href="/payment/4"><input type="submit" value="Купить за 500 рублей"></a></center></div>
    ';
    echo ' 
    <div class="b"> 
        <table width="100%"> 
            <tr> 
                <td width="70px" valign="top"> 
                    <img width="90px" src="/images/img-pay/pay-5-min.png"/> 
                </td> 
                <td valign="top"> 
                    <big> <font color = "white">Корабль с гемами</font></big> 
                    <div class="txt"> 
                       Вы получите 3000+500 гемов на свой счёт.
                    </div> 
                </td> 
            </tr> 
        </table> </br>
        <center><a href="/payment/5"><input type="submit" value="Купить за 1500 рублей"></a></center></div>
    ';
echo '<div class="line"></div>';
include_once($root . '/core/foot.php');