Jump to content

Archived

This topic is now archived and is closed to further replies.

Holmen

One-member-system

Recommended Posts

Hi all!

I would like som help with a member system. Its for my personal website. Why I want it for my website is because I would like to be able to just logon to the site with only a password and then write new posts for my blogg. Is this possible? I was having in mind a "buttom" or soo, to a link that opens a new window, wich I will write my password in and then the whole site updates and admin functions are visible on every page.
Could anyone help me with this?

I want to use PHP and have a MySQL database and everyting wich is needed.
you can find the site here: [a href=\"http://www.holmen.co.nr\" target=\"_blank\"]HOLMEN.CO.NR[/a]

Share this post


Link to post
Share on other sites
This is the easiest kind of login system. There is an example of how to do it [a href=\"http://www.phpfreaks.com/forums/index.php?s=&showtopic=96181&view=findpost&p=385248\" target=\"_blank\"]here[/a]

Share this post


Link to post
Share on other sites
Thanks! It seems to work properly. But how do I create an account? And how do I connect the functions that I want to the loginsystem?

Share this post


Link to post
Share on other sites
Well, you have the file right, then you change your username and password in that file itself:
The
"
$realUser = ""; // what you want your user name to be
$realPass = ""; // what you want your password to be.
"
part.
Then if you want to secure a page put this at the top of the page:

include "config.php";
authUser();

That's all

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.