bridging the other way around bridging the other way around
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

bridging the other way around

Started by nighteyes, July 22, 2012, 02:11:47 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nighteyes

i've been searching this for some time, but its seems very hard to find. lots of people use their own user dbase and bridge that to coppermine, but i would like to do it the other way around.

I managed to find something here:
http://forum.coppermine-gallery.net/index.php/topic,45376.0.html

But this seems to be made for for 1.4.x. will this work for 1.5.x?


What i would like to do is take the usermanagement from coppermine and extend it to the rest of my site. if i could somehow detect the currently logged in username and/or password that would be great. Even better would be if i could move or at least duplicate the login process to another part of the site.

Now i'm not entirely new to php and programming in general, but the way coppermine is coded is way more advanced then my humble skill level, and i'm a bit lost in figuring this out.




ΑndrĂ©

If you include include/init.inc.php to your custom sites, you'll have all information you need (e.g. the populated constant USER_ID):
define('IN_COPPERMINE', true);
include('init.inc.php');


Alternatively you can also rebuild the authentication process (i.e. query Coppermine's database).

nighteyes

couldn't get it to work with :include('init.inc.php');

After long puzzling i have managed to use an existing auth.inc.php for version 1.4.x, en succesfully converted it to 1.5.x.

many thanx to  Jordan Coffey for the original.

I've included both the original and my version.

problem solved.