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

This commit is contained in:
Shine
2024-12-31 17:29:31 +01:00
parent a1bd583ad3
commit 850f5e5c52
7 changed files with 494 additions and 215 deletions
+8 -1
View File
@@ -2,7 +2,14 @@
require_once 'config/config.php';
require_once BASE_PATH . '/lib/ICS/ICS.php';
require_once BASE_PATH . '/lib/vCard/vCard.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 StaticQrcode {
private $sData; // Data for the qr code