www.gusucode.com > 网猫影视系统NetMao Movie 4.6.6 开源版源码程序 > upload/templates/default/movie.ctrl.php
<?php if(!defined('IN_NetMao')) exit('Access Denied'); //movie $movie=''; $result=$db->query("select * from {$tablepre}movies where isshow>0 and mid='$mid'"); if($db->num_rows($result)==1){ $r=$db->fetch_array($result); $r[category]=$_NCACHE['categorys'][$r[cid]]; $r[movieurl]=movieurl($r[mid]); $r[picture]=moviepic($r[picture]); $r[srun]=movierun($r[isrun]); $r[stime]=date("Y-m-d",$r[addtime]); $r[sname]=cutstr($r[name],50); $r[actor]=cutstr($r[actor],46); $movie=$r; } //$category $category=''; $category=$_NCACHE['categorys'][$movie[cid]]; //$en_movie $en_movie = ''; $en_movie = array( 'mid' => $movie[mid], 'cid' => $movie[cid], 'mname' => $movie[name], ); //don't modify the content below $navtitle = ''; $navtitle = strip_tags($movie[name])." ".strip_tags($category[name]); $metakeywords = ''; $metakeywords = $movie[keyword]; //tohtml $filename=$movie[movieurl].'.htm'; nmtohtml($filename,'movie'); ?>