Convert Coppermine users to Postnuke Convert Coppermine users to Postnuke
 

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

Convert Coppermine users to Postnuke

Started by casNuy, December 25, 2007, 01:50:18 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

casNuy

Attached a script that allows you to convert your Coppermine users to Postnuke users.
Adjust the settings of this script and copy it to your webserver.
Run the program, it will generate some outout.
Once done, remove it from your webserver.

the settings are:
Quote
// Postnuke data (Host-Database-User_table-Database user-Database user password)
$pn_host            = "localhost" ;
$pn_db            = "Postnuke" ;
$pn_table         = "pn_users" ;
$pn_user            = "root" ;
$pn_pwd            = "password" ;
$pn_group_membership                = "pn_group_membership" ;

// Coppermine data (Host-Database-User_table-Database user-Database user password)
$cpg_host   = "localhost" ;
$cpg_db      = "coppermine" ;
$cpg_table   = "cpg148_users" ;
$cpg_user   = "root" ;
$cpg_pwd   = "password" ;

// General data (Postnuke site -Sendmail)
$pn_site   = "http://www.nuy.info" ;
$mail_it   = "0" ; // set to "1" to send email

The first set is around Postnuke, please pay attention to correct spelling (and capitals on *nix based systems) etc.
The second set is around Coppermine, please pay attention to correct spelling (and capitals on *nix based systems) etc.
The third set is generic, if you want the generated password to be emailed, make sure you correct the link to your website and to change the value to "1".
All users are added to Postnuke as a normal user.

Possibly this will be added to a future version of pnCPG.

Enjoy.

Cas