asta e site-ul http://magnxpyr.evolink.ro
Cod: Selectaţi tot
<?php
define('IN_PHPBB', true);
$phpbb_root_path = 'forum/';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.php');
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
?>
<?php
if( $userdata['session_logged_in'] ){
$sesiune = $userdata['session_id'];
echo " Esti logat pe forum. Your nick is: ";
echo $userdata['username'];
} else { ?>
<form action="<?php echo $phpbb_root_path; ?>login.php" method="post">
<input type="hidden" name="redirect" value="../forum.php">
<input type="hidden" name="sid" value="<?php echo $userdata['session_id']; ?>">
<input type="hidden" name="outside" value="1">
<table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td width="2%" background="images/b_title_bg.gif"> </td>
<td width="9%" background="images/b_title_bg.gif">sign in: </td>
<td width="7%" background="images/b_title_bg.gif">user: </td>
<td width="20%" background="images/b_title_bg.gif"><input type="text" name="username"></td>
<td width="6%" background="images/b_title_bg.gif">pass:</td>
<td width="20%" background="images/b_title_bg.gif"><input type="password" name="password"></td>
<td width="17%" background="images/b_title_bg.gif"><div align="left">Remember me
<input type="checkbox" name="autologin">
</div></td>
<td width="5%" background="images/b_title_bg.gif"><div align="center">
<input type="submit" name="login" value="Login">
</div></td>
<td width="14%" background="images/b_title_bg.gif"> <div align="center"><a href="http://www.magnxpyr.evolink.ro/register.php" class="link">Register</a> </div></td>
</tr>
<tr>
<td align="center" colspan="11"></td>
</tr>
<tr>
<td height="2" colspan="11" align="center"> </td></tr>
</table>
</form>
<?php } ?>