Re: Dynamic creation of a album by another script Re: Dynamic creation of a album by another script
 

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]

Main Menu

Re: Dynamic creation of a album by another script

Started by Joachim Müller, March 03, 2005, 10:17:56 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Joachim Müller

as your reviews are not part of coppermine, I can't give you actual code, but just some generic answer: you have to trigger a mySQL command that creates another album in coppermine's "albums" db table, simple as that. The query would look something likeINSERT INTO {$CONFIG['TABLE_ALBUMS']} (category, title, uploads, pos) VALUES ('$category', '" . addslashes($op['album_nm']) . "', 'NO',  '{$op['album_sort']}')(code taken from coppermine file "delete.php", review it for details).

Joachim