public function __mobile($f_name){
global $_W,$_GPC;
$weid = $_W['weid'];
$op = $_GPC['op']?$_GPC['op']:'display';
$oauth_openid = "wcvote_openid".$weid;
if (empty($_COOKIE[$oauth_openid])) {
//$this->CheckCookie();
}
$rule = pdo_fetch("select * from ".tablename('adv_vote_rule')." where weid = ".$weid);
/*
if($rule['starttime']>time()){
message('活动还未开始!');
}
if($rule['endtime']<time()){
message('活动已结束!');
}
*/
include_once 'mobile/'.strtolower(substr($f_name,8)).'.php';
}
public function __web($f_name){
global $_W,$_GPC;
checklogin();
$weid = $_W['weid'];
$op = $operation = $_GPC['op']?$_GPC['op']:'display';
include_once 'web/'.strtolower(substr($f_name,5)).'.php';
}
分配到文章操作。
最新推荐文章于 2020-05-23 11:01:02 发布