phpBMS

Ticket #34: invoices_pdfworkorder.php.2.diff

File invoices_pdfworkorder.php.2.diff, 0.9 KB (added by anonymous, 6 years ago)
  • invoices_pdfworkorder.php

     
    107107                        if(!$pictureresult) reportError(300,"Error Retrieving Logo Graphic"); 
    108108                        $thepicture=mysql_fetch_array($pictureresult); 
    109109                 
    110                 if($thepicture["type"]=="IMAGE/JPEG")                    
    111                         $pdf->MemImage($thepicture["file"],$leftmargin,$topmargin,$tempwidth,0,"JPEG");  
     110                if($thepicture["type"]=="IMAGE/JPEG")                   { 
     111                        $image = $thepicture["file"]; 
     112                        $pdf->Image('var://image',$leftmargin,$topmargin,$tempwidth,0,"JPEG");   
     113                } 
    112114                elseif($thepicture["type"]=="IMAGE/PNG") 
    113115                        $pdf->MemImage($thepicture["file"],$leftmargin,$topmargin,$tempwidth);   
    114                  
     116 
    115117                //next company name 
    116118                $pdf->SetXY($tempwidth+$leftmargin,$topmargin); 
    117119                $pdf->SetFont("Times","B",12); 
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.