Mam już poprawione, trzeba wstawić panel logowania:
<?php
include("include/session.php");
$page = "main.php";
?>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Skrypt logowanie/rejestracja</title>
<link rel="stylesheet" href="style.css" type="text/css" />
</head>
<body>
<div id="main" class="container_12">
<table>
<tr><td>
<?php
if($session->logged_in){
?>
Witaj, <b>
<?php echo $session->username; ?></b> |
[<a href="userinfo.php?user=
<?php echo $session->username; ?>">Mój profil</a>] [<a href="useredit.php">Edytuj profil</a>]
<?
$q = "SELECT mail_id FROM ".TBL_MAIL." WHERE UserTo = '$session->username' and status = 'unread'";
echo "[<a href=\"mail.php\">Masz $numUnreadMail nowych wiadomości</a>] "; }
?>
<?php
if($session->isAdmin()){
echo "[<a href=\"admin/admin.php\">Panel Administratora</a>] "; }
echo "[<a href=\"process.php\">Wyloguj</a>]";?></p>
<?php }
else{
?>
<div id="login">
<?php
if($form->num_errors > 0){
echo "<font size=\"2\" color=\"#ff0000\">".$form->num_errors." błąd(ów) znaleziono</font>"; }
?>
<form action="process.php" method="POST">
<div class='adminbox_title'>Logowanie</div>
<div class='adminbox'>
<table cellpadding='3' cellspacing='0' border='0' align='center'>
<td rowspan='3' valign='top'><img src='admin/access.gif' alt='Access' style='margin-right:0px;'></td>
<td>Nick:</td><td><input type="text" name="user" class="intxt" maxlength="30" value="
<?php echo $form->value("user"); ?>"></td><td>
<?php echo $form->error("user"); ?></td></tr>
<td>Hasło:</td><td><input type="password" name="pass" class="intxt" maxlength="30" value="
<?php echo $form->value("pass"); ?>"></td><td>
<?php echo $form->error("pass"); ?></td></tr>
<td colspan="2" align="left">
<input type="checkbox" name="remember"
<?php if($form->value("remember") != ""){ echo "checked"; } ?>>Zapamiętaj Mnie
<input type="hidden" name="sublogin" value="1">
<input type="submit" value="Zaloguj">
<br /><a href="forgotpass.php">Zapomniałeś hasła?</a><br>
<a href="register.php">Zarejestruj się!</a><br>
<?php
if(EMAIL_WELCOME){
echo "<a href='valid.php'>Wyślij ponownie kod aktywacyjny</a>"; }
?></td></tr>
</table>
</div>
</form>
</div><!-- #login -->
<?php
}
?>
<div id="footer"><br />
<?
echo "</td></tr><tr><td align=\"center\"><br><br>"; echo "<b>Użytkowników:</b> ".$database->getNumMembers()."<br>"; echo "Jest $database->num_active_users zarejestrowanych użytkowników i "; echo "$database->num_active_guests gości przeglądających stronę.<br><br>";
include("include/view_active.php");
?>
</td></tr>
</table>
</div><!-- #footer -->
</div><!-- #main -->
</body>
</html>
W tą stronę (lewy panel o nazwie logowanie):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<meta http-equiv="Content-type" content="text/html; charset=iso-8859-2">
body{ font-family: verdana,tahoma;font-size: 11px;color: #000;background-color: #fff;}
td { font-family: verdana,tahoma;font-size: 11px;color: #000}
a:link,a:visited,a:active {color: #000;text-decoration: none;}
a:hover {color: #9E3F09;text-decoration: underline;}
.top {background: url(images/top.jpg); width:800px;height:161px}
.m {background: url(images/tlo.jpg); width:200px;height:30px;text-align:center;font-weight:bold;color:#fff}
.m2 {background: url(images/tlo.jpg); width:30px;height:30px;text-align:center;font-weight:bold;color:#fff}
.t {text-align:center;border:1px solid #D87136;padding:10px;font-size:11px;letter-spacing:1px}
.brd {border:1px solid #C6C6C6}
.linki {padding:5px;letter-spacing:1px}
.newsy {padding:10px;text-align:justify}
.stopka {border:1px solid #8C8C8C;padding:5px;font-size:11px;letter-spacing:1px;}
img {border: 0px;}
<table align="center" border="0" cellpadding="0" cellspacing="2" width="800">
<td class="top" colspan="2"></td>
<table class="brd" cellpadding="0" cellspacing="0">
<td class="m">Menu gł
ówne
</td>
<img src="images/arrow.gif" alt=""> <a href="">Strona gł
ówna
</a><br>
<img src="images/arrow.gif" alt=""> <a href="">Kontakt
</a><br>
<img src="images/arrow.gif" alt=""> <a href="">Forum
</a> <br>
<img src="images/arrow.gif" alt=""> <a href="">Reklama
</a> <br>
<img src="images/arrow.gif" alt=""> <a href="">Redakcja
</a>
<table class="brd" cellpadding="0" cellspacing="0">
<td class="m">Logowanie
</td>
<td style="text-align: center;">logowanie
</td>
<table style="width: 600px; height: 46px;" class="brd" cellpadding="0" cellspacing="0">
<td class="m2">Newsy
</td>
<td style="text-align: center;" width="390"><br>
<td class="stopka" colspan="2"> Copyright by Beowulf_PL
Ten post edytował o2w5n778 21.06.2010, 12:30:57