当前位置:首页 > 站长资讯 > 正文

帝国CMS在js登陆模板中调用当前登陆用户的头像!

2020-06-28 12:19:15 来源:奇祯网

打开e/data/template/loginiframetemp.txt

$r=$empire->fetch1("select".$user_userid.",".$user_username.",".$user_group.",".$user_userfen.",".$user_money.",".$user_userdate.",".$user_havemsg.",".$user_checked."from".$user_tablename."where".$user_userid."='$myuserid'and".$user_rnd."='$myrnd'limit1");

下面添加:

$m=$empire->fetch1("selectuserpicfrom{$user_tbpre}enewsmemberaddwhereuserid='$myuserid'limit1");$userpic=$m['userpic']?$m['userpic']:$public_r[newsurl].'e/data/images/nouserpic.gif';

在登录状态模板中使用调用会员头像!


手机app试玩网赚 http://www.shiwanrenwu.com
Copyright © 2013-2020 All Rights Reserved 奇祯网 版权所有