How can I login from a non-CPG script? How can I login from a non-CPG script?
 

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

How can I login from a non-CPG script?

Started by cftranslate, May 25, 2004, 02:59:49 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

cftranslate

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.

Casper

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.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

cftranslate

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.

Joachim Müller

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