Вход Регистрация
Файл: a1pay_sms.php
Строк: 31
<?php
 
include_once("files/ini.php");
     
    function 
A1Lite_processor ($t$secret)
    {
        
$params = array(    
                            
'date' => $t['date'],
                            
'msg_trans' => $t['msg_trans'],
                            
'operator_id' => $t['operator_id'],
                            
'user_id' => $t['user_id'],
                            
'smsid' => $t['smsid'],
                            
'cost_rur' => $t['cost_rur'],
                            
'ran' => $t['ran'],
                            
'test' => $t['test'],
                            
'num' => $t['num'],
                            
'country_id' => $t['country_id'],
                        
//    'test'  => 1
        
);
         
        
$params['check'] = md5(join(''array_values($params)) . $secret);
  
        if (
$params['check'] === $t['sign'])
        {    
            
            
$log   trim(str_replace('*coin'''$t['msg']));
            
$log   trim(str_replace('*coin'''$log));        
            
            
$tarif = array(         
                                             
'1151'   => 2,
                                             
'1899'   => 5,
                             
'1161'   => 6,
                             
'4481'   => 10,
                             
'1871'   => 1,
                             
'1872'   => 2,
                             
'1873'   => 6,
                             
'1874'   => 10,
                             
'1381'   => 1,
                             
'1391'   => 2,
                             
'1635'   => 6,
                             
'1645'   => 10,
                             
'5013'   => '',
                             
'5014'   => '',
                             
'17011'  => 3,
                             
'17012'  => 8,
                             
'17013'  => 10,
                             
'7720'   => 3,
                             
'7730'   => 5,
                             
'7750'   => 10,
                             
'7790'   => 20,
                             
'7910'   => 3,
                             
'79866'  => 10,
                             
'7510'   => 2,
                             
'7520'   => 8,
                             
'7530'   => 15,
                            
/* '7540'   => 25, */
                             
'1899'   => 2,
                             
'7781'   => 3,

                             
'1141'   => 1,
                             
'1899'   => 2,

                             
'77130'   => 5,
                             
'77510'   => 10,
                             
'77901'   => 20,
                             
'79101'   => 3,
                             
'798661'  => 10,
                             
'75101'    => 2,
                             
                           );
                            
            
            
$coin = !empty($tarif[$t['num']]) ? $tarif[$t['num']] : 0;

mysql_query("UPDATE `users` SET `udata38` =`udata38`+ '$coin' WHERE `udata0` = '$log'");
            
file_put_contents("data/pay.dat"date('Y-m-d') .' / '$log .' / '$coin ."rn"FILE_APPEND);    
            
            echo 
"smsid:".$t['smsid']."n";    
            echo 
"status:replyn";
            echo 
"n";                        
            echo  
"Персонажу "$log ." зачислено "$coin ." Coin of Luck. C уважением администрация l2-mir.ru Платеж осуществлен сервисом www.a1pay.ru";            
        
        }

    }


 
    
$secret '92702689';
    
A1Lite_processor($_GET$secret);
Онлайн: 2
Реклама