X-Git-Url: https://git.llucax.com/mecon/intranet.git/blobdiff_plain/9600fe7934a4f50b31e1d00f456bbf5ce993102e..92dddbead1f3163d8100b72e3e396b09dbe3b637:/sistema/www/attach.php diff --git a/sistema/www/attach.php b/sistema/www/attach.php index aca38e1..e736846 100644 --- a/sistema/www/attach.php +++ b/sistema/www/attach.php @@ -4,13 +4,12 @@ No esta terminado por que mientras obtenga los datos de la vieja herramienta no puedo leer directamente del directorio donde esta guardado */ -require_once '../../lib/mecondavdb.php'; +require_once 'intranetdb.php'; -$db = MEconDAVDB::Connect(); $sql = "SELECT mimetype, filename, size - FROM FilesForArticle + FROM MEconDAV.FilesForArticle WHERE file_for_article_id = ".$_GET['numero']; -$row = $db->getRow($sql); +$row = $DB->getRow($sql); $mime = $row[0]; $filename = $row[1]; $size = $row[2]; @@ -20,5 +19,6 @@ header('Location Content-Disposition= attachment; filename='.$filename); header('Location Pragma=no-cache'); header('Location Expires=0'); header('Location Content-Length='.$size); + ?>