Scriptindex.de

[ Menü ]

Home
News
Scripts
Neuzugänge
Suchen
Bücher
Manuals

[ Inhalt ]

Script eintragen
Tutorial eintragen
Newsletter
Umfragen
Link zu uns
Werbung bei uns
Kontakt
Impressum

[ Statistik ]

Hits gesamt: 5197572
Hits Heute: 611
max. Hits (10.07.07): 6964
User Online: 39
Scripts: 2828

[ Partner ]

CodeBase
I.S.U.M.
LUG Bayreuth
PEAR NEWS
PHP Classes

[ Facebook ]

[ Eigene Domain? ]

[ Buchtipp ]

CSS- Praxis. Browserübergreifende Lösungen. Mit CD.
CSS- Praxis. Browserübergreifende Lösungen. Mit CD.

Manuals > PEAR > Auth::Auth()

Auth::Auth()

Auth::Auth() -- constructor

Description

Constructor for the authentication system.

Parameter

string $storageDriver

name of the storage driver that should be used

mixed $options

the options that are passed to the storage container

string $loginFunction

the name of a user-defined function that prints the login screen

boolean $showLogin

defines if the login is optional or not

Note

This function can not be called statically.

Example

This example shows you how you can specifiy alternative names for the database table and the column names. In our example, we use the table myAuth, select the username from the field myUserColumn and the password from the field myPasswordColumn. The default values for this fields are auth, username and password. Note that you can also specify an existing DB object with the dsn parameter instead of a DSN.

This feature is necessary if you want to use PEAR::Auth with a database layout that is different from the one PEAR::Auth uses by default.


Copyright 1998 - 2009 by I.S.U.M.