发发发
<?php require("../../class/connect.php"); include("../../class/db_sql.php"); include("../../data/dbcache/class.php"); require("../../member/class/user.php"); $link=db_connect(); $empire=new mysqlquery(); $classid=(int)$_POST['classid']; $id=(int)$_POST['id']; $userid=(int)getcvar('mluserid');//用户id if(!$userid){ echo '1'; over(); } $infotb=$class_r[$classid][tbname];//返回表 $r=$empire->fetch1("select * from {$dbtbpre}ecms_".$infotb." where id='$id' limit 1"); $infodatatb="{$dbtbpre}ecms_".$infotb."_data_".$r['stb'];//返回副表 $navinfor=$empire->fetch1("select morepic from ".$infodatatb." where id='$id'"); //$r=array_merge($r,$finfor); //模板 $listtemp='<center><img src="'.$public_r['add_phome_file'].'[!--piclist--]" alt="[!--title--]" class=content_img /></center>'; if($navinfor[morepic]) { $morpic= ""; $pic_arr=explode("::::::",$navinfor[morepic]); for($i=0;$i<count($pic_arr);$i++) { if(!$pic_arr[$i])continue; $meme=str_replace('[!--piclist--]',$pic_arr[$i],$listtemp); $meme=str_replace('[!--title--]',$r['title'],$meme); $morpic .=$meme; } echo $morpic; } over(); function over(){ global $empire; db_close(); $empire=null; exit; }