Ajustes diversas. Correcao de numero ark digitado errado
This commit is contained in:
1 parent
b5c04d3663
commit
b040f5bfda
14 files changed
+16
-27
No files matched your search
@@ -35,7 +35,6 @@ 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"])){
|
||||
|
||||
@@ -137,7 +136,7 @@ function direcionar_ark() {
|
||||
$caminho_arquivo_ark = $pasta_json."/".$nome_arquivo_ark;
|
||||
|
||||
|
||||
echo "caminho : ".$caminho_arquivo_ark." ----- ";
|
||||
|
||||
|
||||
if(file_exists($caminho_arquivo_ark)){
|
||||
|
||||
@@ -161,9 +160,7 @@ function direcionar_ark() {
|
||||
if($tem_interrogacao){
|
||||
|
||||
registrarAcessoQrCode( $ark, "Consulta com interrogação, ou seja, buscando metadados.");
|
||||
ob_flush(); // Liberar o buffer de saída
|
||||
flush();
|
||||
sleep(5);
|
||||
|
||||
header('Location:'.$site_base.$caminho_arquivo_ark);
|
||||
die();
|
||||
|
||||
@@ -178,9 +175,7 @@ flush();
|
||||
} else {
|
||||
|
||||
registrarAcessoQrCode($ark, "Não possui um apontamento, logo, foi redirecionado para os metadados.");
|
||||
ob_flush(); // Liberar o buffer de saída
|
||||
flush();
|
||||
sleep(5);
|
||||
|
||||
header('Location:'.$site_base.$caminho_arquivo_ark);
|
||||
die();
|
||||
|
||||
@@ -189,9 +184,7 @@ flush();
|
||||
if(!$tem_interrogacao){
|
||||
|
||||
registrarAcessoQrCode($ark, $link_completo);
|
||||
ob_flush(); // Liberar o buffer de saída
|
||||
flush();
|
||||
sleep(5);
|
||||
|
||||
header('Location: '.$link_completo);
|
||||
die();
|
||||
|
||||
|
||||
Reference in new issue
Block a user