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';
}分配到文章操作。
最新推荐文章于 2021-03-19 20:23:12 发布
本文介绍了一个PHP投票系统的实现方式,该系统通过不同的处理逻辑来支持移动端和网页端的操作。对于移动端,它检查用户的Cookie状态并加载相应的页面;而对于网页端,则在用户登录后加载特定操作页面。
22万+

被折叠的 条评论
为什么被折叠?



