XOOPS
2.6.0
Main Page
Related Pages
Classes
Files
Examples
File List
File Members
Xoops.php
Go to the documentation of this file.
1
<?php
2
/*
3
You may not change or alter any portion of this comment or credits
4
of supporting developers from this source code or any supporting source code
5
which is considered copyrighted (c) material of the original comment or credit authors.
6
7
This program is distributed in the hope that it will be useful,
8
but WITHOUT ANY WARRANTY; without even the implied warranty of
9
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10
*/
11
12
namespace
Xoops\Auth
;
13
14
use
Xoops\Core\Database\Connection
;
15
27
class
Xoops
extends
AuthAbstract
28
{
34
public
function
__construct
(
Connection
$dao
= null)
35
{
36
$this->dao =
$dao
;
37
$this->auth_method =
'xoops'
;
38
}
39
48
public
function
authenticate
(
$uname
, $pwd = null)
49
{
50
$xoops
=
\Xoops::getInstance
();
51
$member_handler
=
$xoops
->getHandlerMember();
52
$user
=
false
;
53
if
(
$member_handler
) {
54
$user
=
$member_handler
->loginUser(
$uname
, $pwd);
55
if
(
$user
==
false
) {
56
$this->
setErrors
(1, \
XoopsLocale::E_INCORRECT_LOGIN
);
57
}
58
}
59
60
return
$user
;
61
}
62
}
Xoops\Auth\AuthAbstract
Definition:
AuthAbstract.php:25
Xoops\Auth\Xoops\authenticate
authenticate($uname, $pwd=null)
Definition:
Xoops.php:48
XoopsLocaleEn_US\E_INCORRECT_LOGIN
const E_INCORRECT_LOGIN
Definition:
en_US.php:332
$member_handler
if($uname== ''||$pass== '') $member_handler
Definition:
checklogin.php:44
Xoops\getInstance
static getInstance()
Definition:
Xoops.php:160
Xoops\$user
$user
Definition:
Xoops.php:58
Xoops\Auth\AuthAbstract\setErrors
setErrors($err_no, $err_str)
Definition:
AuthAbstract.php:70
Xoops
Connection
$xoops
$xoops
Definition:
admin.php:25
Connection
$uname
$uname
Definition:
checklogin.php:37
Xoops\Auth
Definition:
Ads.php:12
Xoops\Auth\AuthAbstract\$dao
$dao
Definition:
AuthAbstract.php:30
Xoops\Auth\Xoops\__construct
__construct(Connection $dao=null)
Definition:
Xoops.php:34
usr64
htdocs
xoops_lib
Xoops
Auth
Xoops.php
Generated on Fri May 22 2015 03:07:05 for XOOPS by
1.8.9.1