-
-
Save parzibyte/0e547b5806bb380384ee664de04a437e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Parzibyte\CompartirArchivo; | |
use Parzibyte\Gestor; | |
if (!isset($_GET["hash"])) { | |
exit("No hay hash"); | |
} | |
include_once "vendor/autoload.php"; | |
$hash = $_GET["hash"]; | |
$detalles = CompartirArchivo::obtenerDetallesPublicosArchivoCompartido($hash); | |
if (!$detalles) { | |
exit("El archivo solicitado no existe o se ha dejado de compartir"); | |
} | |
Gestor::servirArchivoParaDescargar($detalles->id); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment