Файл: worldkassa/index.php
Строк: 47
<?
require '../sys/sid.php';
require '../sys/config.php';
include '../sys/user.php';
include '../sys/head.php';
include_once 'denor.php';
if (isset($_GET['ok']))
{
$summa=$_POST['summa'];
$data=file_get_contents('http://worldkassa.ru/user/oplata.php?id_shop='.$id_shop.'&summa='.$summa.'&hash='.$hash);
mysql_query("INSERT INTO `worldkassa` (`id_user`, `id_bill`, `time`, `summa`) values('".$user['id']."', '".$data."', '".time()."', '".$summa."')");
header("Location: http://worldkassa.ru/user/oplata.php?uniq=".$data);
exit();
}
echo '
Сделайте выбор :<br/>
<form action="?ok" method="post">
<input name="summa" type="hidden" value="10"/> <br/>
<input type="submit" value="100 кристалов за 10 руб"/>
</form>
<form action="?ok" method="post">
<input name="summa" type="hidden" value="20"/> <br/>
<input type="submit" value="200 кристалов за 20 руб"/>
</form>
<form action="?ok" method="post">
<input name="summa" type="hidden" value="30"/> <br/>
<input type="submit" value="300 кристалов за 30 руб"/>
</form>
<form action="?ok" method="post">
<input name="summa" type="hidden" value="40"/> <br/>
<input type="submit" value="400 кристалов за 40 руб"/>
</form>
<form action="?ok" method="post">
<input name="summa" type="hidden" value="50"/> <br/>
<input type="submit" value="500 кристалов за 50 руб "/>
</form>
<form action="?ok" method="post">
<input name="summa" type="hidden" value="100"/> <br/>
<input type="submit" value="1000 кристалов за 100 руб "/>
</form>
<form action="?ok" method="post">
<input name="summa" type="hidden" value="200"/> <br/>
<input type="submit" value="2000 кристалов за 200 руб "/>
</form>
';
include '../sys/foot.php';
?>