Nettoyage du code
This commit is contained in:
parent
29d90e5c75
commit
876937a84f
@ -114,7 +114,7 @@ if ($_GET["facid"] > 0)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print '<a href="facture.php?facid='.$fac->id.'&action=classer">Classer la facture</a>';
|
print '-';
|
||||||
}
|
}
|
||||||
print " </td>";
|
print " </td>";
|
||||||
}
|
}
|
||||||
@ -130,13 +130,9 @@ if ($_GET["facid"] > 0)
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
$file = FAC_OUTPUTDIR . "/" . $fac->ref . "/" . $fac->ref . ".pdf";
|
$file = FAC_OUTPUTDIR . "/" . $fac->ref . "/" . $fac->ref . ".pdf";
|
||||||
$filedetail = FAC_OUTPUTDIR . "/" . $fac->ref . "/" . $fac->ref . "-detail.pdf";
|
$filedetail = FAC_OUTPUTDIR . "/" . $fac->ref . "/" . $fac->ref . "-detail.pdf";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (file_exists($file))
|
if (file_exists($file))
|
||||||
{
|
{
|
||||||
$encfile = urlencode($file);
|
$encfile = urlencode($file);
|
||||||
@ -177,20 +173,19 @@ if ($_GET["facid"] > 0)
|
|||||||
$reason = imagick_failedreason( $handle ) ;
|
$reason = imagick_failedreason( $handle ) ;
|
||||||
$description = imagick_faileddescription( $handle ) ;
|
$description = imagick_faileddescription( $handle ) ;
|
||||||
|
|
||||||
print "handle failed!<BR>\nReason: $reason<BR>\nDescription: $description<BR>\n" ;
|
print "handle failed!<BR>\nReason: $reason<BR>\nDescription: $description<BR>\n";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
imagick_convert( $handle, "PNG" ) ;
|
imagick_convert( $handle, "PNG" ) ;
|
||||||
/*
|
|
||||||
if ( !imagick_resize( $handle, 700, 700, IMAGICK_FILTER_UNKNOWN, 0, "200+200!" ) )
|
|
||||||
{
|
|
||||||
$reason = imagick_failedreason( $handle ) ;
|
|
||||||
$description = imagick_faileddescription( $handle ) ;
|
|
||||||
|
|
||||||
print "imagick_resize() failed<BR>\nReason: $reason<BR>\nDescription: $description<BR>\n" ;
|
if ( imagick_iserror( $handle ) )
|
||||||
|
{
|
||||||
|
$reason = imagick_failedreason( $handle ) ;
|
||||||
|
$description = imagick_faileddescription( $handle ) ;
|
||||||
|
|
||||||
|
print "handle failed!<BR>\nReason: $reason<BR>\nDescription: $description<BR>\n";
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
imagick_writeimage( $handle, $file .".png");
|
imagick_writeimage( $handle, $file .".png");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user