News:

CPG Release 1.6.29
During HTML5 upload, keep pseudo blank code 200 messages from triggering error condition
added Russian language
correct failure to use theme menu icons in album manager
minor vulnerabilities mitigation

Main Menu

Notice: Undefined index: 1 in /path/mainfile.php on line 202

Started by tkx, November 08, 2003, 09:08:40 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

tkx

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;
}

DJMaze

Did you add additional modules to your phpNuke installation ?
Also which version of phpNuke ?
There are 2 kinds of users in this world: satisfied and complainers.
Why do we never hear something from the satisfied users?
http://coppermine-gallery.net/forum/index.php?topic=24315.0

sengsara

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']";
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fbatamweb.net%2F4leechers%2Fsengsaraatgmail.gif&hash=5023c7ba1bc4142435e406735fee30bc611c5a03)

DJMaze

Quote from: "sengsara"After that try this
$pwd = "$admin['1']";

$pwd = "{$admin['1']}"; cos array values need to be between brackets  :wink:
There are 2 kinds of users in this world: satisfied and complainers.
Why do we never hear something from the satisfied users?
http://coppermine-gallery.net/forum/index.php?topic=24315.0