public function __construct() { parent::__construct(); // 获取参数 $code = I('get.code'); $this->data = unserialize(base64_decode($code)); }
public function __construct() { parent::__construct(); $this->asid = isset($_GET['asid']) ? (int) $_GET['asid'] : 0; $this->cid = isset($_GET['cid']) ? (int) $_GET['cid'] : 0; $this->uid = isset($_GET['uid']) ? (int) $_GET['uid'] : 0; }
public function __construct() { parent::__construct(); $this->mobile = in($_POST['mobile']); $this->mobile_code = in($_POST['mobile_code']); $this->sms_code = in($_POST['sms_code']); }
function __construct() { parent::__construct(); $this->table = 'franchise_region'; $this->page_view = $this->default; $this->controllername = 'user/region'; }
public function __construct() { parent::__construct(); // 获取参数 $code = I('code'); $this->data = unserialize(urlsafe_b64decode($code)); }
public function __construct(Authorizer $authorizer) { parent::__construct($authorizer); // $this->beforeFilter('oauth', ['except' => 'tmp']); // $this->beforeFilter('oauth.checkClient', ['only' => 'store']); // $this->beforeFilter('validation'); }
public function __construct() { parent::__construct(); if (ACTION_NAME == 'list') { $this->index(); } }
public function __construct() { parent::__construct(); $this->dailyDb = M('daily'); $this->typeDb = M('daily_type'); $this->permissionDb = M('permission'); $this->draftDb = M('draft_daily'); }
function __construct() { parent::__construct(); $this->goods = D("Goods"); $this->goods_discount = D("goods_discount"); $this->goods_type = D("goods_type"); $this->goods_face = D("goods_face"); }
public function __construct() { parent::__construct(); $this->assign("sidebar_active", array("Work", "index")); $this->_page_location = __APP__ . '?s=Work/index'; $this->assign("classlist", $this->_course_class); $this->assign("typelist", $this->_work_type); }
/** * [__construct description] * */ public function __construct(Authorizer $authorizer) { parent::__construct($authorizer); $this->beforeFilter('oauth', ['except' => ['functionName', 'test']]); $this->beforeFilter('validation'); // $this->beforeFilter('@prepare', ['only' => ['reply', 'anonymousReply', 'favour', 'unfavour']]); $this->afterFilter('disconnect:major', ['only' => ['functionName', 'test']]); }
function __construct() { parent::__construct(); $this->permissionDb = M("permission"); $this->typeDb = M("photo_type"); $this->albumDb = M("photo_album"); $this->photoDb = M("photo"); }
public function __construct() { parent::__construct(); $this->action = ACTION_NAME; /* 如果是显示页面,对页面进行相应赋值 */ assign_template(); $this->assign('action', $this->action); }
/** * 构造方法 */ public function __construct() { parent::__construct(); $this->openid = I('get.openid'); $this->title = I('get.title'); $this->msg = I('get.msg'); $this->url = I('get.url'); $this->url = $this->url ? base64_decode(urldecode($this->url)) : ''; }
public function __construct() { parent::__construct(); $this->_course_class = C('USER.course_class'); $this->assign('courseclass', $this->_course_class); //统计课程学习情况 $usercourselearninfo = D('User')->gcUserCourseLearn($this->userinfo['userid'], $this->_course_class); $this->assign('usercourselearninfo', $usercourselearninfo); }
/** * 构造函数 */ public function __construct() { parent::__construct(); // 属性赋值 $this->user_id = $_SESSION['user_id']; $this->action = ACTION_NAME; // 验证登录 $this->check_login(); }
/** * 构造函数 */ public function __construct() { parent::__construct(); /* 只有在没有提交评论内容以及没有act的情况下才跳转 */ $this->cmt = I('request.cmt'); $this->act = I('request.act'); if (!isset($this->cmt) && !isset($this->act)) { ecs_header("Location: ./\n"); } }
function __construct() { parent::__construct(); $this->load->helper('text'); $this->load->helper('form'); $this->load->library('pagination'); $this->load->library('pagination'); $this->load->model('Customermodel'); $this->load->library('form_validation'); }
public function __construct() { parent::__construct(); $this->_course_class = C('USER.course_class'); $this->assign('courseclass', $this->_course_class); $this->_user_course_status = C('USER.user_course_status'); $this->assign('usercoursestatus', $this->_user_course_status); //获取用户课程学习情况 $this->usercourseinfo = D('User')->gcUserCourseLearn($this->userinfo['userid'], $this->_course_class); $this->assign('usercourseinfo', $this->usercourseinfo); }
/** * 构造函数 */ public function __construct() { parent::__construct(); // 属性赋值 $this->user_id = $_SESSION['user_id']; $this->action = ACTION_NAME; // 验证登录 $this->check_login(); // 用户信息 $info = model('ClipsBase')->get_user_default($this->user_id); // 如果是显示页面,对页面进行相应赋值 assign_template(); $this->assign('action', $this->action); $this->assign('info', $info); }
/** * 构造函数 */ public function __construct() { parent::__construct(); // 获取公众号配置 $this->orgid = I('get.orgid'); if (!empty($this->orgid)) { $wxinfo = $this->get_config($this->orgid); $config['token'] = $wxinfo['token']; $config['appid'] = $wxinfo['appid']; $config['appsecret'] = $wxinfo['appsecret']; $this->weObj = new Wechat($config); $this->weObj->valid(); $this->wechat_id = $wxinfo['id']; } }
/** * 构造函数 */ public function __construct() { parent::__construct(); // 属性赋值 $this->user_id = $_SESSION['user_id']; $this->action = ACTION_NAME; // 验证登录 $this->check_login(); // 用户信息 $info = model('ClipsBase')->get_user_default($this->user_id); //判断用户类型,不是分销用户跳转到user控制器中 if ($info['user_rank'] != 255 && $this->user_id > 0) { ecs_header("Location: " . url('user/index')); } // 如果是显示页面,对页面进行相应赋值 assign_template(); $this->assign('action', $this->action); $this->assign('info', $info); }
/** * 构造函数 加载user.php的语言包 并映射到模版 */ public function __construct() { parent::__construct(); $this->goods_id = isset($_REQUEST ['id']) ? intval($_REQUEST ['id']) : 0; }
public function __construct() { parent::__construct(); $this->title = '公众账号管理'; }
public function __construct() { parent::__construct(); }
public function __construct() { parent::__construct(); $this->cat_id = intval(I('get.id')); }
/** * Create a new controller instance. * * @return void */ public function __construct() { parent::__construct(); $this->middleware('guest'); }
/** * 构造函数 */ public function __construct() { parent::__construct(); $this->cat_id = I('request.id'); }
public function __construct() { parent::__construct(); $this->title = '招聘管理后台-日志管理'; }
public function __construct() { parent::__construct(); $this->load->library('ion_auth'); $this->form_validation->set_error_delimiters($this->config->item('error_start_delimiter', 'ion_auth'), $this->config->item('error_end_delimiter', 'ion_auth')); }