core/api/modules/foto_mini_page/ajax.php

21 lines
751 B
PHP
Raw Normal View History

2022-12-11 13:55:49 +05:00
<?php
switch(@$_POST['act']) {
case 'creat_qr':
unset($_POST['act']);
$zakaz='Пользователь: ' . $_SESSION['user_id'];
$txt='ST00012|Name=' . '1027700132195' . '|PersonalAcc=' . '40817810216546803418' . '|BankName=' . 'УРАЛЬСКИЙ БАНК ПАО СБЕРБАНК' . '|BIC=' . '046577674' . '|CorrespAcc=' . '30101810500000000674' . '|KPP=' . '665843001' . '|PayeeINN=' . '7707083893' . '|Purpose=' . $zakaz . '|Sum=' . $_POST['summa'] . '00';
require_once (MYDIR . '/api/soft/qrcode/phpqrcode/qrlib.php');
@mkdir (MYDIR . '/img/tmpqr', 0700);
$rnd=rand(1, 100000);
QRcode::png($txt, MYDIR . '/img/tmpqr/' . $rnd . '.png');
echo '/img/tmpqr/' . $rnd . '.png';
break;
default:
}