• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP get_memberinfo函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中get_memberinfo函数的典型用法代码示例。如果您正苦于以下问题:PHP get_memberinfo函数的具体用法?PHP get_memberinfo怎么用?PHP get_memberinfo使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了get_memberinfo函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: __construct

 	public function __construct() {
		$this->message_db = pc_base::load_model('message_model');
		$this->message_group_db = pc_base::load_model('message_group_model');
		$this->message_data_db = pc_base::load_model('message_data_model');
		$this->_username = param::get_cookie('_username');
		$this->_userid = param::get_cookie('_userid');
		$this->_groupid = get_memberinfo($this->_userid,'groupid');
 	}
开发者ID:panhongsheng,项目名称:zl_cms,代码行数:8,代码来源:message_tag.class.php


示例2: __construct

 public function __construct()
 {
     $this->message_db = Loader::model('message_model');
     $this->message_group_db = Loader::model('message_group_model');
     $this->message_data_db = Loader::model('message_data_model');
     $this->_username = cookie('_username');
     $this->_userid = cookie('_userid');
     $this->_groupid = get_memberinfo($this->_userid, 'groupid');
 }
开发者ID:hubs,项目名称:yuncms,代码行数:9,代码来源:message_tag.php


示例3: __construct

	function __construct() {
		parent::__construct();
		$this->message_db = pc_base::load_model('message_model');
		$this->message_group_db = pc_base::load_model('message_group_model');
		$this->message_data_db = pc_base::load_model('message_data_model');
		$this->_username = param::get_cookie('_username');
		$this->_userid = param::get_cookie('_userid');
		$this->_groupid = get_memberinfo($this->_userid,'groupid');
		pc_base::load_app_func('global');
		//定义站点ID常量,选择模版使用
		$siteid = isset($_GET['siteid']) ? intval($_GET['siteid']) : get_siteid();
  		define("SITEID",$siteid);
  	}
开发者ID:hxzyzz,项目名称:ddc,代码行数:13,代码来源:index.php


示例4: messagecheck

	/**
	 * 
	 * 检查当前用户短消息相关权限
	 * @param  $userid 用户ID
	 */
	public function messagecheck($userid){
		$member_arr = get_memberinfo($this->_userid);
		$groups = getcache('grouplist','member');
 		if($groups[$member_arr['groupid']]['allowsendmessage']==0){
			showmessage('对不起你没有权限发短消息',HTTP_REFERER);
		}else {
			//判断是否到限定条数
			$num = $this->get_membermessage($this->_username);
			if($num>=$groups[$member_arr['groupid']]['allowmessage']){
				showmessage('你的短消息条数已达最大值!',HTTP_REFERER);
			}
		}
	}
开发者ID:panhongsheng,项目名称:zl_cms,代码行数:18,代码来源:message_model.class.php


示例5: lists

 public function lists()
 {
     $this->assign('add_button', false);
     $this->assign('search_button', false);
     $this->assign('del_button', false);
     $this->assign('check_all', false);
     // 解析列表规则
     $data = $this->_list_grid($this->model);
     $this->assign($data);
     // 搜索条件
     $map = $this->_search_map($this->model, $data['fields']);
     $name = parse_name(get_table_name($this->model['id']), true);
     $list = M($name)->where($map)->order('id DESC')->group('uid')->selectPage();
     foreach ($list['list_data'] as &$vo) {
         $member = get_memberinfo($vo['uid']);
         $vo['truename'] = $member['truename'];
         $vo['mobile'] = $member['mobile'];
     }
     $this->assign($list);
     $this->display();
 }
开发者ID:devsnippet,项目名称:wechatTools,代码行数:21,代码来源:AnswerController.class.php


示例6: public_checknickname_ajax

 /**
  * 检查用户昵称
  * @param string $nickname	昵称
  * @return $status {0:已存在;1:成功}
  */
 public function public_checknickname_ajax()
 {
     $nickname = isset($_GET['nickname']) && trim($_GET['nickname']) && is_username(trim($_GET['nickname'])) ? trim($_GET['nickname']) : exit('0');
     if (CHARSET != 'utf-8') {
         $nickname = iconv('utf-8', CHARSET, $nickname);
         $nickname = addslashes($nickname);
     }
     //首先判断会员审核表
     $this->verify_db = pc_base::load_model('member_verify_model');
     if ($this->verify_db->get_one(array('nickname' => $nickname))) {
         exit('0');
     }
     if (isset($_GET['userid'])) {
         $userid = intval($_GET['userid']);
         //如果是会员修改,而且NICKNAME和原来优质一致返回1,否则返回0
         $info = get_memberinfo($userid);
         if ($info['nickname'] == $nickname) {
             //未改变
             exit('1');
         } else {
             //已改变,判断是否已有此名
             $where = array('nickname' => $nickname);
             $res = $this->db->get_one($where);
             if ($res) {
                 exit('0');
             } else {
                 exit('1');
             }
         }
     } else {
         $where = array('nickname' => $nickname);
         $res = $this->db->get_one($where);
         if ($res) {
             exit('0');
         } else {
             exit('1');
         }
     }
 }
