login paramaters login paramaters
 

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

login paramaters

Started by PJ_56, October 31, 2005, 03:32:44 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

PJ_56

Hello !

Is it possible to transfer the login and the password since another Web page to automate the connection ?
Any idea ?

Joachim Müller


PJ_56

I don't understant... How can i do with PHP langage and coppermine 1.3 ?

Tranz

So you want to integrate with a custom system that is not listed in that page in the URL GauGau gave?

PJ_56

My system work whith easy php. I want to integrate cpg in my web site which is with some restricted accesses.
The table of the users was filled with all the registered people on my site. The aim is that the users are not identified a second time.

Joachim Müller

you'd have to come up with a custom bridge file that "hooks" to your custom user authentification app. Coppermine provides the API.

PJ_56

I have the impression that it is planned for forums php only. Is it possible to modify the file login.php or index.php of coppermine ? Or to send the user and password from an other php file ?

Nibbler

Use the bridge system, it's the only sensible way to do it.

PJ_56

It is in the Bridge directory ? Which file must i modify ?

Nibbler

Modify one that is similar to your system.

PJ_56

It's not very easy... Is there any other solution ? I must recover the user name via the url of the navigator to do the connection with coppermine.
Please, help.

Joachim Müller

look, we don't know your custom user authentification script, so we can not come up with a bridge file for your purposes. If you were able to code a custom user authentification script by yourself you're certainly capable to look at some bridge files, find out how they work and come up with your own bridge file. After all, there's no difference how your user authentification script stores user data (inside a database or a plain text file). The bridge basically makes coppermine read the cookie from your other app that provides user authentification, then it needs to read the user data source (database tables or plain text files) and compare the cookie data and user data from the lookup. If you have no idea what I'm talking about I suggest choosing another user autentification scheme (i.e. dropping your existing one) or hiring someone to create a bridge file for you.
Sending authentification by URL (GET method) is very unsecure and not recommended anyway.

PJ_56

Ok, thanks, i'm going to try to find a solution. Thanks for your explications.

PJ_56

When i try to create a cookie for coppermine i've got this error :

Warning: Cannot modify header information - headers already sent by (output started at c:\www\gallerie\cpg134\p_boot.php:3) in c:\www\gallerie\cpg134\p_boot.php on line 17

What does it means ?

PJ_56

How can i do to create a cookie to connect coppermine gallery automaticly ? What are the informations that i must declare into this cookie ?

Nibbler

Coppermine is open source software, read the source and that will tell you all you need to know.

Joachim Müller

you don't create a cookie for coppermine - the script does this already. Just make sure you have specified the cookie name properly in coppermine's config. Merged the two threads that deal with the same issue.