Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Autologin to Coppemmine  (Read 5562 times)

0 Members and 1 Guest are viewing this topic.

fabienp

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Autologin to Coppemmine
« on: May 30, 2006, 11:37:52 am »

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.
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Autologin to Coppemmine
« Reply #1 on: May 30, 2006, 12:54:44 pm »

Code: [Select]
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

Code: [Select]
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Autologin to Coppemmine
« Reply #2 on: May 30, 2006, 01:57:03 pm »

??????????????????????????
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Autologin to Coppemmine
« Reply #3 on: May 30, 2006, 02:00:09 pm »

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

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Autologin to Coppemmine
« Reply #4 on: May 30, 2006, 02:08:11 pm »

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
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Autologin to Coppemmine
« Reply #5 on: May 30, 2006, 02:28:36 pm »

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

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Autologin to Coppemmine
« Reply #6 on: May 30, 2006, 02:47:49 pm »

 ??? ??? ??? ??? ???
Logged

fabienp

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Autologin to Coppemmine
« Reply #7 on: May 30, 2006, 02:59:52 pm »

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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Autologin to Coppemmine
« Reply #8 on: May 31, 2006, 12:24:28 am »

The samples are the existing bridge files. If you don't understand, then you're stuck.
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 15 queries.