API - XOOPS 2.5.11 Beta 2
By monxoops.fr
checklogin.php File Reference

Namespaces

namespace  core
 

Variables

 $uname = XoopsRequest::getString('uname', '', 'POST')
 
 $pass = XoopsRequest::getString('pass', '', 'POST')
 
 $rememberme = XoopsRequest::getString('rememberme', '', 'POST')
 
 $redirect = XoopsRequest::getUrl('xoops_redirect', '', 'POST')
 
if($uname==''|| $pass=='') $member_handler = xoops_getHandler('member')
 
 $myts = MyTextSanitizer::getInstance()
 
 $xoopsAuth = XoopsAuthFactory::getAuthConnection($myts->addSlashes($uname))
 
 $user = $xoopsAuth->authenticate($uname, $pass)
 
if(false !==$user) elseif(empty($redirect)) else
 

Variable Documentation

◆ $member_handler

XoopsMemberHandler $member_handler = xoops_getHandler('member')

◆ $myts

◆ $pass

$pass = XoopsRequest::getString('pass', '', 'POST')

◆ $redirect

$redirect = XoopsRequest::getUrl('xoops_redirect', '', 'POST')

◆ $rememberme

$rememberme = XoopsRequest::getString('rememberme', '', 'POST')

◆ $uname

$uname = XoopsRequest::getString('uname', '', 'POST')

◆ $user

$user = $xoopsAuth->authenticate($uname, $pass)

◆ $xoopsAuth

$xoopsAuth = XoopsAuthFactory::getAuthConnection($myts->addSlashes($uname))

◆ else

if(false !==$user) elseif (empty( $redirect)) else
Initial value:
{
redirect_header(XOOPS_URL . '/user.php?xoops_redirect=' . urlencode($redirect), 5, $xoopsAuth->getHtmlErrors(), false)
$xoopsAuth
Definition: checklogin.php:40
$redirect
Definition: checklogin.php:26
redirect_header($url, $time=3, $message='', $addredirect=true, $allowExternalLink=false)
Definition: functions.php:744