🐛 Global switch for the QR code generator (#129)

This commit is contained in:
Shine
2024-12-31 17:29:31 +01:00
parent 8238a81494
commit 869dd2c799
7 changed files with 494 additions and 215 deletions
+8 -1
View File
@@ -1,6 +1,13 @@
<?php
require_once 'config/config.php';
require_once BASE_PATH . '/lib/Qrcode/Qrcode.php';
if (QRCODE_GENERATOR === "external-api.qrserver.com") {
require_once BASE_PATH . '/lib/Qrcode/Qrcode.php';
}
if (QRCODE_GENERATOR === "internal-chillerlan.qrcode") {
require_once BASE_PATH . '/lib/Qrcode/Qrcode-intchil.php';
}
class DynamicQrcode {