Advanced search  

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

Pages: [1]   Go Down

Author Topic: login system  (Read 3457 times)

0 Members and 1 Guest are viewing this topic.

bole

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 4
login system
« on: April 15, 2005, 07:31:04 pm »

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...
Logged

Nibbler

  • Guest
Re: login system
« Reply #1 on: April 15, 2005, 07:38:32 pm »

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'
Logged

bole

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 4
Re: login system
« Reply #2 on: April 16, 2005, 11:45:55 am »

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?
Logged

Nibbler

  • Guest
Re: login system
« Reply #3 on: April 16, 2005, 02:50:46 pm »

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.
Logged

bole

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 4
Re: login system
« Reply #4 on: April 16, 2005, 07:41:05 pm »

well I use sessions, cookies just for autologin
but that isnt really that bad idea
« Last Edit: April 16, 2005, 09:20:10 pm by bole »
Logged

bole

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 4
Re: login system
« Reply #5 on: April 17, 2005, 09:42:02 pm »

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
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 20 queries.