|
|
@@ -1409,6 +1409,7 @@ function task_CRM_WYSWIETL_OBOWIAZKI() {
|
|
|
w.`ID_ZASOB`=".$_GET['CLZ_ID']."
|
|
|
and w.`A_STATUS` in('WAITING','NORMAL')
|
|
|
and p.`A_STATUS` in('WAITING','NORMAL')
|
|
|
+ order by p.SORT_PRIO
|
|
|
";
|
|
|
$res = $db->query($sql);
|
|
|
while ($r = $db->fetch($res)) {
|
|
|
@@ -1620,6 +1621,8 @@ function fun_SHOW_EXTERNAL_IMAGE() {
|
|
|
header("Etag: ".$etag);
|
|
|
header("Expires: " . gmdate("D, d M Y H:i:s", $expire_date) . " GMT");
|
|
|
header("Last-Modified: " . gmdate("D, d M Y H:i:s", $image_row->A_CREATE_DATE_TS) . " GMT");
|
|
|
+
|
|
|
+ if(function_exists('imagepng')) {
|
|
|
if ($image_row->TYPE == 'image/png') {
|
|
|
imagepng($image_resized);
|
|
|
} else if ($image_row->TYPE == 'image/jpeg' || $image_row->TYPE == 'image/jpg') {
|
|
|
@@ -1627,6 +1630,7 @@ function fun_SHOW_EXTERNAL_IMAGE() {
|
|
|
} else if ($image_row->TYPE == 'image/gif') {
|
|
|
imagegif($image_resized);
|
|
|
}
|
|
|
+ } else echo $image_row->IMAGE;
|
|
|
} else {
|
|
|
echo'ERROR wrong param resize (WxH)';
|
|
|
}
|