From 3a28356193fdcbec0a29783efc7797dc7175ec82 Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Mon, 16 Feb 2026 21:31:48 +0000
Subject: [PATCH] Add QR Code renderer
---
public.php | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/public.php b/public.php
index 440365a..06eb6c9 100644
--- a/public.php
+++ b/public.php
@@ -2,7 +2,16 @@
require_once(__DIR__ . '/vendor/autoload.php');
try {
- require_once(__DIR__ . '/hook_enable.php');
+ if (isset($_GET['barcode'])) {
+ header('Content-Type: image/svg+xml');
+ echo (new \chillerlan\QRCode\QRCode(new \chillerlan\QRCode\QROptions([
+ 'outputBase64' => false,
+ 'addQuietzone' => false,
+ 'drawLightModules' => false,
+ 'connectPaths' => true,
+ ])))->render($_GET['barcode']);
+ die();
+ }
$helper = new \SIPL\UCRM\wFirma\UcrmHelper();
$event = $helper->getCurrentEvent();
--
Gitblit v1.10.0