From 43f0786afb8686a73dcf42b862c3f94fb09abc02 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 1 Sep 2010 10:29:37 +0000 Subject: [PATCH] Qual: PDF model moved into includes/modules --- htdocs/adherents/cartes/etiquette.php | 30 --------------------------- 1 file changed, 30 deletions(-) diff --git a/htdocs/adherents/cartes/etiquette.php b/htdocs/adherents/cartes/etiquette.php index aa1cd21ee8f..5f41de204ab 100755 --- a/htdocs/adherents/cartes/etiquette.php +++ b/htdocs/adherents/cartes/etiquette.php @@ -97,9 +97,6 @@ if ($result) 'photo'=>$objp->photo); $i++; - -// $message=sprintf("%s\n%s\n%s %s\n%s", $objp->prenom." ".$objp->nom, $objp->adresse, $objp->cp, $objp->ville, $objp->pays); -// $pdf->Add_PDF_card($message,'','',$langs); } // Build and output PDF @@ -109,33 +106,6 @@ if ($result) dol_print_error($db,$result); exit; } - - /* - $pdf->Output($file,'F'); - - if (! empty($conf->global->MAIN_UMASK)) - @chmod($file, octdec($conf->global->MAIN_UMASK)); - - $db->close(); - - clearstatcache(); - - $attachment=true; - if (! empty($conf->global->MAIN_DISABLE_FORCE_SAVEAS)) $attachment=false; - $filename='tmplabels.pdf'; - $type=dol_mimetype($filename); - - if ($encoding) header('Content-Encoding: '.$encoding); - if ($type) header('Content-Type: '.$type); - if ($attachment) header('Content-Disposition: attachment; filename="'.$filename.'"'); - else header('Content-Disposition: inline; filename="'.$filename.'"'); - - // Ajout directives pour resoudre bug IE - header('Cache-Control: Public, must-revalidate'); - header('Pragma: public'); - - readfile($file); - */ } else {