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
Posts: 5
Have exactly the same requirement .. did you ever get a response to your question?
Ian.
Posts: 4
no
I will try in an other forum
Posts: 19
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!
Posts: 3
"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