mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-27 18:48:13 +00:00
🛀 examples cleanup
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user