[ Index ]
 

Code source de Plume CMS 1.2.2

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/manager/tools/htaccess/ -> class.htaccess.php (sommaire)

(pas de description)

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

Définit 1 class

htaccess:: (15 méthodes):
  htaccess()
  setFHtaccess()
  setFHtgroup()
  setFPasswd()
  isSecured()
  addUser()
  addGroup()
  delUser()
  getZoneName()
  getUsers()
  setPasswd()
  setAuthType()
  setAuthName()
  addLogin()
  delLogin()


Classe: htaccess  - X-Ref

Class for handling htaccess of Apache

htaccess()   X-Ref
Initialising class htaccess


setFHtaccess($filename)   X-Ref
Sets the filename and path of .htaccess to work with

param: string $filename    the name of htaccess file

setFHtgroup($filename)   X-Ref
Sets the filename and path of the htgroup file for the htaccess file

param: string $filename    the name of htgroup file

setFPasswd($filename)   X-Ref
Sets the filename and path of the password file for the htaccess file

param: string $filename    the name of htpasswd file

isSecured($folder)   X-Ref
Return true if both a .htaccess and a .htpasswd are in the folder

param: string folder

addUser($username,$password,$name='',$email='',$group='')   X-Ref
Adds a user to the password file

param: string $username     Username
param: string $password     Password for Username
param: string $name   Real name of the user (optional)
param: string $email Email of the user (optional)
param: string $group        Groupname for User (optional)
return: boolean $created         Returns true if user have been created otherwise false

addGroup($groupname)   X-Ref
Adds a group to the htgroup file

param: string $groupname     Groupname

delUser($username)   X-Ref
Deletes a user in the password file

param: string $username     Username to delete
return: boolean $deleted    Returns true if user have been deleted otherwise false

getZoneName()   X-Ref
Returns the name of the zone

return: string

getUsers()   X-Ref
Returns an array of all users in a password file

return: array $users         All usernames of a password file in an array

setPasswd($username,$new_password)   X-Ref
Sets a password to the given username

param: string $username     The name of the User for changing password
param: string $password     New Password for the User
return: boolean $isSet      Returns true if password have been set

setAuthType($authtype)   X-Ref
Sets the Authentification type for Login

param: string $authtype     Authentification type as string

setAuthName($authname)   X-Ref
Sets the Authentification Name (Name of the login area)

param: string $authname     Name of the login area

addLogin()   X-Ref
Writes the htaccess file to the given Directory and protects it


delLogin()   X-Ref
Deletes the protection of the given directory




Généré le : Mon Nov 26 11:57:01 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics