Scripts
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb Site ManagementScripts

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old December 6th, 2003, 03:32 PM
banan2 banan2 is offline
// banan2 PRIDE //
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Norway
Posts: 303 banan2 User rank is Corporal (100 - 500 Reputation Level)banan2 User rank is Corporal (100 - 500 Reputation Level)banan2 User rank is Corporal (100 - 500 Reputation Level)banan2 User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 14 h 57 m 46 sec
Reputation Power: 6
Send a message via AIM to banan2
Simple usersystem (no mysql)

I was wondering if some1 know about a script that i store username's and password's in a textfile and just put a code in my files i want to password protect (i have to add users my self)

~banan2
__________________

Reply With Quote
  #2  
Old December 7th, 2003, 02:26 AM
mttatkns mttatkns is offline
Got source?
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Mar 2003
Location: Laguna Niguel, California, USA
Posts: 2,332 mttatkns User rank is Private First Class (20 - 50 Reputation Level)mttatkns User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
If the server is apache, see http://httpd.apache.org/docs/howto/auth.html Otherwise, it is not wise to store username and password in a text file that anyone could download (If you use htpasswd it's safer because apache will not allow access to the password file).

Reply With Quote
  #3  
Old December 20th, 2003, 01:24 AM
lazy_yogi lazy_yogi is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 325 lazy_yogi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 58 m 36 sec
Reputation Power: 6
Here ya go

To generate a password, put this into a file generate_pass.php and replace blah with your password and run it in a browser.
PHP Code:
<?
$password_to_encrypt 
'blah' 
prrint crypt($password_to_encrypt"salt")
?>
Take you new password that has been encrytped and put it in the file login.php (which i have attatched) in repalce of 'blah2'


now just put this as the very first line of a files you want protected:
PHP Code:
<?include 'login.php'?>
Attached Files
File Type: php login.php (1.4 KB, 329 views)

Reply With Quote
  #4  
Old December 20th, 2003, 06:52 AM
banan2 banan2 is offline
// banan2 PRIDE //
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Norway
Posts: 303 banan2 User rank is Corporal (100 - 500 Reputation Level)banan2 User rank is Corporal (100 - 500 Reputation Level)banan2 User rank is Corporal (100 - 500 Reputation Level)banan2 User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 14 h 57 m 46 sec
Reputation Power: 6
Send a message via AIM to banan2
Never mind guys, i got MySQL and i almost fixed a usersystem that i want...

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb Site ManagementScripts > Simple usersystem (no mysql)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway