Changeset 180205
- Timestamp:
- 12/06/2009 06:19:56 PM (16 years ago)
- File:
-
- 1 edited
-
ecall/tags/1.12.7/class.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ecall/tags/1.12.7/class.php
r180190 r180205 81 81 if($this->sys_cfg['key']==$key){ 82 82 //echo"访问合法"; 83 83 84 $this->cat=get_all_category_ids(); 84 85 if(array_value_exists($cid,$this->cat)&& !array_value_exists($cid,$this->sys_cfg['ban_cat'])||$cid==0){ 85 //cid合法86 86 87 //echo "cid合法"; 87 88 if($rows >$this->sys_cfg['max_rows']) $rows=$this->sys_cfg['max_rows']; 88 89 $rank=$this->sys_cfg['rank']; 89 if( $this->sys_cfg['cache_time']>0){90 if(intval($this->sys_cfg['cache_time'])>0){ 90 91 //是否超过系统最大配置数目 91 92 … … 122 123 } 123 124 private function get_html($cid='',$rank='date',$rows=8){ 125 124 126 if($cid>=0){ 125 127 if($cid==0&&$this->sys_cfg['ban_cat']){ … … 127 129 if(!array_value_exists($v,$this->sys_cfg['ban_cat'])) $carray[]=$v; 128 130 } 129 $cid=join($carray,","); 131 $cid=join($carray,","); 132 if(!$cid) { 133 //echo $cid.'helo'; 134 $this->error("博主可能关闭了插件,或者禁止了调用功能。"); 135 exit; 136 } 130 137 } 131 if(!$cid) { 132 $this->call_error.="博主可能关闭了插件,或者禁止了调用功能。"; 133 exit; 134 } 138 135 139 $posts = get_posts("&category=".$cid."&numberposts=".$rows."&orderby=".$rank); 136 140 … … 167 171 $this->error(); 168 172 } 173 169 174 echo "document.write('".addslashes(preg_replace('[\r\n]','',$html))."');\r\n"; 170 175
Note: See TracChangeset
for help on using the changeset viewer.