<?php
/**
 * 前台广告控制器
 * @Copyright (C) 2016 汉潮 All rights reserved.
 * @License http://www.hanchao9999.com
 * @Author xiaogg <xiaogg@sina.cn>
 */
 
namespace Home\Controller;
class PosterController extends BaseController {
    //外部调用广告
     public function index(){
        $adid=I('id');$isjs=I('js');$catid=I('catid');
       // echo showads($adid,$isjs,$catid);exit;
    }
    //广告跳转
    public function url()
    {
        /*$id=I('id');
        if(empty($id))$this->error(L('PARAM_ERROR'));
        $map=array();$map['id']=$id;$mod=M('Poster');
        $mod->where($map)->setInc('count');//广告点击量加1
        $url=$mod->where($map)->Field('url,url_navtype,url_modulename,url_param')->find();
        $url=geturl($url['url']);
        if(empty($url))$url='http://'.$_SERVER['HTTP_HOST'];
        redirect($url);*/
    }
}
?>