December 6th, 2003, 04:32 PM
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)
December 7th, 2003, 03:26 AM
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).
December 20th, 2003, 02:24 AM
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.
Take you new password that has been encrytped and put it in the file login.php (which i have attatched) in repalce of 'blah2'
$password_to_encrypt = 'blah'
prrint crypt($password_to_encrypt, "salt")
now just put this as the very first line of a files you want protected:
December 20th, 2003, 07:52 AM
Never mind guys, i got MySQL and i almost fixed a usersystem that i want...