Integration with existing system Integration with existing 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

Integration with existing system

Started by Fréderic, September 11, 2005, 01:00:28 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Fréderic

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:
$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?

Nibbler

Yeah, that's all you need. Directories for uploads are created on demand.