login system login system
 

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 system

Started by bole, April 15, 2005, 07:31:04 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bole

i've got a small problem. I made my own page, but I wont tu use this script. the problem is, that I have to register twice and login twice, because I have my own login system.  I've found that eveything is defined in init.inc.php, but I can't use my sistem for it, because I have my login system in one databese, and this script in enother. can you please help me solve this problem?

oh, and sorry abaut my english...

Nibbler

You need to pick one option:

1) You use your login system as the master and write a bridge for coppermine
2) You adopt coppermine's login system instead of your own - I wrote a mod for this in 'admin functions'

bole

ok, I would take the first one, but how to do it? I dont know a lot abaut programing (well I have just made forum), so I would like some help here. well the registration wouldn't be the problem, but the login system is. any idea?

Nibbler

If you have a fairly standard database layout and use cookies to store some id or username then you should be able to adapt one of the existing BBS bridges.

bole

#4
well I use sessions, cookies just for autologin
but that isnt really that bad idea

bole

i've made it!
If anyone would have the same problem, here's what I did:
setcookie("cpg132_uid", $user_id, time() + 180,"/");
setcookie("cpg132_pass", md5($pass), time() + 180,"/");
you must give this into your login system, and you would have to login once. oh, and watch out abaut the id