Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Integration with existing system  (Read 2542 times)

0 Members and 1 Guest are viewing this topic.

Fréderic

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Integration with existing system
« on: September 11, 2005, 01:00:28 pm »

I'm building my own login system, and I want every user that registrates itself directly to be registrate in the Coppermine Gallery. I've been searching in the source code, but is everything okay when I just add this line to my existing loginsystem:
Code: [Select]
$sql = "INSERT INTO {$CONFIG['TABLE_USERS']} " . "(user_regdate, user_active, user_actkey, user_name, user_password, user_email, user_location, user_interests, user_website, user_occupation) " . "VALUES (NOW(), '$active', '$act_key', '" . addslashes($user_name) . "', '" . addslashes($password) . "', '" . addslashes($email) . "', '$location', '$interests', '$website', '$occupation' )";
All the values are being insertes correcty, but does Coppermine also performs extra action (like makes dir's for every new user,...) or is the query of above all you have to do to registrer a user correctly?
Logged

Nibbler

  • Guest
Re: Integration with existing system
« Reply #1 on: September 11, 2005, 01:37:57 pm »

Yeah, that's all you need. Directories for uploads are created on demand.
Logged
Pages: [1]   Go Up
 

Page created in 0.014 seconds with 16 queries.