EIOS/rabprog/inc/class_QRcode.php

17 lines
356 B
PHP
Raw Permalink Normal View History

2023-12-28 15:39:22 +03:00
<?php
class class_QRcode{
private $QR;
function __construct(){
require_once 'inc/phpqrcode/qrlib.php';
}
function QR_get($text){
$file = 'upload/qrs/qr_tmp.png';
$level = 'H'; //L M Q H
$size = 4;
$margin = 1;
QRcode::png($text, $file, $level, $size, $margin);
return $file;
}
}