Файл: public_html/payment1/index.php
Строк: 13
<?
include_once 'config.php';
$type='0';
if (isset($_GET['gold']) && is_numeric($_GET['gold']))
    {
    if (isset($cena_gold[$_GET['gold']]))
        {
        $summa=$cena_gold[$_GET['gold']];
        }
    }
if (isset($summa))
    {
        $root = $_SERVER['DOCUMENT_ROOT'];
        include_once($root.'/core/base.php'); //Коннект к БД
        falseauth();
        $data=file_get_contents('http://worldkassa.ru/user/oplata.php?id_shop='.$id_shop.'&summa='.$summa.'&hash='.$hash);
        if (is_numeric($data))
            {
                $db->query("INSERT INTO `worldkassa` (`id_user`, `id_bill`, `time`, `summa`) values('".$u['id']."', '".$data."', '".time()."', '".$summa."')");
                redirect("http://worldkassa.ru/user/oplata.php?uniq=".$data);
            }
            else
            {
                echo $data; //вывод ошибок WorldKassa, если есть
            }
    }
?>