coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: cftranslate on May 25, 2004, 02:59:49 PM

Title: How can I login from a non-CPG script?
Post by: cftranslate on May 25, 2004, 02:59:49 PM
I use another application that requires login and I want the user to login in to that application and be logged in in CPG at the same time.

I have not been able to figure out exactly what login method CPG uses.

In my application I have a table with username,pword,tipe (1-administrator 2-regular user).

When the user enters his name if the username and pword are found in the database a
session variable = tipe of user is set and checked for on every page with limited access.

¿Is there a way to implement simultaneous CPG login following this scheme?

Thanks.
Title: Re: How can I login from a non-CPG script?
Post by: Casper on May 25, 2004, 04:37:58 PM
What is this 'other application'?

We have bridge files to several of the popular forum software, that integrates the 2 user managements.
version 1.2.1 has phpbb, invisionboard, yabbse and vbulletin.
version 1.3 will also have smf and woltlab.

There are other apps that have created there own bridges/portals etc.  For instance, E107 has an integration with standalone coppermine, and there are cms versions of coppermine for use with nuke etc.
Title: Re: How can I login from a non-CPG script?
Post by: cftranslate on May 25, 2004, 08:47:25 PM
It is an application that I developed myself, a module to create news articles, I want the jounalist to  be able to create both articles and albums using the same user and pword and without being prompted for user and pword twice, having to enter user and pword twice.
Title: Re: How can I login from a non-CPG script?
Post by: Joachim Müller on May 31, 2004, 11:30:57 AM
just use<?php
define
('IN_COPPERMINE'true);
require(
'include/init.inc.php');
?>
on your other page and you should be able to use coppermine's login. If you have developed another php app already it should be easy for you to use coppermine authentification method and find out what vars are defined.

GauGau