X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=inc%2Feventz%2Fconfigure_image.inc;h=4e4bc5db714411b25cae032b55ca35ec50d0ae0f;hb=HEAD;hp=92cfcb26f4f1636eeb217978943519b288e97500;hpb=e586807dafc64c3fe152ab518599e6cf3f0f84e1;p=mirrors%2FKyberia-bloodline.git diff --git a/inc/eventz/configure_image.inc b/inc/eventz/configure_image.inc deleted file mode 100644 index 92cfcb2..0000000 --- a/inc/eventz/configure_image.inc +++ /dev/null @@ -1,65 +0,0 @@ -".SYSTEM_ROOT."images/nodes/".substr($node['node_id'],0,1)."/".substr($node['node_id'],1,1)."/".$node['node_id'].".gif"; - // workaround by mifo: - if (stristr($image_name,".jpg") || stristr($image_name,".jpeg")) - $orig = imagecreatefromjpeg($image_tmp); - - if (stristr($image_name,".gif")) - $orig = imagecreatefromgif($image_tmp); - - if ($orig) - { - $orig_x = imagesx($orig); - $orig_y = imagesy($orig); -// if ($orig_x > $width) - $image_x = $width; - - $image_y = round(($orig_y * $image_x) / $orig_x); - - $image = imagecreatetruecolor($image_x, $image_y); - imagecopyresampled($image, $orig, 0, 0, 0, 0, $image_x, $image_y, $orig_x, $orig_y); -// echo $output_image; - imagegif($image, $output_image); - } - - - - } - //if ($cmd) { - // shell_exec($cmd); - //} - - } - - } - return true; - } - -?>