class.top_comment.php:
Unable to find source-code formatter for language: php. Available languages are: actionscript, html, java, javascript, none, sql, xhtml, xml
<? /* +------------------------------------------------------------------------------ * Filename: $variable * Create Day: Tue May 03 14:33:48 GMT+08:00 2005 * Author: xshArp@iZz Soft * Email: xsharp@justdn.com * Website: http://www.justdn.org * ======================================== * Attention: 禁止未经我们允许的任何个人或商业使用! +------------------------------------------------------------------------------ */ // @Copyright iZz Soft 2000-2005 // @Wesite: http://www.izzsoft.com // @Version: $Id: class.top_comment.php 1406 2006-10-09 08:00:22Z xsharp $ include_once(dirname(__FILE__)."/taglib.php"); class tag_top_comment extends taglib { function main() { $this->top_replay(); } /** * 获取热门评论 * * @param none * @access public * @return void * @package inews * @subpackage mod_comment * [C] Tue May 03 14:43:22 GMT+08:00 2005 */ // 评论的数据表是:$this->dt->comment_info 和 $this->dt->comment_data,可以使用 guid 进行链接 // 评论数据表的的结构参见数据库schema function top_replay(){ $num = ($this->tag_setting[num])?$this->tag_setting[num]:10; $skin_id = ($this->tag_setting[skin_id])?$this->tag_setting[skin_id]:1; $sql = "SELECT * FROM ".$this->dt->comment_info." WHERE 1 "; if($this->tag_setting[cid] > 1){ $sql .= "and c_id='".$this->tag_setting[cid]."'"; } $sql .= " ORDER BY comment_count DESC "; $rs = $this->db->SelectLimit($sql,$num); $rows = $rs->GetRows(); //print_m($rows); if(is_array($rows) and count($rows) > 0){ // 处理,如不需要处理直接绑定模板 } // 输出 echo $this->template->quick_get_from_handle('comment_top_'.$skin_id,$rows); } } ?>
tag.top_comment.php:
Unable to find source-code formatter for language: php. Available languages are: actionscript, html, java, javascript, none, sql, xhtml, xml
<? /* +------------------------------------------------------------------------------ * Filename: tag.comment_top.php * Create Day: Tue May 03 14:47:47 GMT+08:00 2005 * Author: xshArp@iZz Studio * Email: xsharp@justdn.com * Website: http://www.justdn.org * ======================================== * Attention: 禁止未经我们允许的任何个人或商业使用! +------------------------------------------------------------------------------ */ // @Copyright iZz Soft 2000-2005 // @Wesite: http://www.izzsoft.com // @Version: $Id: tag.top_comment.php 1333 2006-09-05 05:50:03Z xsharp $ include('tag_pre.php'); // 检测缓冲文件 if(!database::cache_data_check($cache_file,$timeout)){ $tag = new tag_top_comment(); $tag->write($cache_file,$tag->output); $tag->output(); }else{ readfile($cache_file); } ?>