SumitGupta wrote:Well I am having same problem with my godaddy hosting. It seems to be an error of how paths get resolved when we redirect. If you does "full URL redirect whenever needed instead of just doing
header("Location: index.php");
use
header("Location: http://www.yourdomain/index.php");
will solve it
Thanks for the info. But where should I change that info? Right now my portal template looks like this:
$phpbb_root_path = './Forum/';
define ('IN_PHPBB', true);
if (!file_exists($phpbb_root_path . 'extension.inc'))
{
actually the above code I think is ok but I beleave its in this area that I am having the problems:
<form action="<?php echo $phpbb_root_path; ?>login.php" method="post" target="_top">
<span class="gensmall">
<?php echo $lang['Username']; ?>:<br />
<input type="text" name="username" size="20" maxlength="40" value="" /><br />
<?php echo $lang['Password']; ?>:<br />
<input type="password" name="password" size="20" maxlength="25" /><br />
<input type="checkbox" name="autologin" /> <?php echo $lang['Log_me_in']; ?>
<br /> <br />
<?php
//
// NOTE: Redirecting to the portal after login works only
// if the portal.php is within your phpBB2 root folder. If
// you move the portal.php outside the root folder you will
// have to change the redirect value by hand. See also
// http://www.phpbbfetchall.com/docs/redirecting/
// for further information.
// ($phpbb_root_path, 0, -1)
?>
<input type="hidden" name="redirect" value="<?php echo substr($phpbb_root_path, 0, -1) . $PHP_SELF; ?>" />
<input type="hidden" name="sid" value="<?php echo $userdata['session_id']; ?>" />
<input type="hidden" name="outside" value="1" />
<div align="center"><input type="submit" class="mainoption" name="login" value="<?php echo $lang['Login']; ?>" />
<br /> <br />
<a href="<?php echo append_sid($phpbb_root_path . 'profile.php?mode=sendpassword'); ?>"><?php echo $lang['Forgotten_password']; ?></a></div>
</span>
</form>
I have noticed some thing strange here with this code bellow when used as you see it I get the /Forum/Forum instead of /Forum/login.php if I put a space before login.php I get /Forum/%20login.php
<form action="<?php echo $phpbb_root_path; ?>login.php" method="post" target="_top">
I think there might be a bug fix for this......???