mirror of
https://github.com/e107inc/e107.git
synced 2025-08-10 16:46:50 +02:00
Removed old comments from e107_class.php. userlogin class cleanup. New user login test added.
This commit is contained in:
@@ -341,6 +341,9 @@ class UserHandler
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Detect Password Hash Algorythm type
|
||||
* @param string $hash - Password hash to analyse
|
||||
@@ -492,6 +495,22 @@ class UserHandler
|
||||
return false;
|
||||
}
|
||||
|
||||
public function newUserExpired($userjoined)
|
||||
{
|
||||
$new_user_period = (int) e107::getPref('user_new_period', 0);
|
||||
|
||||
if(empty($new_user_period))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
$userjoined = (int) $userjoined;
|
||||
|
||||
return (time() > ($userjoined + ( $new_user_period)*86400));
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user