Zend - The PHP Company




Authentication

Add Code


An Authenticator with Cookies and Redirect  

Type: application
Added by: Lysander
Entered: 15/12/2000
Last modified: 01/12/2000
Rating: **** (16 votes)
Views: 39690
This code will check for a cookie. If none is found it will verify User ID and Password and then give the user a cookie for next time (or other parts of the site). In addtion this code will automatically direct the users browser to a page of your choice after authenticating. This code uses MySQL.


complete authentication in one file.  

Type: code fragment
Added by: joeldg
Entered: 15/10/2002
Last modified: 31/10/2001
Rating: **** (3 votes)
Views: 17128
complete auth system in one file. Just include this file, after you have modified the definitions, in any pages you want protected and authentication will be enabled.


Header for Authenticator with Cookies  

Type: application
Added by: Lysander
Entered: 22/12/2000
Last modified: 01/12/2000
Rating: - (fewer than 3 votes)
Views: 10863
I received some e-mail asking what code should be placed on other pages of the website using my Authenticator with Cookies and Redirect. This code should appear before the HTML Tag on any page you want protected.


Implementing a "Members ONLY" area  

Type: code fragment
Added by: woodys
Entered: 11/09/2000
Last modified: 04/12/2000
Rating: **** (10 votes)
Views: 23355
This selection of PHP files will allow you to implement a "member's only" area in your web site, complete with recognizing re-entering members and new member form. Uses MySQL back-end.


password authentification  

Type: code fragment
Added by: kittie
Entered: 08/03/2001
Last modified: 03/12/2000
Rating: - (fewer than 3 votes)
Views: 12442
simple and easy, and effective way to enable password authentification on your php form scripts.


PHP Auth  

Type: class
Added by: cardmagic
Entered: 20/05/2004
Last modified: 06/12/2003
Rating: - (fewer than 3 votes)
Views: 11140
This authentication class is highly configurable, very secure, and works with any relational database.


Protecting whole directories with MySQL  

Type: code fragment
Added by: kliver
Entered: 16/07/2004
Last modified: 07/12/2003
Rating: - (fewer than 3 votes)
Views: 5012
Problem: PHP authentication doesn't protect whole directories, HTTP authentication isn't automated (you always have those inflexible txt files) Solution: Using this script lets you update your .htpasswd file taking usernames and passwords from a MySQL source Just execute this script everytime a password/username combination is newly entered or changed. It's maybe not the "perfect" way, but the only way I found to protect whole directories with MySQL data.


Simple UNIX SMB Authentication  

Type: code fragment
Added by: alfell249
Entered: 16/06/2002
Last modified: 06/12/2001
Rating: - (fewer than 3 votes)
Views: 8635
Simple UNIX SMB authentication. This script allows web site users to be managed by a Windows NT/2000 or SAMBA primary domain controller. *** Please note that this PHP script will not execute correctly if placed on a Windows web server. *** Requires the installation of Samba (http://samba.sourceforge.net/) to validate usernames/passwords. The actual Samba server software does not need to run at all. It only uses the small "smbclient" binary installed with Samba. The only other requirement is that a file named "phpauth" be placed in the SMB logon servers NETLOGON directory (\\SERVERNAME\NETLOGON\). The file must contain only the word 'allow'. This script basically works exactly the same way as Squid Proxy Cache's SMB authentication does. It has been tested on Mac OS X with Samba 2.2.2 and Windows NT 4 SP 6. If you have any problems, please email me and I'd be happy to help out. Please note that this PHP script will not execute correctly if placed on a Windows web server.


Site Online  

Type: code fragment
Added by: fireuk
Entered: 01/06/2005
Last modified: 02/12/2005
Rating: - (fewer than 3 votes)
Views: 3071
Test if site is online with customer error message.


Super Simple Password Protect  

Type: code fragment
Added by: deathdog
Entered: 28/09/2000
Last modified: 01/12/2000
Rating: - (fewer than 3 votes)
Views: 15464
I've found the need to password protect a few webpages and didn't feel like setting up a "real" authentication scheme. This is pretty cheesy, but good for someone who has a webpage and wants to make the information only available to a select few.


Ultimate user tracker with PHP , mySql and COOKIES .  

Type: class
Added by: darkestlight
Entered: 03/04/2004
Last modified: 04/12/2003
Rating: - (fewer than 3 votes)
Views: 7771
Easy to use PHP & mySql user tracker .
It combines a cookie with an id with a database to store informations . The cookie will hold an ID and then the vars and everything is read and written to the database . Perfect for user tracking and login systems . Rate it . I will share more code if appreciated properly .


User / Pass System working with MySQL and PHP  

Type: code fragment
Added by: smog
Entered: 02/03/2000
Last modified: 08/12/1999
Rating: ** (54 votes)
Views: 60305
PHP and MySQL running together for username/password check.


user authentication class with cookies sessions and mysql  

Type: class
Added by: fphilipe
Entered: 16/05/2004
Last modified: 05/12/2003
Rating: - (fewer than 3 votes)
Views: 9883
On the login page: If the user is already logged on or if there are cookies or there is a valid session, he will be redirected to the member page. If the log in form isn't complete or the username or the password is wrong, the function will return the error variable. In areas for members only: If the user isn't logged on or there aren't any cookies or the session terminated, the user will be redirected to the login page. In the logout page: The user will be logged out.


user-add  

Type: application
Added by: ufux
Entered: 30/10/2000
Last modified: 01/12/2000
Rating: - (fewer than 3 votes)
Views: 8953
add and select users on a mysql database


Validator  

Type: code fragment
Added by: wibi
Entered: 25/06/2001
Last modified: 06/12/2000
Rating: **** (4 votes)
Views: 10035
If you create regfistartion form and you wanto to check wheter the login member exist, password verify check and valid email check, then this function will help you with perform those task.



Search



This Category All Categories