Public Method Details |
User |
|
public void User( )
|
| |
Class constructor
|
| Returns |
void |
|
identity |
|
public string identity( )
|
| |
Display user information based on his parameter
|
| Returns |
string login or first name / last name |
|
get_infologin |
|
public mixed get_infologin( string $login )
|
| |
Get the user_id from users table
|
| Parameter |
|
| string |
$login |
|
|
the login of the user |
|
| Returns |
mixed Error message or HTML about the user |
|
get_info |
|
public mixed get_info( [ integer $id ] )
|
| |
Get informations about a user
|
| Parameter |
|
| integer |
$id |
= >>0<< |
|
the user_id of the user |
|
| Returns |
mixed Error message or HTML if ok |
|
get_xp |
|
public int get_xp( int $id )
|
| |
Get the user's experience
|
| Parameter |
|
| int |
$id |
|
|
user_id of the user |
|
| Returns |
int XP of the user |
|
get_lastconnected |
|
public string get_lastconnected( [ integer $nb ] )
|
| |
Get last people connected (authentified people)
|
| Parameter |
|
| integer |
$nb |
= >>10<< |
|
of last users connected |
|
| Returns |
string html to be displayed |
|
get_sessions |
|
public string get_sessions( string $id )
|
| |
Returns the sessions of a user
|
| Parameter |
|
| string |
$id |
|
|
the session id |
|
| Returns |
string the HTML to be displayed |
|
makerand |
|
public string makerand( [ integer $nb ] )
|
| |
Returns a random string
|
| Parameter |
|
| integer |
$nb |
= >>8<< |
|
the number of characters |
|
| Returns |
string the random string |
|
makepasswd |
|
public string makepasswd( [ integer $nb ] )
|
| |
Returns a random password
|
| Parameter |
|
| integer |
$nb |
= >>8<< |
|
the number of characters |
|
| Returns |
string the random password |
|
logintext |
|
public string logintext( )
|
| |
Text displayed in authentication box
|
| Returns |
string html to be displayed |
|
loginbox |
|
public string loginbox( )
|
| |
Sidebox to display when a user is logged succesfully.
|
| Returns |
string html to be displayed |
|
do_login |
|
public integer do_login( array $row )
|
| |
Function used to log in
|
| Parameter |
|
| array |
$row |
|
|
fields : login, passwd, time |
|
| Returns |
integer 1 if success, -1 else |
|
do_delete_sessions |
|
public mixed do_delete_sessions( array $row )
|
| |
Delete a number of sessions
|
| Parameter |
|
| array |
$row |
|
|
all the sessions |
|
| Returns |
mixed exit if successfull, string (error message) if not. |
|