WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDESPHP CLASSESCODE SEARCHARTICLES SEARCHPHP FORUMSPHP MANUALPHP FUNCTIONS LISTWEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Join us on FaceBook
Submit a code Example / Snippet Submit Your Code
Poker Tournaments Poker Tournaments
Poker Guide for Developers Poker Guide for Developers
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Resources
Web Development Content
Internet Security Software
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
פרייסז - הכח לקנות עובר לידיים שלך
Texas Holdem Poker Evangelists

Go Back Add a Comment Send this example to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES ADD CODE EXAMPLES PRINT
Title : Full membership authentication system.
Categories : Authentication, MySQL, PHP, Databases Update Picture
Simon Booth
Date : Jan 24th 1999
Grade : 3 of 5 (graded 19 times)
Viewed : 65711
File : auth
Images : No Images for this code example.
Search : More code by Simon Booth
Action : Grade This Code Example
Tools : My Examples List

Submit your own code examples  Submit your own code examples 
 

I'll apologise in advance for this, it does equire tweaks and the suplied
version is $card_required.

I wanted this a little time ago and I've have killed for this much code.

It's not my usual policy to purposely break things but this is (but only ever
so slightly). Owing to the bature of the system I think you'll understand why
...

You'll need to tweak this a little.

+REQUIRED

Apache recent-ish
MySQL
mod_auth_mysql

+OPTIONAL

mod_ssleay

Before you start with this I'll point out that it's the not quite finished
version (see below). To grab the mistakes I made when adding stuff to it for
the customer which broke the non-payment system set your debug to 15 to catch
them all.
I've fixed this stuff (www.samlearning.co.uk/auth).

If you ain't got the time/inclination to fix the bugged version drop me a line
and I'll happily supply the non-bugged version (once I've removed essential
information)

There are something like 21 - odd files in the attach.

dbman.phtml - creates the dbs etc. The supplied default won't do anything (even
on my site). You'll need to ctrate a MySQL acct with create permissions to do
anything useful with this page.
tdefs.inc - change it to reflect your own site setup. Just have a look and
you'll see what I mean.
.htaccess - modify the sucker to reflect your choices.

Oh, yeah, you proibably ain't got SSL so make sure you either fix the code or
remove the S from the HTTP bit.

Please note that for my own site's security this is not quite the last version
of the system. $req_card dies a (ok, it's a bug - I don't want to give the
clean code out - see below) little and the urls refer to my home PC. It should
take anyone with more than a micro-gram of brain next to no time to slot in.

Again, aplogies for not supplying the complete answer - I've got to be careful
with things like auth systems (I'm sure you understand). If you wanna see it in
it's full glory try http://www.talksex.co.uk/ follow the spash and take the 2nd
link.

Finally (yup, we got there) you need a directory entry in httpd.conf with an
options auth allowance or you wont get nothing happening (it'll write the stuff
to the db but you wont get auth on it)

I think I've covered it all here. Drop me a line if you get stuck and I'll give
you a hand. I do admit (quite freely) that this ain't as simple as it should be.

I don't always write deliberately broken code. Try a search on whois and you'll
see what I mean (drop-in domain finder)



Implementing a Members ONLY area
Categories : PHP, MySQL, Databases, Authentication
PHP4 AND MySQL Authentication
Categories : PHP, MySQL, Authentication, Databases
complete, simple, working example of a login screen/system using php functions, cookies, and a mysql database for begginers.
Categories : Authentication, Complete Programs, PHP, MySQL, Databases
bookmarker - PHP, PHPLIB, MySQL WWW based bookmark manager
Categories : MySQL, PHP, MySQL, Complete Programs, Databases
SQL / PHP based Integrated Authentication
Categories : PHP, Authentication, Databases, MySQL
Authorize Me! An authentication script.
Categories : MySQL, Databases, Authentication, PHP
This program allows you to upload an ODBC ressource - i.e. an MS-Access database to a MySQL server.
Categories : Databases, MySQL, Complete Programs, PHP, Databases
mysql date/time converters
Categories : PHP, MySQL, Databases, Date Time
Checks Date-Input from HTML-Forms and converts to YYYY-MM-DD Format for MySQL Date-Fields
Categories : MySQL, Date Time, PHP, Databases
Web Self Service Resource Scheduler Using Session Variables under php4 includes Calendar building code - requires MySQL
Categories : PHP, Complete Programs, Calendar, MySQL, Databases
very cool guestbook that uses php, and mysql to store data. looks very nice. supports smilies / emoticons (SEG-Media V1.0)
Categories : PHP, Databases, MySQL
Mimic ASP's GetString function with PHP
Categories : PHP, Databases, MySQL, Strings
How to thread a list of messages in database and show it in a treelike structure
Categories : PHP, MySQL, Databases
Powerful php/mysql Pagination for up to 6 URL Params
Categories : PHP, PHP Classes, Databases, MySQL, Navigation
Newbie Notes #10 - Generating drop downs
Categories : PHP, MySQL, HTML, Beginner Guides, Databases
 cipson cit wrote : 161
very good site
lot of informations 
please organize these informations in more user friendly
 
 angus claydon wrote :782
...just tried the www.talksex.co.uk link but the mysql connection didn`t work.

root@localhost ... how safe is that ?

You have done well to get so far.. keep working at it man