Current location: Hot Scripts Forums » General Community » Script Requests » In need of a user registration and password protect of a site


In need of a user registration and password protect of a site

Reply
  #1 (permalink)  
Old 09-29-03, 02:13 PM
darksoap darksoap is offline
Newbie Coder
 
Join Date: Sep 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
In need of a user registration and password protect of a site

If someone could point me to a script that would use php/mysql database.


Thanks

Soap
Reply With Quote
  #2 (permalink)  
Old 09-29-03, 02:33 PM
indian indian is offline
New Member
 
Join Date: Sep 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by darksoap
If someone could point me to a script that would use php/mysql database.


Thanks

Soap

when you look for a simple solution try this

Just copy this code right under the first line *<?php*


$auth = 0;
if (($PHP_AUTH_USER == "here-username" ) && ($PHP_AUTH_PW == "here-pass" )) $auth = 1;
if ( $auth != 1 ) {
header('WWW-Authenticate: Basic realm="Private Site"');
header( "HTTP/1.0 401 Unauthorized" );
echo 'Authorization Required! ';
exit;
}


and change the username and pass
Reply With Quote
  #3 (permalink)  
Old 09-29-03, 02:35 PM
darksoap darksoap is offline
Newbie Coder
 
Join Date: Sep 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
i am looking for something that will store the usernames and password after the user is authorized. Kinda like logging into here.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
sending email acknowledgement to user after registration onlynils PHP 3 07-04-03 02:05 PM


All times are GMT -5. The time now is 11:53 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.