[ Index ]
 

Code source de GeekLog 1.4.1

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/public_html/ -> usersettings.php (sommaire)

(pas de description)

Poids: 1501 lignes (63 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 1 fichier
 public_html/lib-common.php

Définit 10 fonctions

  edituser()
  confirmAccountDelete()
  deleteUserAccount()
  buildTopicList()
  editpreferences()
  emailAddressExists()
  handlePhotoUpload()
  saveuser()
  userprofile()
  savepreferences()

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

edituser()   X-Ref
Shows the user's current settings


confirmAccountDelete($form_reqid)   X-Ref
Ask user for confirmation to delete his/her account.

param: string   form_reqid   request id
return: string   confirmation form

deleteUserAccount($form_reqid)   X-Ref
Delete an account

param: string   form_reqid   request id
return: string   redirection to main page (+ success msg)

buildTopicList()   X-Ref
Build a list of all topics the current user has access to

return: string   List of topic IDs, separated by spaces

editpreferences()   X-Ref
Displays user preferences


emailAddressExists($email, $uid)   X-Ref
Check if an email address already exists in the database

param: email   string   email address to check
param: uid     int      user id of current user
return: bool     true = exists, false = does not exist

handlePhotoUpload($delete_photo = '')   X-Ref
Upload new photo, delete old photo

param: string  $delete_photo   'on': delete old photo
return: string                  filename of new photo (empty = no new photo)

saveuser($A)   X-Ref
Saves the user's information back to the database


userprofile($user, $msg = 0)   X-Ref
Shows a profile for a user

This grabs the user profile for a given user and displays it

param: int     $user   User ID of profile to get
param: int     $msg    Message to display (if != 0)
return: string          HTML for user profile page

savepreferences($A)   X-Ref
Saves user's preferences back to the database




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