core/api/modules/set_img/load.php

15 lines
793 B
PHP
Raw Permalink Normal View History

2022-12-11 13:55:49 +05:00
<?php
session_start();
define( 'MYDIR', $_SERVER['DOCUMENT_ROOT'] );
$zakaz='Пользователь: ' . $_SESSION['user_id'];
$txt='ST00012|Name=' . 'Евдокимов Юрий Владимирович' . '|PersonalAcc=' . '40817810216546803418' . '|BankName=' . 'УРАЛЬСКИЙ БАНК ПАО СБЕРБАНК' . '|BIC=' . '046577674' . '|CorrespAcc=' . '30101810500000000674' . '|KPP=' . '665843001' . '|PayeeINN=' . '7707083893' . '|Purpose=' . $zakaz . '|Sum=' . $_GET['summ'] . '00';
require_once (MYDIR . '/api/soft/qrcode/phpqrcode/qrlib.php');
@mkdir (MYDIR . '/img/tmpqr', 0700);
$rnd=rand(100000000, 999999999);
QRcode::png($txt, MYDIR . '/img/tmpqr/' . $rnd . '.png');
echo '<img src="/img/tmpqr/' . $rnd . '.png?id=' . md5($rnd) . '">' ;