[RSS Feed/News] PHP checking XenForo user's account data

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
I am authenticating XenForo user via php.

My code:
PHP:

Code:
public function Auth($username, $password)
{
    $userIDA = $this->getarray("SELECT * FROM xf_user WHERE username='".$username."'");

    if($userIDA)
    {
        define('SESSION_BYPASS', false); // if true: logged in user info and sessions are not needed
        require_once('library/XenForo/Autoloader.php');

        $AutoLoader = XenForo_Autoloader::getInstance();
        $AutoLoader->setupAutoloader('library')...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom