How to use the login script in website?

Hey,
I want to know how I can have it so the members signed up at my site don't have to sign up again for the album, but they can be logged in? I was trying to look for the login/register/cpanel file but couldn't find it. Can you tell me how I can intergrade the album's register/login/view cp system on my website? Cause I'm trying to create a login script, but I can;t get it so people can see their own info because I'm kinda new to php....
Thank you for your time
~L

Hello, I'm not sure what you

Hello,

I'm not sure what you actually want ...

If you want that your users stay logged in on the album, they have to click the checkbox "Remember" when they log in. Next time they will be logged in when they come to your site.

I want to know how i can

I want to know how i can incorporate the login system into my own website. Instead of having two separate ones, just use the album's login because it's more advanced than my own. Basically I want to know how I can take the login system and put it on my site, so people won't have to register two times.

Hello, ok, i think you will

It's saying Direct Access

It's saying Direct Access not permitted. My site is at http://taizkul.prohosts.org
This is the code I added...

require("phpdatabase.php");
db_startup_database("album",$data_dir);
$username=$_POST["username"];
$userpassword=md5($_POST["password"]);
$rec=db_select_all("user","name=='".$username."' && password=='".$userpassword."'");
if(isset($rec[0])){
setcookie("userid",$rec[0]["id"]);
setcookie("userpassword",$userpassword);
}

Is there anything i need to change to make the above work?

is your phpAlbum in the same

I had to add

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.