Geeklog
[ class tree: Geeklog ] [ index: Geeklog ] [ all elements ]

Procedural File: user.php

Source Location: /public_html/admin/user.php



Page Details:

User administration: Manage users (create, delete, import) and their group membership.



Includes:

require_once($_CONF['path_system'].'lib-user.php') [line 55]
User-related functions

require_once('auth.inc.php') [line 50]
Security check to ensure user even belongs on this page

require_once('../lib-common.php') [line 45]
Geeklog common function library







batchdelete [line 740]

string batchdelete( )

This function allows the batch deletion of users that are inactive It shows the form that will filter user that will be deleted



Tags:

return:  HTML Form


[ Top ]



batchdeleteexec [line 936]

string batchdeleteexec( )

This function deletes the users selected in the batchdeletelist function



Tags:

return:  HTML with success or error message


[ Top ]



batchreminders [line 977]

string batchreminders( )

This function used to send out reminders to users to access the site or account may be deleted



Tags:

return:  HTML with success or error message


[ Top ]



deleteUser [line 1230]

string deleteUser( int $uid)

Delete a user



Tags:

return:  HTML redirect


Parameters

int   $uid   id of user to delete
[ Top ]



display_batchAddform [line 1182]

string display_batchAddform( )

Display "batch add" (import) form



Tags:

return:  HTML for import form


[ Top ]



edituser [line 79]

string edituser( [int $uid = ''], [int $msg = ''])

Shows the user edit form



Tags:

return:  HTML for user edit form


Parameters

int   $uid   User to edit
int   $msg   Error message to display
[ Top ]



importusers [line 1060]

string importusers( )

This function allows the administrator to import batches of users

TODO: This function should first display the users that are to be imported, together with the invalid users and the reason of invalidity. Each valid line should have a checkbox that allows selection of final to be imported users. After clicking an extra button, the actual import should take place. This will prevent problems in case the list formatting is incorrect.




Tags:

return:  HTML with success or error message


[ Top ]



saveusers [line 484]

string saveusers( int $uid, $username, string $fullname, $passwd, $passwd_conf, string $email, string $regdate, string $homepage, array $groups, [string $delete_photo = ''], [ $userstatus = 3], [ $oldstatus = 3], string $usernmae)

Saves user to the database



Tags:

return:  HTML redirect or error message


Parameters

int   $uid   user id
string   $usernmae   (short) username
string   $fullname   user's full name
string   $email   user's email address
string   $regdate   date the user registered with the site
string   $homepage   user's homepage URL
array   $groups   groups the user belongs to
string   $delete_photo   delete user's photo if == 'on'
   $username  
   $passwd  
   $passwd_conf  
   $userstatus  
   $oldstatus  
[ Top ]



Documentation generated on Sun, 02 Oct 2016 07:56:41 +0000 by phpDocumentor 1.4.3