FOSSology  4.4.0
Open Source License Compliance by Open Source Software
common-users.php File Reference

This file contains common functions involving the users table. More...

Go to the source code of this file.

Functions

 add_user ($User, $Desc, $Hash, $Perm, $Email, $Email_notify, $Upload_visibility, $agentList, $Folder, $default_bucketpool_fk='')
 Add a user. More...
 
 update_password_hash ($User, $Hash)
 Update user password hash. More...
 

Detailed Description

This file contains common functions involving the users table.

Definition in file common-users.php.

Function Documentation

◆ add_user()

add_user (   $User,
  $Desc,
  $Hash,
  $Perm,
  $Email,
  $Email_notify,
  $Upload_visibility,
  $agentList,
  $Folder,
  $default_bucketpool_fk = '' 
)

Add a user.

This also creates a group for the user and makes the user the group admin.

Parameters are the user table fields:

Parameters
string$Useruser_name
string$Descuser_desc
string$Hashuser_pass
int$Permuser_perm
string$Emailuser_email
char$Email_notifyemail_notify
string$agentListuser_agent_list
int$Folderroot_folder_fk
int$default_bucketpool_fkdefault is empty
Returns
error: exit (1)

Definition at line 32 of file common-users.php.

◆ update_password_hash()

update_password_hash (   $User,
  $Hash 
)

Update user password hash.

Parameters
string$Useruser_name
string$Hashuser_pass
Returns
error: exit (1)

Definition at line 86 of file common-users.php.