ossn.lib.users.php File Reference

Go to the source code of this file.

Namespaces

 Informatikon\com
 

Functions

 ossn_user ()
 
 ossn_users ()
 
 ossn_isLoggedin ()
 
 ossn_isAdminLoggedin ()
 
 ossn_loggedin_user ()
 
 ossn_user_by_username ($username)
 
 ossn_user_by_guid ($guid)
 
 ossn_user_by_email ($email)
 
 get_user_friends ($guid)
 
 ossn_user_is_friend ($guid, $friend)
 
 ossn_add_friend ($from, $to)
 
 ossn_remove_friend ($from, $to)
 
 ossn_total_site_users ()
 
 ossn_total_online ()
 
 ossn_friends_suggestion ($guid)
 
 update_last_activity ()
 
 ossn_user_friendly_time ($tm, $rcs=0)
 
 ossn_uservalidate_pagehandler ($pages)
 
 ossn_site_user_lang_code ($hook, $type, $return, $params)
 
 ossn_logout ()
 

Function Documentation

get_user_friends (   $guid)

Get a user friends

Parameters
$guid'guid' of user
Returns
object

Definition at line 128 of file ossn.lib.users.php.

ossn_add_friend (   $from,
  $to 
)

Add user a friend

Parameters
$form'guid' of user $to guid of other user
Returns
bool

Definition at line 157 of file ossn.lib.users.php.

ossn_friends_suggestion (   $guid)

Get friends suggestion

Parameters
$guid'guid' of user
Returns
bool

Definition at line 208 of file ossn.lib.users.php.

ossn_isAdminLoggedin ( )

Check if the admin is logged in or not

Returns
bool

Definition at line 60 of file ossn.lib.users.php.

ossn_isLoggedin ( )

Check if the user is logged in or not

Returns
bool

Definition at line 47 of file ossn.lib.users.php.

ossn_loggedin_user ( )

Get a logged in user entity

Returns
object

Definition at line 75 of file ossn.lib.users.php.

ossn_logout ( )

Logout user from system

Returns
boolean

Definition at line 332 of file ossn.lib.users.php.

ossn_remove_friend (   $from,
  $to 
)

Remove user from friend list

Parameters
$form'guid' of user $to guid of other user
Returns
bool

Definition at line 173 of file ossn.lib.users.php.

ossn_site_user_lang_code (   $hook,
  $type,
  $return,
  $params 
)

Load a site language

If user have different language then site language it will return user language What a hack lol its was not easy to override a site lanuage with user custom language

Returns
string

Definition at line 317 of file ossn.lib.users.php.

ossn_total_online ( )

Get total online users

Returns
int

Definition at line 196 of file ossn.lib.users.php.

ossn_total_site_users ( )

Get total site users

Returns
object

Definition at line 186 of file ossn.lib.users.php.

ossn_user ( )

Initialize user class

Returns
bool;

Definition at line 17 of file ossn.lib.users.php.

ossn_user_by_email (   $email)

Get a user by email id

Parameters
$guid'guid' of user
Returns
object

Definition at line 115 of file ossn.lib.users.php.

ossn_user_by_guid (   $guid)

Get a user by user id

Parameters
$guid'guid' of user
Returns
object

Definition at line 102 of file ossn.lib.users.php.

ossn_user_by_username (   $username)

Get a user by username

Parameters
$username'username' of user
Returns
object

Definition at line 89 of file ossn.lib.users.php.

ossn_user_friendly_time (   $tm,
  $rcs = 0 
)

Convert time to to user recognize from

Parameters
$tm=> time stamp
Returns
bool

Definition at line 237 of file ossn.lib.users.php.

ossn_user_is_friend (   $guid,
  $friend 
)

Check if the user is from with other user

Parameters
$guid'guid' of user $friend guid of other user
Returns
bool

Definition at line 141 of file ossn.lib.users.php.

ossn_users ( )

Initialize library

Returns
bool

Logout outuser if user didn't exists

Definition at line 27 of file ossn.lib.users.php.

ossn_uservalidate_pagehandler (   $pages)

Register a uservalidation page : uservalidate,

Returns
bool

Definition at line 286 of file ossn.lib.users.php.

update_last_activity ( )

Update user last activity time

Returns
void

Definition at line 225 of file ossn.lib.users.php.