22 lines
622 B
PHP
22 lines
622 B
PHP
<?php
|
|
/**
|
|
* PHP Dynamic Qr code
|
|
*
|
|
* @author Giandonato Inverso <info@giandonatoinverso.it>
|
|
* @copyright Copyright (c) 2020-2021
|
|
* @license https://opensource.org/licenses/MIT MIT License
|
|
* @link https://github.com/giandonatoinverso/PHP-Dynamic-Qr-code
|
|
* @version 1.0
|
|
*/
|
|
|
|
session_start();
|
|
require_once 'includes/auth_validate.php';
|
|
require_once './config/config.php';
|
|
|
|
// Dynamic qrcode class
|
|
require_once BASE_PATH . '/lib/Dynamic_Qrcode/Dynamic_Qrcode.php';
|
|
$dynamic_qrcode = new Dynamic_Qrcode();
|
|
|
|
if ($_SERVER['REQUEST_METHOD'] === 'POST')
|
|
$dynamic_qrcode->cancel($_POST['del_id'], $_POST['filename']);
|