Coppermine Photo Gallery v1.1 help

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Coppermine Photo Gallery v1.1 help
Molly28
CZ Active Member
Molly28 has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Feb 10, 2004
0.01 posts per day
Posts: 102
Points: 5,310
   
hi,
Everything is fine in my Coppermine Photo Gallery v1.1
Version for phpnuke by Surf v1.1D ..the only problem is when i login as admin in the top
of the page gives an notice line that says

Notice: Use of undefined constant pwd - assumed 'pwd' in /public_html/php/mainfile.php on line 203


and on this line 203 of the main file it says
$pass = $row[pwd];


here is the function from te main file

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



Thank you icon_rolleyes.gif


Back to top Reply with quote
#2   re: Coppermine Photo Gallery v1.1 help
Taut
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif california.gif
Occupation: Entrepreneur
Gender: Female
Fav. Sports Team: SF Giants
Status: Offline
Joined: May 27, 2003
0.70 posts per day
Posts: 5530
Points: 481,695
   
they have an article in their forums about this:
[ Register or login to view links on this board. ]


taut



Back to top Reply with quote
#3   
Molly28
CZ Active Member
Molly28 has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Feb 10, 2004
0.01 posts per day
Posts: 102
Points: 5,310
   
Too Cool. icon_biggrin.gif

Thanks Taut.



Back to top Reply with quote
#4   re: Coppermine Photo Gallery v1.1 help
Taut
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif california.gif
Occupation: Entrepreneur
Gender: Female
Fav. Sports Team: SF Giants
Status: Offline
Joined: May 27, 2003
0.70 posts per day
Posts: 5530
Points: 481,695
   
great...glad it worked for ya


taut



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum