ok, so turns out you don't actually need the cookie name :P
This little hack should work, but since i've not tested it (as i dont need it!) i'm not too sure, but here goes.
PHP Code:
<?php
$phpbb_root_path = you need to find out this, and place it here;
include($phpbb_root_path . 'common.php');
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
if ( $userdata['session_logged_in'] )
$username = $userdata['username'];
{ echo "Welcome $username"; } else {
echo('
Forum Login
<form action="http://www.somplanet.com/forums/login.php" method="post" target="_top">
Username: <input type="text" name="username" size="25" maxlength="40" value="" />
Password: <input type="password" name="password" size="25" maxlength="32" />
<input type="hidden" name="redirect" value="" /><input type="submit" name="login" class="mainoption" value="Log in" />
</form>');
}
?>
Like i said, this is completely untested - and my formatting is awful!! If this does not work, have u tried the PHPBB forums?? they openly post many hacks.
__________________
A lie gets halfway around the world before the truth has a chance to get its pants on. - Sir Winston Churchill
Please visit my sites: Please login or register to view this content. Registration is FREE | Please login or register to view this content. Registration is FREE
|