$img->met_image_pos = $met_watermark; } else { $img->met_text = $met_text_wate; $img->met_text_size = $met_text_bigsize; $img->met_text_color = $met_text_color; $img->met_text_angle = $met_text_angle; $img->met_text_pos = $met_watermark; $img->met_text_font = $met_text_fonts; } $img->src_image_name = $met_dis_imgs; $img->save_file = $met_dis_imgs; $img->create(); } } if ($met_autothumb_ok && $module != 67 && $module) { imgstyle($module); $met_big_img = "../" . $met_big_img; $imgurlss = $f->createthumb($met_big_img, $met_img_x, $met_img_y); if ($f->get_error() == 1) { echo $f->get_errorcode(); die; } if ($met_thumb_wate == 1) { if ($met_wate_class == 2) { $img->met_image_name = $met_wate_img; $img->met_image_pos = $met_watermark; } else { $img->met_text = $met_text_wate; $img->met_text_size = $met_text_size; $img->met_text_color = $met_text_color; $img->met_text_angle = $met_text_angle;
$filename = explode("images/", $out[1]); $filename = $filename[count($filename) - 1]; if ($filename) { $val['imgurl'] = '../upload/images/' . $filename; $val['imgurls'] = '../upload/images/thumb/' . str_ireplace("watermark/", "", $filename); $query = "UPDATE {$met_news} SET imgurl='{$val['imgurl']}',imgurls='{$val['imgurls']}' WHERE id='{$val['id']}'"; echo $query; $db->query($query); echo $db->error($query); } } if ($val['imgurls']) { $met_big_img = str_ireplace("/watermark", "", $val['imgurl']); $imgurls = $depth . '../' . $val['imgurls']; if ($met_img_style == 1) { imgstyle($mou); } $setthumb = explode("/", $met_big_img); $f = new upfile($met_img_type, "../../../upload/{$setthumb['2']}/", $met_img_maxsize, '', 1); $f->savename = $setthumb[3]; $met_thumb_img = $depth . "../" . $met_big_img; $met_big_img_iconv = stristr(PHP_OS, "WIN") ? @iconv("utf-8", "gbk", $met_thumb_img) : $met_thumb_img; if (file_exists($met_big_img_iconv)) { $imgurls = $f->createthumb($met_thumb_img, $met_img_x, $met_img_y); if ($f->get_error() == 0) { if ($met_thumb_wate == 1) { if ($met_wate_class == 2) { $img->met_image_name = $depth . $met_wate_img; } else { $img->met_text_size = $met_text_size; }