风火家人技术博客

技术总结精华贴

Tag: 密码验证

CMS, 原创, , ,

Joomla获取当前登录用户信息,密码验证

Joomla获取当前登录用户信息使用函数: $user = JFactory::getUser(); if ($user->id){ $username = $user->username; $password = $user=>password; } Joomla查询数据库: $db = JFactory::getDBO(); $query = “SELECT u.*,g.* FROM ( #__users u INNER JOIN #__user_usergroup_map g ON u.id = g.user_id ) WHERE username = ‘” . $username

Read More