🐛 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
+2
View File
@@ -15,6 +15,7 @@ if(is_string(Getenv('TYPE')) && Getenv('TYPE') == "docker") {
define('DATABASE_CHARSET', Getenv('DATABASE_CHARSET'));
define('TYPE', Getenv('TYPE'));
define('BASE_URL', Getenv('BASE_URL'));
define("QRCODE_GENERATOR", Getenv('QRCODE_GENERATOR'));
} else {
define('DATABASE_HOST', "localhost");
define('DATABASE_PORT', "3306");
@@ -23,6 +24,7 @@ if(is_string(Getenv('TYPE')) && Getenv('TYPE') == "docker") {
define('DATABASE_PASSWORD', "root");
define('DATABASE_PREFIX', "qr_");
define('DATABASE_CHARSET', "utf8");
define("QRCODE_GENERATOR", "external-api.qrserver.com"); // external-api.qrserver.com => https://api.qrserver.com/v1/create-qr-code/?data= // internal-chillerlan.qrcode => https://github.com/chillerlan/php-qrcode
}
/*
|--------------------------------------------------------------------------