{@ $chk_movie = $chk_image = $chk_attach = false; if(strpos($document->getContent(),'youtube.com/embed')!==false || strpos($document->getContent(),'vimeo.com/video')!==false || strpos($document->getContent(),'kakao.com/embed')!==false || strpos($document->getContent(),'naver.com/flash')!==false || ($mi->common_play_icon == '' && ( strpos($document->getContent(),'https://youtu.be/')!==false || strpos($document->getContent(),'https://www.youtube.com/watch?v=')!==false ) ) ): $chk_movie = true; elseif(preg_match("/]*src=[\"']?([^>\"']+)[\"']?[^>]*>/i", $document->getContent())): $chk_image = true; endif; if (!$document->getExtraImages() && !$chk_movie && !$chk_image) $showIconArea = false; else $showIconArea = true; }
{@ $filetmp = strtolower(substr(strrchr($file->source_filename,'.'),1)); if($filetmp == 'jpg' || $filetmp == 'gif' || $filetmp == 'png' || $filetmp == 'svg' || $filetmp == 'jpeg' || $filetmp == 'bmp') $chk_image = true; else $chk_attach = true; }