Topic: Checking for login.
I downloading PunBB today and I think it's great, just what I needed. I tried to write a script that would work out if a user was logged on on other pages of my site, but I gives this error:
"The file 'config.php' doesn't exist or is corrupt. Please run install.php to install PunBB first."
I know config.php is working because the rest of the forum is fine.
Here is the code that I used:
<?
require ('include/common.php');
if ($cookie['is_guest'])
{
echo "guest";
}if (!$cookie['is_guest'])
{
$username = $cur_user['username'];
$email = $cur_user['email'];
echo $username;
echo $email;
}?>
Are they any adjustments to be made or is it alot less simple than I originally thought?
Any help will be greatly appreciated.
Thanks