🛀 examples cleanup

This commit is contained in:
smiley
2023-09-03 15:29:24 +02:00
parent 17e8ccae62
commit a19b7f4fbd
19 changed files with 571 additions and 539 deletions
+6 -4
View File
@@ -1,6 +1,6 @@
<?php
/**
* multimode.php
* multi/mixed mode example
*
* @created 31.01.2023
* @author smiley <smiley@chillerlan.net>
@@ -34,7 +34,9 @@ $qrcode = (new QRCode($options))
->addByteSegment('https://www.bundesverfassungsgericht.de/SharedDocs/Pressemitteilungen/DE/2016/bvg16-036.html')
;
$render = $qrcode->render();
$out = $qrcode->render();
if(PHP_SAPI !== 'cli'){
header('Content-type: image/svg+xml');
@@ -42,10 +44,10 @@ if(PHP_SAPI !== 'cli'){
if(extension_loaded('zlib')){
header('Vary: Accept-Encoding');
header('Content-Encoding: gzip');
$render = gzencode($render, 9);
$out = gzencode($out, 9);
}
}
echo $render;
echo $out;
exit;