[ Index ]
 

Code source de Phorum 5.1.25

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/include/ -> users.php (sommaire)

These functions are Phorum's interface to the user data.  If you want to use your own user data, just replace these functions.

Poids: 899 lignes (32 kb)
Inclus ou requis: 8 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 28 fonctions

  phorum_user_check_session()
  phorum_user_create_session()
  phorum_user_clear_session()
  phorum_user_get()
  phorum_user_get_list()
  phorum_user_save()
  phorum_user_save_simple()
  phorum_user_check_login()
  phorum_user_verify()
  phorum_user_set_current_user()
  phorum_user_check_username()
  phorum_user_check_email()
  phorum_user_check_field()
  phorum_user_add()
  phorum_user_prepare_data()
  phorum_user_subscribe()
  phorum_user_unsubscribe()
  phorum_user_moderate_allowed()
  phorum_user_get_moderators()
  phorum_user_access_allowed()
  phorum_user_access_list()
  phorum_user_allow_moderate_group()
  phorum_user_get_moderator_groups()
  phorum_user_get_groups()
  phorum_user_save_groups()
  phorum_user_addpost()
  phorum_user_delete()
  phorum_user_check_custom_field()

Fonctions
Fonctions qui ne font pas partie d'une Classe:

phorum_user_check_session( $cookie = PHORUM_SESSION_LONG_TERM )   X-Ref
Pas de description

phorum_user_create_session( $cookie = PHORUM_SESSION_LONG_TERM, $refresh = false, $uri_session_id = '' )   X-Ref
Pas de description

phorum_user_clear_session( $cookie = PHORUM_SESSION_LONG_TERM )   X-Ref
Pas de description

phorum_user_get( $user_id, $detailed = true, $checkpm = false )   X-Ref
This function retrieves a user from the database, given the user id.
If $user_id is an array of user ids, it will retrieve all of the users
in the array. If $detailed is set to true, the function gets the users
full information. Setting this to false omits permission data, pm counts,
and group membership. $detailed is true by default and may be omitted.

param: user_id - can be a single user id, or an array of user ids.
param: detailed - get detailed user information (defaults to true).
param: checknewpm - check for new private messages for the user (defaults to false).
return: array - either an array representing a single user's information,

phorum_user_get_list($type = 0)   X-Ref
This function gets a list of all the active users.

return: array of users (same format as phorum_user_get)

phorum_user_save( $user )   X-Ref
Pas de description

phorum_user_save_simple($user)   X-Ref
This function quickly updates real columns without any further checks
it just stores the data as fast as possible


phorum_user_check_login( $username, $password )   X-Ref
Pas de description

phorum_user_verify( $user_id, $tmp_pass )   X-Ref
Pas de description

phorum_user_set_current_user( $user_id )   X-Ref
Pas de description

phorum_user_check_username( $username )   X-Ref
Pas de description

phorum_user_check_email( $email )   X-Ref
Pas de description

phorum_user_check_field( $field_name, $field_value)   X-Ref
(generic) function for checking a user-field in the database


phorum_user_add( $user, $use_raw_password = false )   X-Ref
function for adding a user to the database (using the db-layer)


phorum_user_prepare_data( $new_user, $old_user, $use_raw_password = false )   X-Ref
Pas de description

phorum_user_subscribe( $user_id, $forum_id, $thread, $type )   X-Ref
Pas de description

phorum_user_unsubscribe( $user_id, $thread, $forum_id=0 )   X-Ref
Pas de description

phorum_user_moderate_allowed( $forum_id = 0, $user_data = 0 )   X-Ref
This function returns true if the current user is allowed to moderate $forum_id or the user given through user_data


phorum_user_get_moderators( $forum_id , $ignore_user_perms = false, $for_email = false)   X-Ref
calls the db-function for listing all the moderators for a forum
This returns an array of moderators, key as their userid, value as their email address.


phorum_user_access_allowed( $permission, $forum_id = 0 )   X-Ref
phorum_user_access_allowed()

param: $permission Use the PHORUM_ALLOW_* constants
return: bool

phorum_user_access_list( $permission )   X-Ref
phorum_user_access_list()

This function will return a list of forum ids in which
the current user has $permission

param: $permission Use the PHORUM_ALLOW_* constants
return: bool

phorum_user_allow_moderate_group($group_id = 0)   X-Ref
phorum_user_allow_moderate_group()

Return true if the current user is allowed to moderate
a given group, or any group if no group is given.

param: int - a group id to check (default, all)
return: bool

phorum_user_get_moderator_groups()   X-Ref
phorum_user_get_moderator_groups()

This function will return a list of the groups the current user
is allowed to moderate. For admins, this will return all the groups.

The array is of the form array[group_id] = groupname.
return: array

phorum_user_get_groups($user_id)   X-Ref
phorum_user_get_groups()

This function will return a list of groups the user
is a member of, as well as the users permissions.

The returned list has the group id as the key, and
the permission as the value. Permissions are the
PHORUM_USER_GROUP constants.
param: int - the users user_id
return: array

phorum_user_save_groups($user_id, $groups)   X-Ref
phorum_user_save_groups()

This function saves a users group permissions. The data
to save should be an array of the form array[group_id] = permission
param: int - the users user_id
param: array - group permissions to save
return: bool - true if successful

phorum_user_addpost()   X-Ref
Pas de description

phorum_user_delete($user_id)   X-Ref
Pas de description

phorum_user_check_custom_field($field_name,$field_content,$match=0)   X-Ref
phorum_user_check_custom_field()

This function takes a custom-fields name and content
as arguments and returns an array of the user_ids found
or NULL if no users are found

optional match-parameter
0 - exact match
1 - like-clause



Généré le : Thu Nov 29 12:22:27 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics