if(!function_exists('Getimgs')) { function Getimgs($aid, $imgwith = 300, $imgheight = 270, $num = 0,$style = '') { global $dsql; $imgurls = ''; $row = $dsql -> getone("Select imgurls From `dede_addonimages` where aid='$aid'"); $imgurls = $row['imgurls']; preg_match_all("/{dede:img (.*)}(.*){/dede:img/isU",$imgurls, $wordcount); $count = count($wordcount[2]); if ($num > $count || $num == 0){ $num = $count; } for($i = 0;$i < $num;$i++){ preg_match_all("/text='(.*)'/isU", $wordcount[1][$i],$textword); $alttext=trim($textword[1][0]); if($style == 'li'){ $imglist .= "
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)