Hi, I am using a script that someone wrote here to get login details so I can insert it on any page via SSI. This is the modified script that I am using:
Code:
<?php
chdir("C:/webpages/forum");
require('../forum/global.php');
include('../forum/includes/functions_user.php');
if ($vbulletin->userinfo['userid'])
{
echo "<li><a href=/forum/login.php?$session[sessionurl]do=logout&logouthash=$logouthash";
echo $vbulletin->userinfo['logouthash'];
echo ">";
echo " Log Out";
echo "</a>";
}
if ($vbulletin->userinfo['userid'] == '')
{
print '<li><A href="/forum/quick_register.php" rel="nofollow">Register</A></li>';
if ($vbulletin->userinfo['userid'] == 0)
{
echo "<li><a href=\"/cgi-bin/dir/user.cgi?url=" . $_SERVER['REQUEST_URI'] . "\" rel=\"nofollow\">Login</a></li>";
}
}
?>
Now this was working fine until today, now at the top of all my pages that use this script as SSI I have instead of details it is all gibberish i.e about 50 lines of "???ZkS????V??(u?Pˆ????R?????YLu???X?Zd?? a???..." I go to forum and am redirected to "Your password is 180 days old, and has therefore expired...", I know I can change the password settings for each user group in admin cpanel but I would rather change the script. So basically does anyone know how, so that if p/w expired it just says "change password"? Or just the variable name? i.e userinfo['passwordexpired']?