浏览代码

Maly update na wypadek jak nie ma libpng - pewnie to nie dziala, ale zawsze lepiej niz nic

a.binder 11 年之前
父节点
当前提交
982d65aacf
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      SE/procesy5.php

+ 4 - 0
SE/procesy5.php

@@ -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)';
 			}