Are those globals like $dbuname declared as globals in the function you are calling them from?
Test by putting in your actual user name, password and etc... then if that works you know it was because your not getting those variables from the globals...
sorry 'bout the RTFM post b4 but version IS importent....
for the language fix find
// Process language selection if present in URI or in user profile or try
// autodetection if default charset is utf-8
if (isset($HTTP_GET_VARS['lang'])) {
$USER['lang'] = $HTTP_GET_VARS['lang'];
}
if (isset($USER['lang'])
&& !strstr($USER['lang'], '/')
&& file_exists('modules/coppermine/lang/'.$USER['lang'].'.php')){
$CONFIG['lang'] = strtr($USER['lang'], '$/\\:*?"\'<>|`', '____________');
} elseif($CONFIG['charset'] == 'utf-8'){
include('include/select_lang.inc.php');
if(file_exists('modules/coppermine/lang/'.$USER['lang'].'.php')) $CONFIG['lang'] = $USER['lang'];
} else {
unset($USER['lang']);
}
if (!file_exists("modules/coppermine/lang/{$CONFIG['lang']}.php")) $CONFIG['lang'] = 'english';
include "modules/coppermine/lang/{$CONFIG['lang']}.php";
and replace with// Process language selection if present in URI or in user profile or try
// autodetection if default charset is utf-8
global $currentlang, $language;
if (file_exists("modules/coppermine/lang/$currentlang.php")) {
$USER['lang'] = $currentlang;
} else {
$USER['lang'] = $language;
}
if (!file_exists("modules/coppermine/lang/{$USER['lang']}.php")) {
if (!file_exists("modules/coppermine/lang/{$CONFIG['lang']}.php")) {
$CONFIG['lang'] = 'english';
}
} else {
$CONFIG['lang'] = $USER['lang'];
}
include "modules/coppermine/lang/{$CONFIG['lang']}.php";