Размер файла: 2.03Kb
<?php
require_once './element_options/element_options.php';
if (!$user) { header('Location: /'); exit; }
$query = mysql_query("SELECT * FROM element_payment");
$mrh_login = "elemental2014-05";
$mrh_pass1 = "hjf4jh534h54g6j";
$inv_id = 0;
$culture = "ru";
$in_curr = "";
# $inv_desc = "Покупка золота в игре Повелитель Стихий"; // invoice desc
# $out_summ = "10.00"; // invoice summ
$title = 'Купить золото';
require_once './element_include/element_head.php';
require_once './element_include/element_header_user_true.php';
echo '<div class="nfl p5 mb5 cntr small mlra">';
while ($myrrow = mysql_fetch_assoc($query)) {
$out_summ = $myrrow['cena'];
$gold = $myrrow['gold'];
$shp_item = $myrrow['id'];
$crc = md5("$mrh_login:$out_summ:$inv_id:$mrh_pass1:Shpa=$user[lost_id]:Shpb=$shp_item");
# https://merchant.roboxchange.com/Index.aspx
# http://test.robokassa.ru/Index.aspx
echo '<div class="mt5 mb5 yellow1 cntr">';
echo '<img src="/images/icons/gold.png">'.$gold.' золота => '.$out_summ.' рублей';
print "\n\n<form action='https://merchant.roboxchange.com/Index.aspx' method=POST>\n".
"<input type=hidden name=MrchLogin value=$mrh_login>\n".
"<input type=hidden name=OutSum value=$out_summ>\n".
"<input type=hidden name=InvId value=$inv_id>\n".
"<input type=hidden name=Desc value='Покупка $gold золотых в игре Повелитель Стихий'>\n".
"<input type=hidden name=SignatureValue value=$crc>\n".
"<input type=hidden name=Shpa value='$user[lost_id]'>\n".
"<input type=hidden name=Shpb value='$shp_item'>\n".
"<input type=hidden name=IncCurrLabel value=$in_curr>\n".
"<input type=hidden name=Culture value=$culture>\n".
"<span class='button w90'><input type=submit class='ttl' value='Купить $gold золота'/></span>\n".
"</form>";
echo '<div class="hr"></div></div>';
}
echo '</div>';
require_once './element_include/element_foot_user_true.php';
?>