|
|
#11 (permalink) |
|
Senior Member
Join Date: Dec 2006
Posts: 214
|
i added it, but is there a way to actaully check the permission. such as if someone is not logged in, if they click links they will be asked to login.
and also can a script be made that will keep the login box from displaying on the page if someone is logged in. currently am using the PHP Code:
|
|
|
|
|
|
#12 (permalink) |
|
co-admin
Join Date: Oct 2006
Location: Belgium
Posts: 666
|
If you want a safe password, you can use MD5.
Just change this: PHP Code:
PHP Code:
More information about MD5-protection: http://www.betlik.com/understanding-...and-t1537.html |
|
|
|
|
|
#13 (permalink) |
|
Member
Join Date: Nov 2006
Posts: 47
|
charlesbw, here's a modified code with which you can use. The user will be asked to login if they aren't, otherwise it will display the page. Just put this on the top of your protected pages, like the previous code. Replace the previous code, so don't have both together.
PHP Code:
Just replace the HTML comments with the corresponding HTML code, remember, this part must be done properly otherwise your page will not look right! Don't change any of the PHP code unless you know what you're doing. |
|
|
|
|
|
#15 (permalink) | |
|
Junior Member
Join Date: Jan 2007
Posts: 19
|
Quote:
PHP Code:
|
|
|
|
|
|
|
#16 (permalink) |
|
Member
Join Date: Jan 2007
Posts: 50
|
guys, I'm pretty much Noob in PHP issues but I was thinking of the making a website with "special Members Subscription" area
so basicly I think from this tutorial I can, Make 1 Single Password for members only pages. I can put a certain code on the pages I want only membes to see. but this keeps some questions opened, 1- how can someone register in this website (is there a way to get new user and password to the MySQL database) 2- is there's a way to make that subscription end in a certain time period? sorry if I'm posting this in the tutorials not in normal MySQL and PHP page, as I'm just requesting a minor change to the script mentioned in this tutorial. warchief |
|
|
|
|
|
#19 (permalink) | |
|
http://www.gofiresale.com
|
Where to put this code, i mean to say edit this code in which file
Quote:
|
|
|
|
|