开发者ID:boylzj,项目名称:omguitar,代码行数:44,代码来源:index.php


示例7: initUser

	/**
	 * 系统管理员信息初始化
	 *
	 * @access private
	 * @return void
	 */
	private function initUser() {
		$index_1 = strtolower ( MODULE_NAME . '/*/*' );
		$index_2 = strtolower ( MODULE_NAME . '/' . CONTROLLER_NAME . '/*' );
		$index_3 = strtolower ( MODULE_NAME . '/' . CONTROLLER_NAME . '/' . ACTION_NAME );
		$is_follow_login = session ( 'is_follow_login' );
		if ($is_follow_login == 1) {
			return true;
		}
		
		$user = session ( 'user_auth' );
		// 当前用户信息
		$user ['token'] = get_token ();
		$user ['openid'] = get_openid ();
		
		$access = array_map ( 'trim', explode ( "\n", C ( 'access' ) ) );
		$access = array_map ( 'strtolower', $access );
		$access = array_flip ( $access );
		$guest_login = isset ( $access [$index_1] ) || isset ( $access [$index_2] ) || isset ( $access [$index_3] ) || $index_1 == 'admin/*/*' || $index_3 == 'home/addons/execute' || $index_2 == 'home/user/*';
		
		if (! is_login () && ! $guest_login) {
			Cookie ( '__forward__', $_SERVER ['REQUEST_URI'] );
			redirect ( U ( 'home/user/login' ) );
		}
		
		// 当前登录者
		$GLOBALS ['mid'] = $this->mid = intval ( $user ['uid'] );
		$GLOBALS ['user'] = $user;
		$GLOBALS ['myinfo'] = get_memberinfo ( $this->mid );
		
		// 当前访问对象的uid
		$GLOBALS ['uid'] = $this->uid = intval ( $_REQUEST ['uid'] == 0 ? $this->mid : $_REQUEST ['uid'] );
		
		$this->assign ( 'mid', $this->mid ); // 登录者
		$this->assign ( 'uid', $this->uid ); // 访问对象
		$this->assign ( 'myinfo', $GLOBALS ['myinfo'] ); // 访问对象
		                                                 
		// 管理中心里的公众号列表
		if ($this->mid) {
			$link = M ( 'member_public_link' )->where ( 'uid=' . $this->mid )->order ( 'is_use desc' )->select ();
			foreach ( $link as $l ) {
				$mp_ids [] = $l ['mp_id'];
				$is_use [$l ['mp_id']] = $l ['is_use'];
			}
			$mp_ids = getSubByKey ( $link, 'mp_id' );
			if (! empty ( $mp_ids )) {
				/**
				 * <!-- 切换显示优化,QQ:125682133 -->*
				 */
				$this->assign ( 'mp_ids_list', count ( $mp_ids ) );
				$mp_ids = implode ( ',', $mp_ids );
				$map ['id'] = array (
						'in',
						$mp_ids 
				);
				
				$member_public_list = M ( 'member_public' )->where ( $map )->order ( 'FIND_IN_SET(id,"' . $mp_ids . '")' )->select ();
				$member_public = $member_public_list [0];
				$this->assign ( 'member_public', $member_public );
				
				$token = get_token ();
				if ($member_public ['public_id'] && ($is_use [$member_public ['id']] == 0 || $token == '' || $token == - 1)) {
					get_token ( $member_public ['public_id'] );
				}
				
				unset ( $member_public_list [0] );
				$this->assign ( 'member_public_list', $member_public_list );
			} else {
				$this->assign ( 'mp_ids_list', 0 );
			}
		}
	}
开发者ID:6226,项目名称:wx,代码行数:77,代码来源:Controller.class.php


示例8: get_mult_userinfo

function get_mult_userinfo($uid)
{
    $info = get_followinfo($uid);
    if (!$info) {
        $info = get_memberinfo($uid);
    }
    return $info;
}
开发者ID:amotewangrong,项目名称:WeiPHP-SWXZS,代码行数:8,代码来源:function.php



注:本文中的get_memberinfo函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP get_members_of_access_collection函数代码示例发布时间:2022-05-15
下一篇:
PHP get_member_url函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap