public function __construct() { parent::__construct(); //读取语言包 Language::read('member_groupbuy,home_cart_index'); //检查抢购功能是否开启 if (intval(C('groupbuy_allow')) !== 1) { showMessage(Language::get('groupbuy_unavailable'), urlShop(), '', 'error'); } //分类导航 $nav_link = array(0 => array('title' => Language::get('homepage'), 'link' => SHOP_SITE_URL), 1 => array('title' => Language::get('nc_groupbuy'))); Tpl::output('nav_link_list', $nav_link); Tpl::setLayout('home_groupbuy_layout'); Tpl::output('index_sign', 'groupbuy'); if ($_GET['op'] != 'groupbuy_detail') { // 抢购价格区间 $this->groupbuy_price = rkcache('groupbuy_price', true); Tpl::output('price_list', $this->groupbuy_price); $model_groupbuy = Model('groupbuy'); // 线上抢购分类 $this->groupbuy_classes = $model_groupbuy->getGroupbuyClasses(); Tpl::output('groupbuy_classes', $this->groupbuy_classes); // 虚拟抢购分类 $this->groupbuy_vr_classes = $model_groupbuy->getGroupbuyVrClasses(); Tpl::output('groupbuy_vr_classes', $this->groupbuy_vr_classes); // 虚拟抢购城市 $this->groupbuy_vr_cities = $model_groupbuy->getGroupbuyVrCities(); Tpl::output('groupbuy_vr_cities', $this->groupbuy_vr_cities); Tpl::output('city_name', $this->groupbuy_vr_cities['name'][cookie('city_id')]); } }
public function __construct() { parent::__construct(); //读取语言包 Language::read('home_pointprod,home_voucher'); //判断系统是否开启积分和积分中心功能 if (C('points_isuse') != 1 || C('pointshop_isuse') != 1) { showMessage(Language::get('pointshop_unavailable'), 'index.php', 'html', 'error'); } //根据op判断积分兑换功能是否开启 if (in_array($_GET['op'], array('plist', 'pinfo')) && C('pointprod_isuse') != 1) { showMessage(Language::get('pointprod_unavailable'), 'index.php', 'html', 'error'); } Tpl::output('index_sign', 'pointprod'); //代金券模板状态 $this->templatestate_arr = array('usable' => array(1, Language::get('voucher_templatestate_usable')), 'disabled' => array(2, Language::get('voucher_templatestate_disabled'))); //领取的代金券状态 $this->voucherstate_arr = array('unused' => array(1, Language::get('voucher_voucher_state_unused')), 'used' => array(2, Language::get('voucher_voucher_state_used')), 'expire' => array(3, Language::get('voucher_voucher_state_expire'))); if ($_SESSION['is_login'] == '1') { $model = Model(); if (C('pointprod_isuse') == 1) { //已选择兑换商品数 $pcartnum = $model->table('points_cart')->where(array('pmember_id' => $_SESSION['member_id']))->count(); Tpl::output('pcartnum', $pcartnum); } //查询会员信息 $member_info = $model->table('member')->field('member_points,member_avatar')->where(array('member_id' => $_SESSION['member_id']))->find(); Tpl::output('member_info', $member_info); } }
/** * 构造函数 */ public function __construct() { parent::__construct(); //读取语言包 Language::read('home_cart_index'); //允许不登录就可以访问的op $op_arr = array('ajaxcart', 'add', 'drop'); $op_str = ''; $op_str = isset($_GET['op']) ? $_GET['op'] : $_POST['op']; if (!in_array($op_str, $op_arr) && !$_SESSION['member_id']) { $current_url = request_uri(); redirect('index.php?act=login&ref_url=' . urlencode($current_url)); } //验证该会员是否禁止购买 $noallowbuyop_arr = array('step1', 'step2'); $noallowbuyop_str = ''; $noallowbuyop_str = isset($_GET['op']) ? $_GET['op'] : $_POST['op']; if (in_array($noallowbuyop_str, $noallowbuyop_arr)) { $member_model = Model('member'); $member_id = intval($_SESSION['member_id']); $member_info = $member_model->infoMember(array('member_id' => "{$member_id}")); if (empty($member_info) || !$member_info['is_buy']) { showMessage(Language::get('cart_buy_noallow'), '', 'html', 'error'); } unset($member_id); unset($member_info); unset($member_model); } }
public function __construct() { parent::__construct(); Language::read("home_login_register,home_login_index"); Tpl::output('hidden_nctoolbar', 1); Tpl::setLayout('login_layout'); }
public function __construct() { parent::__construct(); Tpl::setLayout('store_joinin_layout'); $this->checkLogin(); $model_seller = Model('seller'); $seller_info = $model_seller->getSellerInfo(array('member_id' => $_SESSION['member_id'])); if (!empty($seller_info)) { @header('location: index.php?act=seller_login'); } if ($_GET['op'] != 'check_seller_name_exist' && $_GET['op'] != 'checkname') { $this->check_joinin_state(); } $phone_array = explode(',', C('site_phone')); Tpl::output('phone_array', $phone_array); $model_help = Model('help'); $condition = array(); $condition['type_id'] = '99'; //默认显示入驻流程; $list = $model_help->getShowStoreHelpList($condition); Tpl::output('list', $list); //左侧帮助类型及帮助 Tpl::output('show_sign', 'joinin'); Tpl::output('html_title', C('site_name') . ' - ' . '商家入驻'); Tpl::output('article_list', ''); //底部不显示文章分类 }
/** * 验证是否开启闲置功能 */ public function __construct(){ parent::__construct(); Language::read('home_flea_index'); if($GLOBALS['setting_config']['flea_isuse']!='1'){ showMessage(Language::get('flea_index_unable'),'index.php','','error'); } }
public function __construct() { parent::__construct(); //读取语言包 Language::read('home_store_class_index'); $lang = Language::getLangContent(); //分类导航 }
public function __construct() { parent::__construct(); Language::read("home_login_register,home_login_index"); Tpl::output('hidden_nctoolbar', 1); $model_member = Model('member'); $model_member->checkloginMember(); }
public function __construct() { parent::__construct(); //读取语言包 Language::read('member_groupbuy,home_cart_index'); //检查团购功能是否开启 if (intval($GLOBALS['setting_config']['groupbuy_allow']) !== 1) { showMessage(Language::get('groupbuy_unavailable'), 'index.php', '', 'error'); } }
public function __construct() { parent::__construct(); //读取语言包 Language::read('member_groupbuy,home_cart_index,live_groupbuy'); //分类导航 $nav_link = array(0 => array('title' => Language::get('homepage'), 'link' => 'index.php'), 1 => array('title' => Language::get('nc_groupbuy'))); Tpl::output('nav_link_list', $nav_link); Tpl::output('index_sign', 'groupbuy'); Tpl::setLayout('home_groupbuy_layout'); }
public function __construct() { parent::__construct(); /** * 设置模板文件夹路径 */ Tpl::setDir('home'); /** * 设置布局文件内容 */ Tpl::setLayout('member_show_layout'); }
public function __construct() { parent::__construct(); //读取语言包 Language::read('member_groupbuy,home_cart_index'); //检查团购功能是否开启 if (intval($GLOBALS['setting_config']['groupbuy_allow']) !== 1) { showMessage(Language::get('groupbuy_unavailable'), 'index.php', '', 'error'); } //分类导航 $nav_link = array(0 => array('title' => Language::get('homepage'), 'link' => 'index.php'), 1 => array('title' => Language::get('nc_groupbuy'))); Tpl::output('nav_link_list', $nav_link); }
public function __construct(){ parent::__construct(); Language::read("home_login_register,home_login_index,home_sconnect"); /** * 判断新浪微博登录功能是否开启 */ if (C('sina_isuse') != 1){ showMessage(Language::get('home_sconnect_unavailable'),'index.php','html','error'); } if (!$_SESSION['slast_key']){ showMessage(Language::get('home_sconnect_error'),'index.php','html','error'); } Tpl::output('hidden_nctoolbar', 1); }
public function __construct() { parent::__construct(); Tpl::setLayout('store_joinin_layout'); $this->checkLogin(); $model_seller = Model('seller'); $seller_info = $model_seller->getSellerInfo(array('member_id' => $_SESSION['member_id'])); if (!empty($seller_info)) { @header('location: index.php?act=seller_login'); } if ($_GET['op'] != 'check_seller_name_exist') { $this->check_joinin_state(); } }
/** * 活动验证 */ public function __construct() { parent::__construct(); $model_wheel = Model('wheel'); $wheel_info = $model_wheel->field('wheel_start_time, wheel_end_time')->where('wheel_isuse = 1')->find(); if ($wheel_info == false) { uk86_showMessage('活动不存在', 'index.php'); } if ($wheel_info['wheel_start_time'] > time()) { uk86_showMessage('活动未开始', 'index.php'); } elseif ($wheel_info['wheel_end_time'] < time()) { uk86_showMessage('活动已结束', 'index.php'); } }
public function __construct() { parent::__construct(); Language::read("home_login_register,home_login_index,home_sconnect"); /** * 判断新浪微博登录功能是否开启 */ if ($GLOBALS['setting_config']['sina_isuse'] != 1) { showMessage(Language::get('home_sconnect_unavailable'), 'index.php', 'html', 'error'); } if (!$_SESSION['slast_key']) { showMessage(Language::get('home_sconnect_error'), 'index.php', 'html', 'error'); } }
public function __construct() { parent::__construct(); //读取语言包 Language::read('home_pointprod,home_voucher'); //判断系统是否开启积分和代金券功能 if (C('points_isuse') != 1 || C('voucher_allow') != 1) { showMessage(Language::get('voucher_pointunavailable'), 'index.php', 'html', 'error'); } //代金券模板状态 $this->templatestate_arr = array('usable' => array(1, Language::get('voucher_templatestate_usable')), 'disabled' => array(2, Language::get('voucher_templatestate_disabled'))); //领取的代金券状态 $this->voucherstate_arr = array('unused' => array(1, Language::get('voucher_voucher_state_unused')), 'used' => array(2, Language::get('voucher_voucher_state_used')), 'expire' => array(3, Language::get('voucher_voucher_state_expire'))); Tpl::output('index_sign', 'pointprod'); }
public function __construct(){ parent::__construct(); Language::read("home_login_register,home_login_index,home_qqconnect"); /** * 判断qq互联功能是否开启 */ if (C('qq_isuse') != 1){ showMessage(Language::get('home_qqconnect_unavailable'),'index.php','html','error');//'系统未开启QQ互联功能' } /** * 初始化测试数据 */ if (!$_SESSION['openid']){ showMessage(Language::get('home_qqconnect_error'),'index.php','html','error');//'系统错误' } Tpl::output('hidden_nctoolbar', 1); }
public function __construct() { parent::__construct(); /** * 读取语言包 */ Language::read('home_pointcart'); /** * 判断系统是否开启积分和积分兑换功能 */ if ($GLOBALS['setting_config']['points_isuse'] != 1 || $GLOBALS['setting_config']['pointprod_isuse'] != 1) { showMessage(Language::get('pointcart_unavailable'), 'index.php', 'html', 'error'); } //验证是否登录 if ($_SESSION['is_login'] != '1') { showMessage(Language::get('pointcart_unlogin_error'), 'index.php?act=login', 'html', 'error'); } }
public function __construct() { parent::__construct(); Language::read("home_login_register,home_login_index,home_qqconnect"); /** * 判断qq互联功能是否开启 */ if ($GLOBALS['setting_config']['qq_isuse'] != 1) { showMessage(Language::get('home_qqconnect_unavailable'), 'index.php', 'html', 'error'); //'系统未开启QQ互联功能' } /** * 初始化测试数据 */ if (!$_SESSION['openid']) { showMessage(Language::get('home_qqconnect_error'), 'index.php', 'html', 'error'); //'系统错误' } }
/** * 构造函数 */ public function __construct() { parent::__construct(); //读取语言包 Language::read('home_cart_index'); if (!$_SESSION['member_id']) { redirect('index.php?act=login&ref_url=' . urlencode(request_uri())); } //验证该会员是否禁止购买 $member_model = Model('member'); $member_id = intval($_SESSION['member_id']); $member_info = $member_model->infoMember(array('member_id' => "{$member_id}")); if (empty($member_info) || !$member_info['is_buy']) { showMessage(Language::get('cart_buy_noallow'), '', 'html', 'error'); } unset($member_id); unset($member_info); unset($member_model); }
public function __construct() { parent::__construct(); /** * 读取语言包 */ Language::read('home_pointcart'); /** * 判断系统是否开启积分和积分兑换功能 */ if ($GLOBALS['setting_config']['points_isuse'] != 1 || $GLOBALS['setting_config']['pointprod_isuse'] != 1){ showMessage(Language::get('pointcart_unavailable'),'index.php','html','error'); } //验证是否登录 if ($_SESSION['is_login'] != '1'){ showMessage(Language::get('pointcart_unlogin_error'),'index.php?act=login','html','error'); } if (!checkLive()){ showDialog('请先充值,等待激活成为正式会员',urlShop('charge','add'),'error'); exit; } }
public function __construct() { parent::__construct(); }
public function __construct() { parent::__construct(); Language::read('groupbuy'); Tpl::output('index_sign', 'groupbuy'); }
public function __construct() { parent::__construct(); Tpl::output('hidden_nctoolbar', 1); }
public function __construct() { parent::__construct(); Language::read('appointment'); Tpl::output('index_sign', 'appointment'); }
public function __construct() { parent::__construct(); Language::read('member_store_gbuy'); }
public function __construct() { parent::__construct(); Tpl::output('show_sign', 'help'); }
public function __construct() { parent::__construct(); Tpl::output('index_sign', 'special'); }
public function __construct() { parent::__construct(); /** * 判断闲置开关(关闭时,跳转首页) */ if (intval(C('flea_isuse')) !== 1) { header('location: ' . SHOP_SITE_URL); die; } Language::read('home_flea_index'); //检测闲置市场是否开启,未开启显示提示 /* if($GLOBALS['setting_config']['flea_isuse']!='1'){ showMessage(Language::get('flea_index_unable'),'index.php','','error'); } */ }