From 808e17c9caa88014c239efd81e7fda39520ae085 Mon Sep 17 00:00:00 2001 From: Rafael Tavares Juliani Date: Sun, 22 Oct 2023 01:22:04 -0300 Subject: [PATCH] teste --- funcaoQRCode.php | 4 ++++ index.php | 2 ++ 2 files changed, 6 insertions(+) diff --git a/funcaoQRCode.php b/funcaoQRCode.php index 5ee8cd3..82b9913 100644 --- a/funcaoQRCode.php +++ b/funcaoQRCode.php @@ -6,8 +6,12 @@ function registrarAcessoQrCode($chave, $destino_redirecionamento) { $env = parse_ini_file('.env'); + echo $_GET["qrark"]; + if (isset($_GET["qrark"]) && $_GET["qrark"] == 1) { + echo "dentro da func: ".$_GET["qrark"]; + //Pegando as variáveis de acesso $db = $env['DB_NAME']; $dbUser = $env['DB_USER']; diff --git a/index.php b/index.php index 31185f1..a4aa589 100644 --- a/index.php +++ b/index.php @@ -35,6 +35,8 @@ function direcionar_ark() { $site_base = "https://ark.livro.online/"; //Coloque o endereço do local em que estes arquivos estão hospedados + echo "pegou o ark: ".$_GET["ark"]; + if(isset($_GET["ark"])){ $ark = $_GET["ark"];