-
$_thread['tid'],'filetype'=>'image'),'',array('filename'), NULL);
//$attach = db_sql_find("SELECT * FROM bbs_attach WHERE tid == $_thread['tid'] and filetype == 'image' LIMIT 1;");
$img_path = $conf['upload_url'].'attach/'.$attach['filename'];
$ok = $attach['filename'];
if(empty($ok))
{
?>