Or if anyone has an idea of how to do this, I see tons of sites with this functionality.
Firstly, Welcome to WebmasterWorld [webmasterworld.com].
Are you wanting a script to protect a complete area of your site, ie: something which can be acheived by htaccess, or are you wanting a script which will effectively "sign users up" to all the different systems on your website?
For example, if you had a phpBB forum, a chat board and other additional pieces of software, then you could create one big form, which had inputs for all the different information required for each piece of software. You could then run a number of sql queries on the various tables.
You would need to take a look at the setup of each different table for each different app, then just run through different sql queries for each table.
This should be quite an easy task to accomplish - I know it should be quite simple in PHP. You will probaby have to spend the majority of your time studying the structure of each table. This is, I doubt, something which you will find very hard to be able to download, that has been created, as I'm sure there aren't many people using the same type of sign up procedure - but it certainly seems easy from the users perspective.
You would probably want to redirect all individual apps "register/signup" pages to your custom page, as you wouldn't users being able to subscribe to individual apps.
This would probably be the easiest way round - as to create one users table for all your apps to run off will be VERY hard work. You would probably need to hack a lot of the code and would be much better off and quicker at doing a multi-app sign up form like I suggested above.
Is this the kind of thing you were thinking of?
wruk999
If they are all database driven (not flat-file) then it will be eaiser.
If they are, log-in to your database manager (something like PHPMyAdmin will do great) and select your database.
If all your tables have been created inside one database, then that speeds things up a little, if not, just a little bit more to do.
If you load up the table for say your phpBB users table (something like phpbb_users if i remember was the default).
Then note down the fields for the data the user will input.
You will need to know how the data is inserted/the type of data (ie: are the passwords MD5, are there dates etc) but this is fairly easy to work out from the current datasets.
If you have disabled (or don't want) options such as AIM, messenger ICQ etc, then dont include these in your lists.
So, once you have all our lists of what information your tables/apps will require - build a html form with a value for each, but removing duplicates.
For example, one app may require an extra piece of information - add a field for it. But then only add one username or password field (if you get me?)
The next job is to write a php page (though if you want perl..), which will effectively cycle through each apps user table, and insert the correct data.
At the end of it, it can print out a success to the user.
Is this starting to sound okay?
If you want to do the above steps, and create your form then let us see what you have, and we can help with the PHP/Perl if you are stuck?
If you want any help with the above, just ask ;)
HTH,
wruk999