fetch1($query); if(!$r['id']||$r['classid']!=$classid) { printerror('ExiestSoftid','',1); } //副表 $finfor=$empire->fetch1("select ".ReturnSqlFtextF($mid)." from {$dbtbpre}ecms_".$tbname."_data_".$r[stb]." where id='$r[id]' limit 1"); $r=array_merge($r,$finfor); //区分下载地址 $path_r=explode("\r\n",$r[downpath]); if(!$path_r[$pathid]) { printerror('ExiestSoftid','',1); } $showdown_r=explode("::::::",$path_r[$pathid]); //下载权限 $nockpass=''; $downgroup=$showdown_r[2]; $user=array(); if($downgroup) { $user=islogin(); $nockpass=qReturnLoginPassNoCK($user['userid'],$user['username'],$user['rnd'],0); } //验证码 $ip=egetip(); $pass=md5(md5($classid."-!ecms!".$id."-!ecms!".$pathid).ReturnDownSysCheckIp()."wm_chief".$public_r[downpass].$user[userid]); $p=$user[userid].":::".$user[rnd].":::".$nockpass; DownSoft($classid,$id,$pathid,$p,$pass); db_close(); $empire=null; ?>