I get this error whenever I run coppermine.... I checked the reference, and the part in the code is highlighted in red... Any1 else have this problem, or else know how to fix it without impacting the rest of the site (bearing in mind that it is the mainfile.php). Powered by Coppermine Photo Gallery v1.1 Version for phpnuke by Surf v1.1D
Quotefunction is_admin($admin) {
global $prefix, $db;
if(!is_array($admin)) {
$admin = base64_decode($admin);
$admin = explode(":", $admin);
$aid = "$admin[0]";
$pwd = "$admin[1]";
} else {
$aid = "$admin[0]";
$pwd = "$admin[1]";
}
if ($aid != "" AND $pwd != "") {
$sql = "SELECT pwd FROM ".$prefix."_authors WHERE aid='$aid'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$pass = $row['pwd'];
if($pass == $pwd && $pass != "") {
return 1;
}
}
return 0;
}
Did you add additional modules to your phpNuke installation ?
Also which version of phpNuke ?
You need to answer this question:
QuoteDid you add additional modules to your phpNuke installation ?
Also which version of phpNuke ?
After that try this
$pwd = "$admin['1']";
Quote from: "sengsara"After that try this
$pwd = "$admin['1']";
$pwd = "{$admin['1']}"; cos array values need to be between brackets :wink: