<?php
/** 
 * UQ云商：	www.uqcms.com  
 * 联系QQ：	2200631718 
 * 可免费商用，需要留UQ云商链接作为交换，只首页底部留取即可，不影响使用。
 */
  class wap extends module { function __construct() { $this->uid = @$_SESSION['user']['uid']; parent::__construct(); } function index() { if(cfg['site_member_view'] == '1'){ if(empty($_SESSION['user']['uid'])){ if($this->m == 'member'){ if($this->m == 'member' && $this->a == 'index'){ location('wap/member/login'); } }else{ location('wap/member/login'); } } }else{ $this->module('user')->conn_login(); if( ($this->m == 'member' && $this->a == 'index')|| ($this->m == 'cart' && $this->a == 'settle') || $this->m == 'order' || $this->m == 'address' || $this->m == 'account' || $this->m == 'collect'|| $this->m == 'refund'|| $this->m == 'album' || $this->m == 'spread'|| $this->m == 'user' ){ if(empty($_SESSION['user']['uid'])){ if(cfg['wchat_status'] == '1'){ if(cfg['user_conn_isbind'] == '1'){ location('wap/member/login_conn?alias=wchat'); }else{ location('wap/member/login'); } }else{ location('wap/member/login'); } } }else{ if(!empty($_SESSION['user']['uid'])){ if( ($this->m == 'member' && $this->a == 'login')|| ($this->m == 'member' && $this->a == 'login_conn')|| ($this->m == 'member' && $this->a == 'register')|| ($this->m == 'member' && $this->a == 'forget') ){ location('wap/member/index'); } } } } } } 