X-Git-Url: https://git.llucax.com/mecon/intranet.git/blobdiff_plain/4f8bc31d20f46ddb617fc55800841d680337155b..51752326b82fed368e79077f4fa9901174cb24ba:/sistema/www/servicios/informes/get_file.php diff --git a/sistema/www/servicios/informes/get_file.php b/sistema/www/servicios/informes/get_file.php index 27e7921..c0446af 100755 --- a/sistema/www/servicios/informes/get_file.php +++ b/sistema/www/servicios/informes/get_file.php @@ -9,19 +9,11 @@ informes sin utilizar MEconDAV Myrna Degano ------------------------------------------------------------------------------*/ -require_once 'DB.php'; - -//Conexión a la BD -$dbh = DB::connect("mysql://mark:mark@intranet-db/MEconDAV"); -if (DB::isError($dbh)) { - die ($dbh->getMessage()); -} - //Obtener Datos del Adjunto $sql = "SELECT mimetype, filename, size - FROM FilesForArticle + FROM MEconDAV.FilesForArticle WHERE file_for_article_id = ". $_GET['id']; -$datos = $dbh->getAll($sql); +$datos = $DB->getAll($sql); $mime = $datos[0][0]; $filename = $datos[0][1]; @@ -38,4 +30,4 @@ header("Expires: 0"); header("Content-Length: ".$filesize); readfile ($dir); -?> \ No newline at end of file +?>