Move some statements
This commit is contained in:
parent
95e143f311
commit
2f2ce4ab4f
11
index.php
11
index.php
@ -1,4 +1,3 @@
|
|||||||
<?php require "inc.php"; ?>
|
|
||||||
<!--
|
<!--
|
||||||
_ _ _ ___ ____
|
_ _ _ ___ ____
|
||||||
| | (_| |__ _ __ ___ / _ \| _ \
|
| | (_| |__ _ __ ___ / _ \| _ \
|
||||||
@ -20,6 +19,10 @@ This file is part of LibreQR.
|
|||||||
-->
|
-->
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
use CodeItNow\BarcodeBundle\Utils\QrCode;
|
||||||
|
|
||||||
|
require "inc.php";
|
||||||
|
|
||||||
$params = array(
|
$params = array(
|
||||||
"txt" => "",
|
"txt" => "",
|
||||||
"redondancy" => DEFAULT_REDONDANCY,
|
"redondancy" => DEFAULT_REDONDANCY,
|
||||||
@ -70,9 +73,6 @@ if (
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
require "barcode-generator/Utils/QrCode.php";
|
|
||||||
use CodeItNow\BarcodeBundle\Utils\QrCode;
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="<?= $locale ?>">
|
<html lang="<?= $locale ?>">
|
||||||
@ -210,6 +210,9 @@ use CodeItNow\BarcodeBundle\Utils\QrCode;
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
if (!empty($params['txt'])) {
|
if (!empty($params['txt'])) {
|
||||||
|
|
||||||
|
require "barcode-generator/Utils/QrCode.php";
|
||||||
|
|
||||||
$qrCode = new QrCode();
|
$qrCode = new QrCode();
|
||||||
$qrCode
|
$qrCode
|
||||||
->setText($params['txt'])
|
->setText($params['txt'])
|
||||||
|
Loading…
Reference in New Issue
Block a user