login from an other site

antjuv1

Joined: 2005-04-04
Posts: 4
Posted: Mon, 2005-04-04 10:01

hello,
excuse me if this have already been answer but i can't find :(

i have a web site whit login/pass authentification.
i want to embed gallery into but i don't want users to login another time.
so i want to login for them whith a php file.
i do this but it don't work :(

//////////////////////////////////
require($GALLERY_BASEDIR.'init.php');
$tmpUser = $gallery->userDB->getUserByUsername("toto");
if ($tmpUser && tmpUser->isCorrectPassword(substr("totopassword",0,10))) {
$tmpUser->log("login");
$tmpUser->save();
$gallery->session->username = "toto";
}
else {
print ("login/pass error :/<br>");
exit;
}
header("Location: gallery/do_command.php?return=index.php");
///////////////////////////////////

after this i am redirected to the index gallery page but not login.
please help me

 
lxxndr

Joined: 2005-04-14
Posts: 5
Posted: Fri, 2005-04-15 13:39

Have exactly the same requirement .. did you ever get a response to your question?

Ian.

 
antjuv1

Joined: 2005-04-04
Posts: 4
Posted: Mon, 2005-04-18 07:06

no :(
I will try in an other forum

 
skysober

Joined: 2005-11-22
Posts: 19
Posted: Wed, 2005-11-23 20:39

Same problem here! It seems to be quite a popular problem in many many different questions about this software but not one answer yet... :(

and whomever is editting this to look at the imbedding CMS - QUIT IT.. thee is NO information there for IPB 2.0 and Gallery 1.5 integration... especially for non tech people!

 
jackpro

Joined: 2005-12-10
Posts: 3
Posted: Sat, 2005-12-10 12:38

"after this i am redirected to the index gallery page but not login.
please help me"

Please tell me what exactly the problem ,I mean give more clarification