| #515 | if( is_file($rand_pic_path) ){ |
| #516 | $this->update(array('id'=>$id, 'pic'=>$rand_pic)); |
| #517 | |
| #518 | if(isset($this->cfg['rand_pic_cid_write_content']) && $this->cfg['rand_pic_cid_write_content']){ |
| #519 | $picstr = '<p class="pic"><img src="'.$this->cfg['weburl'].$rand_pic.'" alt="'.$title.'" /></p>'; |
| #520 | switch ($this->cfg['rand_pic_cid_write_content']){ |
| #521 | case 1: |
| #522 | $cms_content_data['content'] = $picstr.$contentstr; |
| #523 | break; |
| #524 | case 2: |