| | |
| | | $cacheM = new cache(PLUS_PATH,$this); |
| | | $makecache = $cacheM->link_cache("link.cache.php"); |
| | | } |
| | | |
| | | /** |
| | | * @desc 获取友情链接列表 |
| | | * @param $whereData:查询条件 |
| | |
| | | return $List; |
| | | |
| | | } |
| | | |
| | | /** |
| | | * @desc 获取工具箱详情 |
| | | */ |
| | |
| | | |
| | | return $Info; |
| | | } |
| | | |
| | | /** |
| | | * @desc 审核友情链接 |
| | | */ |
| | | function setLinkStatus($id,$data=array()) |
| | | { |
| | | function setLinkStatus($id, $data = array()) { |
| | | if($id){ |
| | | |
| | | $return['id'] = $this->update_once("admin_link",array('link_state'=>$data['status']),array('id'=>$id)); |
| | |
| | | } |
| | | return $return; |
| | | } |
| | | function addInfo($data=array()) |
| | | { |
| | | |
| | | function addInfo($data = array()) { |
| | | $id = $data['id']; |
| | | $post = $data['post']; |
| | | if($data['utype']=='index'){ |
| | |
| | | |
| | | return $return; |
| | | } |
| | | |
| | | /** |
| | | * @desc 删除友情链接 |
| | | */ |
| | |
| | | } |
| | | return $return; |
| | | } |
| | | |
| | | public function setLinkSite($data=array()){ |
| | | |
| | | if($data['uid']){ |
| | |
| | | } |
| | | return $return; |
| | | } |
| | | |
| | | /** |
| | | * @desc 友情链接数目 |
| | | */ |
| | |
| | | return $this->select_num('admin_link', $where); |
| | | } |
| | | } |
| | | |
| | | ?> |