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"];