Вход Регистрация
Файл: bratki/sms_oplata.php
Строк: 86
<?php
define
('PROTECTOR', 1);

$textl='СМС-Оплата';
include(
'files/path.php');
include(
$path.'files/db.php');
include(
$path.'files/auth.php');
include(
$path.'files/func.php');
include(
$path.'files/core.php');
include(
$path.'files/head.php');
include(
$path.'files/zag.php');

echo 
'Вы получите:<br>+10 келей<br>';

    
// the function returns an MD5 of parameters passed
    // функция возвращает MD5 переданных ей параметров
    
function ref_sign() {
        
$params = func_get_args();
        
$prehash = implode("::", $params);
        return 
md5($prehash);
    }
    
    
// the function prints a request form
    // функция печатает форму запроса
    
function print_form($purse, $order_id, $amount, $clear_amount, $description, $secret_code, $submit) {
        
// making signature
        // создаем подпись
        
$sign = ref_sign($purse, $order_id, $amount, $clear_amount, $description, $secret_code);
        
        
// printing the form
        // печатаем форму
        
echo <<<Form
        <form action="http://service.smscoin.com/bank/" method="post">
            <p>
                <input name="s_purse" type="hidden" value="
$purse" />
                <input name="s_order_id" type="hidden" value="
$order_id" />
                <input name="s_amount" type="hidden" value="
$amount" />
                <input name="s_clear_amount" type="hidden" value="
$clear_amount" />
                <input name="s_description" type="hidden" value="
$description" />
                <input name="s_sign" type="hidden" value="
$sign" />
                <input type="submit" value="
$submit" />
            </p>
        </form>

Form;
    }

    
// service secret code
    // секретный код сервиса
    
$secret_code = "007811";
    
    
// initializing variables
    // инициализируем переменные
    
$purse        = 14137;              // sms:bank id        идентификатор смс:банка
    
$order_id     = 1;           // operation id       идентификатор операции
    
$amount       = 1;            // transaction sum    сумма транзакции
    
$clear_amount = 0;              // billing algorithm  алгоритм подсчета стоимости
    
$description  = "Оплата +10 келей (w-war.ru)"; // operation desc     описание операции
    
$submit       = "Оплатить";    // submit label       надпись на кнопке submit
    
    // printing the form
    // печатаем форму
    
print_form($purse, $order_id, $amount, $clear_amount, $description, $secret_code, $submit);

include(
$path.'files/down.php');
?>
Онлайн: 2
Реклама