New: Les images sont affiches travers le wrapper viewimage pour viter visualitaion sans droits.

This commit is contained in:
Laurent Destailleur 2005-02-04 23:10:38 +00:00
parent 0ecc52d176
commit f793994beb

View File

@ -239,7 +239,6 @@ if ($_GET["facid"] > 0)
}
}
print 'xxxxxxxxxximg src="'.DOL_URL_ROOT . '/viewimage.php?modulepart=apercufacture&file='.urlencode($relativepathimage).'"';
if (file_exists($fileimage))
{
print '<img src="'.DOL_URL_ROOT . '/viewimage.php?modulepart=apercufacture&file='.urlencode($relativepathimage).'">';