[ Index ]
 

Code source de GeekLog 1.4.1

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/public_html/admin/ -> user.php (sommaire)

(pas de description)

Poids: 1097 lignes (45 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 2 fichiers
 public_html/admin/auth.inc.php
 public_html/lib-common.php

Définit 9 fonctions

  GROUP_checkList()
  edituser()
  listusers()
  saveusers()
  batchdelete()
  batchdeleteexec()
  importusers()
  display_form()
  deleteUser()

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

GROUP_checkList($table, $selection, $where='', $selected='')   X-Ref
Display a list of checkboxes for the user's group assignments

param: string  $table      DB Table to pull data from
param: string  $selection  Comma delimited list of fields to pull from table
param: string  $where      Where clause of SQL statement
param: string  $selected   Value to set to CHECKED
return: string              HTML with Checkbox code

edituser($uid = '', $msg = '')   X-Ref
Shows the user edit form

param: int     $uid    User to edit
param: int     $msg    Error message to display
return: string          HTML for user edit form

listusers()   X-Ref
Pas de description

saveusers($uid, $username, $fullname, $passwd, $passwd_conf, $email, $regdate, $homepage, $groups, $delete_photo = '', $userstatus=3, $oldstatus=3)   X-Ref
Saves user to the database

param: int     $uid            user id
param: string  $usernmae       (short) user name
param: string  $fullname       user's full name
param: string  $email          user's email address
param: string  $regdate        date the user registered with the site
param: string  $homepage       user's homepage URL
param: array   $groups         groups the user belongs to
param: string  $delete_photo   delete user's photo if == 'on'
return: string                  HTML redirect or error message

batchdelete()   X-Ref
This function allows the batch deletion of users that are inactive
It shows the form that will filter user that will be deleted

return: string          HTML Form

batchdeleteexec()   X-Ref
This function deletes the users selected in the batchdeletelist function

return: string          HTML with success or error message

importusers($file)   X-Ref
This function allows the administrator to import batches of users

param: string  $file   file to import
return: string          HTML with success or error message

display_form()   X-Ref
Display "batch add" (import) form

return: string      HTML for import form

deleteUser($uid)   X-Ref
Delete a user

param: int     $uid    id of user to delete
return: string          HTML redirect



Généré le : Wed Nov 21 12:27:40 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics