<?
$gds = str_replace('..',"", $gds);
$gds = str_replace('.',"", $gds);
$gds = str_replace('/',"", $gds);
$mail = str_replace('..',"", $mail);
$mail = str_replace('/',"", $mail);
?>
<?
if($gds > 1000 and file_exists("goods/$gds") ==TRUE
include("const.inc");
$mode=0;
$nomer = file("count/number.inc");
$point = (integer) trim($nomer[0]);
$point = $point + 1;
$number = fopen("count/number.inc", "w");
fwrite($number, $point);
fclose($number);
$hash = md5("$point:J2qdD3qWeqZ4h5SdH6o8B9");
$tovar = @file("goods/$gds");
$price=trim($tovar[1]);
if($price - (int) $price == 0) {
$price=$price.".0";
}
if($price*10 - (int) ($price*10) == 0) {
$price=$price."0";
}
$file = md5("$gds:$serv_const_shopwmz:$price:$point");
$fga = fopen("cashwm/$file", "w+");
$stroka="$gds^$price^$serv_const_shopwmz^$point^$mode^\n";
fwrite($fga, $stroka );
fclose($fga);
print "<center><b>Подтвердите оплату товара: $tovar[3]</center></b>";
else:
print "<center><b>Неизвестный товар</b></center>";
endif;
?>
<center><form method="POST" action="https://merchant.webmoney.ru/lmi/payment.asp">
<input type="hidden" name="LMI_PAYMENT_AMOUNT" value="<? print $price; ?>">
<input type="hidden" name="LMI_PAYMENT_DESC" value="<? print trim($tovar[3]); ?>">
<input type="hidden" name="LMI_PAYMENT_NO" value="<? print $point ?>">
<input type="hidden" name="LMI_PAYEE_PURSE" value="<? print $serv_const_shopwmz ?>">
<input type="hidden" name="LMI_SIM_MODE" value="0">
<input type="hidden" name="FIELD_1" value="<? print $gds; ?>">
<input type="hidden" name="FIELD_2" value="<? print $hash; ?>">
<input type="hidden" name="FIELD_3" value="<? print $mail ?>">
<input type="submit" name="Submit" value="Подтверждаю оплату" style="border:1px solid #363636; font-family: Verdana, Arial; font-size: 8pt; background-color:#F5F5F5; width:200; height:19">
</form></center>