Advanced search  

News:

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

Pages: [1]   Go Down

Author Topic: Bridging with my site  (Read 8483 times)

0 Members and 1 Guest are viewing this topic.

andre88uk

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Bridging with my site
« on: November 28, 2006, 12:39:55 pm »

Hey.

Having written (or wrote not sure which is gramatically correct) a website in php i got asked to install and bridge a Coppermine gallery with it.

My website is in php and uses session variables for authentication.

The variables i use are $_SESSION['Username'] and some other variables which are not relevant here.

I would like users to log into my website and be l;ogged into both.

The website can be found www.fetishparadise.co.uk/

The gallery at www.fetishparadise.co.uk/members/gallery/index.php

The members area is normally secured off and the login is in the root directory as register.php?mode=login

Thanks in advance.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: Bridging with my site
« Reply #1 on: November 28, 2006, 04:35:20 pm »

Has been asked before: Coppermine can out-of-the box be bridged with a range of applications (like phpBB, SMF, vB, IPB and some others, refer to the docs for details). The needed bridge files come with the Coppermine package. There is a number of user-contributed bridge files available as well on the forum (for e107, Joomla and maybe some others) that you can use to bridge those apps with Coppermine as well.
However: if you want to bridge Coppermine with your custom app (that already has a user/groups management and authentification mechanisms), you'll have to come up with a bridge file of your own. Alas, there's no guide available how to write bridge files, so your best bet is to take a look at the existing bridge files (the ones that come with the package) and see how they work. If you know your way around in PHP, this should not be too hard. Then create a custom bridge file that fits your needs. The Coppermine devs don't create custom bridge files for you.

Joachim

P.S. Coppermine doesn't use session-driven authentification, but cookie-driven authentification.
Logged

andre88uk

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Bridging with my site
« Reply #2 on: November 28, 2006, 04:40:35 pm »

Ok once the cookie is set does coppermine actually check anywhere ?

so say i set the cookie on my site login would coppermine detect that there is no user actually with tha name in the database ?

The only user would be admin.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: Bridging with my site
« Reply #3 on: November 28, 2006, 05:30:17 pm »

You will have to create a custom bridge file (as I suggested). Coppermine will then read the cookie, but  this is only a first step: you'll have to tell it what to do with the cookie information. Please do as I suggested and take a look at the existing bridge files - it's impossible to teach you how bridging works just in a short posting.
Logged

andre88uk

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Bridging with my site
« Reply #4 on: November 28, 2006, 05:35:12 pm »

No i know how the briding works but i was going to try to trick coppermine into thinking that users were logged in when in reality they do not even exist in the database... im not sure i am saying this how i mean it tho.

So they login on my site and i set the gallery cookie there... coppermine then thinks that they are logged in... ?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: Bridging with my site
« Reply #5 on: November 28, 2006, 06:07:29 pm »

Take a look at the existing bridge files and then come up with your custom bridge file. I am not going to repeat this again. Basically, you're on your own with this. What you're up to goes unsupported.
Logged

tu11ym0n

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Bridging with my site
« Reply #6 on: February 24, 2007, 12:17:17 am »

andre any luck with this?

I am in exactly in the same boat you are, and despite looking at all of the included bridge files I'm still scratching my head.

our site uses basic authentication through mod_auth_mysql so I have a users table to tap into, but all of the bridge files seem to specify a groups and a sessions table. Are these required?

Like you I was hoping Coppermine would be able to look at my users table OR use the existing session username. None of the existing bridge files seem to do that.

Hopefully a kind soul will have pity on us and enlighten us. Again, I've scoured through all of the bridge files, and it's not at all clear what needs to stay unchanged, what can be edited, what can be left out and what is required. Surely some of the brains who have developed bridge files can share their genius and break it down for us simpletons.
Logged

wbtst

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Bridging with my site
« Reply #7 on: September 09, 2010, 02:08:24 pm »

i have coppermine gallery installed and i have also my website admin panel which is separate but i need to know tht wht should i do tht if web admin logins and he wish to edit albums, pics e.t.c thn he automatically logged in coppermine admin gallery at the time when he successfully logged in web admin panel so that he should not entered username pass separately for coppermine gallery. wht i mean to say is single login for admin for both coppermine gallery admin mode and web admin panel.

plz let me know (if possible) tht wht cookie var names are? and in which file i could find them?

any suggestions/solutions plz?
thnks in advance
Logged

wbtst

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Bridging with my site
« Reply #8 on: September 09, 2010, 02:11:16 pm »

plz let me from where i can download the custom bridge files and where i need to upload them if i would be able to build my custom bridge file.

any suggestions?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: Bridging with my site
« Reply #9 on: September 21, 2010, 08:12:25 am »

Locking
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 22 queries.