Как ще стане?

miro_94

Registered
Здравейте.Искам да те питам кое трябва да променя на скрипта за логин в урока за интегриране на форум и сайт на админ, за да води към индекса на сайта?Пътят е
http://localhost/WT/index.php
and
C:\wamp\www\WT\index.php
.Благодаря предварително :D.
Код:
<?php include ("conn.php"); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $title; ?></title>
</head>

<body>
<?php
if ($userdata['user_active']>0)
{

echo '

<table border="0" style="font-size:12px;" cellpadding="0" cellspacing="0" >
<tr>
<td style="font-size:12px;" height="20"><b>Потребител:</b>
</td>
</tr>
<tr>
<td style="font-size:12px;" height="20"><a
href="'.$phpbb_root_path.'profile.php?mode=viewprofile&u='.$userdata['username'].' ">'. $userdata['username'].'</a>
</td>
</tr>
<tr>
<td height="20" ><a class="user" href="'.$phpbb_root_path.'login.php?logout=true&sid='.$userdata['session_id'].'">Изход</a></td>
</tr>
<tr>
<td height="5">
</td>
</tr>
</table>

';
}
else
{

echo '

<form action="'.$phpbb_root_path.'login.php" method="post" style="margin: 0px;">
<input type="hidden" name="redirect" value="../index.php" />
<table border="0" style="font-size:12px;" width="130" cellspacing="0" cellpadding="0">
<tr>
<td class="left" height="25">
<b>Потребител:</b>
</td>
</tr>
<tr>
<td class="left" height="25">
<input type="text" name="username" size="10" maxlength="25">
</td>
</tr>
<tr>
<td class="left" height="25">
<b>Парола:</b>
</td>
</tr>
<tr>
<td class="left" height="25">
<input type="password" name="password" size="10" maxlength="25">
</td>
</tr>
<tr>
<td>
автоматично: <input type="checkbox" name="autologin" checked >
</td>
</tr>
<tr>
<td class="left" height="35">
<input type="submit" name="login" value="Вход">
</td>
</tr>
<tr>
<td class="left" height="20" >
<a href="'.$phpbb_root_path.'profile.php?mode=register">Регистрация</a>
</td>
</tr>
<tr>
<td class="left" height="20">
<a href="'.$phpbb_root_path.'profile.php?mode=sendpassword" >Забравена парола</a>
</td>
</tr>
</table>
</form>

';

}

?>
</body>
</html>
Това е скрипта, за който питам.
 

Back
Горе