Autologin to Coppemmine Autologin to Coppemmine
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Autologin to Coppemmine

Started by fabienp, May 30, 2006, 11:37:52 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

fabienp

Hello,

I have installed Coppermine on my member zone of my site. The tables of member are connected, so the user who connect to his member zone should already connected to coppermine, but i can simulate autologin with coppermine.

Can you tell me how it works ? I tried with cookies but i don't understand of what is composed this cookie (id of member ?) ?

Please, help me it's urgent.

Stramm

if (defined('UDB_INTEGRATION')) $cpg_udb->login_page();
if ( $USER_DATA = $cpg_udb->login( $user_name, $password, true) )  {
photoshop_refresh($_SERVER['PHP_SELF'].'?file=photo_shop/photo_shop_checkout');       


that's how I did it. I was in need of a combined signup or login page. After the code that sends the signup confirmation I've placed that piece code.
The function photoshop_refresh just redirects to another url after logging the user on

function photoshop_refresh($redirect) {
global $lang_info;

            pageheader($lang_info, "<META http-equiv=\"refresh\" content=\"0;url={$redirect}\">");
            pagefooter();
            ob_end_flush();
exit;
}


edit: you can test it if you check my sig. Add something to the shopping basket and then checkout (don't be afraid... it's a demo site and you won't order anything, hehe )

fabienp


Stramm

Ahh.. sorry, after reading again what you've written I thionk you mean you want to bridge your gallery with your  bulletin board. For that read the docs http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#integrating

fabienp

I understand nothing to this. I have a table of member and groups indepently of coppermine. How can i connected this tables and do the autolig working ?

Can you explain how to do this ?

Thank's

Stramm

If you use on of the supported bulletin boards it's not a problem at all. But if you use a custom system you'll have to come up with an own solution. In that case you should have a look at one of the existing bridge files and customize the one that comes close to your needs

fabienp


fabienp

Sorry,

i really undersatnd nothing to the bridge. I want to do this :

- The member connect to its member zone of my site.
- When he clicked on link of coppermine, i want that i still directtly connected to coppermine without connect by login page of coppermine

Can you explain me in details how can i do this and if it is possible, please ? A little sample ?

Thank's

Joachim Müller

The samples are the existing bridge files. If you don't understand, then you're stuck.