PDA

View Full Version : YaBB Integration


yabber
December 31st, 2004, 04:12 PM
I love my YaBB board. Would it be possible to integrate photopost/reviewpost using code similar to what I use for my current perl gallery? -

# Change these if you've customized your YaBB cookie names...
my $YaBBusername="YaBBusername";
my $YaBBpassword="YaBBpassword";

debug("Entering subroutine: cookieLogin",4,__LINE__);

# Check to see if the user has a cookie, and log them in with that.
foreach $chip (%::cookie)
{
# Check YaBBN logins (username)
# if ($lastchip=~/^$YaBBusername.*/ && $::authentication_type eq 3)
if ($lastchip=~/^$YaBBusername.*/ && !$myusername)
{
debug("Found YaBB username info: $lastchip",3,__LINE__);
$myusername=$chip;
debug("\$myusername set to $myusername",3,__LINE__);
}

# Check YaBBN logins (password)
# if ($lastchip=~/^$YaBBpassword.*/ && $::authentication_type eq 3)
if ($lastchip=~/^$YaBBpassword.*/ && !$mypassword)
{
debug("Found YaBB password info: $lastchip",3,__LINE__);
$mypassword=$chip;
debug("\$mypassword set to $mypassword",3,__LINE__);
}


Thanks in advance.