TABLE OF CONTENTS
The latest stable version can be found on the website of AuthClassed or the project site of AuthClassed on Sourceforge. If you want more than that, it is always possible to get the latest (unstable) version from cvs.
the latest version (.tar.gz format)
Download the latest version (.zip format)
To get the latest version via cvs, you will need a ssh client and a cvs client. This project's SourceForge.net CVS repository can be checked out through anonymous (pserver) CVS with the following instruction set. The module you wish to check out must be specified as the modulename. When prompted for a password for anonymous, simply press the Enter key.
cvs -d:pserver:email@example.com:/cvsroot/authclassed login
cvs -z3 -d:pserver:firstname.lastname@example.org:/cvsroot/authclassed co authclassed
Developer CVS Access via SSH
Only project developers can access the CVS tree via this method. SSH1 must be installed on your client machine. Substitute modulename and developername with the proper values. Enter your site password when prompted.
cvs -z3 -d:ext:email@example.com:/cvsroot/authclassed co authclassed
First the database must be created. In order to do this, you must ask you database administrator to process the file 'authclassed.sql' for you. If you are the database adminstrator, run the command
mysql -u root -p < authclassed.sql
If you want to rename the database or table, change the names in 'authclassed.sql' and change the database and table name in the class files.
Return to Top
AuthClassed was designed to be as simple as possible. The only thing you have to do is include the class file in your script and invoke a new object, indicating a security level. Examples can be found in the examples directory.
constructor AuthClassed(int $pagelevel)
The constructor function sets up the authentification mechanism. The required parameter $pagelevel is an integer indicating the permission needed to view this page. Please pay attention that a lower $pagelevel means a higher permission
the function getUserid() returns the userid.
the function getUsername() returns the username.
the function getUserPerm() returns the user's permission level.
The function getUserPass() returns TRUE if the password has been set, otherwise FALSE.
bool isPermitted(int $pagelevel [,EXACT])
The function isPermitted(int $actionlevel) returns true is the user is authorized to do the action with $actionlevel (i.e. the user's authorization level is lower than $actionlevel. If the second parameter EXACT is specified, the function will return TRUE only is the user's permission is exactly $pagelevel.
The function isLoggedOn() returns TRUE if the user is logged on.
The function Logout() logs out the current user.
Return to Top
AuthClassed, © Rob Hanssen 2002. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation.
Return to Top