Esta es la parte que sigue al script anterior:
Código PHP:
<form action="<?=$phpbb_root_path?>login.php" method="post">
<input type="hidden" name="redirect" value="<?=$volver?>?sid=<?=$userdata['session_id']?>">
Usuario: <input type="text" name="username" size="10" /><br>
Contraseña: <input type="password" name="password" size="10" maxlength="32" /><br />
Entrar automáticamente en cada visita
<input class="text" type="checkbox" name="autologin" />
<input type="submit" class="mainoption" name="login" value="Login" />
</form>
<a href="<?=$phpbb_root_path?>profile.php?mode=register">Registrarse</a>
</div>
<?}
else
{
$sql = mysql_query("SELECT g.group_id, g.group_name, g.group_type, ug.user_pending
FROM " . GROUPS_TABLE . " g, " . USER_GROUP_TABLE . " ug
WHERE ug.user_id = " . $userdata['user_id'] . "
AND ug.group_id = g.group_id
AND g.group_single_user <> " . TRUE . "
ORDER BY g.group_name, ug.user_id");
$cont=1;
while($row=mysql_fetch_array($sql))
$grupos.=" <b>".$row['group_name']."</b>,";
if (mysql_num_rows($sql)>0)
print "perteneces a los siguientes grupos: ". $grupos;
if ( $userdata['user_new_privmsg'] )
{
$l_message_new = ( $userdata['user_new_privmsg'] == 1 ) ? $lang['New_pm'] : $lang['New_pms'];
$l_privmsgs_text = sprintf($l_message_new, $userdata['user_new_privmsg']);
}
else
{
$l_privmsgs_text = $lang['No_new_pm'];
}
?>
<br>
<a href="<?php echo $phpbb_root_path ?>profile.php?mode=editprofile" >Perfil</a>
<a href="<?php echo $phpbb_root_path ?>privmsg.php?folder=inbox"><?php echo $l_privmsgs_text ?></a> <?
}
?>
<br>--------------------<br>
<br><a href="<?=$phpbb_root_path?>index.php">foro</a><br>
<?
print $l_online_users."<br>".$online_userlist;?>
</BODY>
</HTML>
<?ob_end_flush();?>
Al script funciona perfecto pero aora no me entra en el foro.
Saludos.