Kod strony:
<html> <head> <meta http-equiv="Content-type" content="text/html; charset=iso-8859-2"> <style type="text/css"> 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:180px} .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;} </style> </head> <body> <table align="center" border="0" cellpadding="0" cellspacing="2" width="800"> <tbody> <tr> </tr> <tr> <td valign="top"> <table class="brd" cellpadding="0" cellspacing="0"> <tbody> <tr> </tr> <tr> <td> <div class="linki"> </div> </td> </tr> </tbody> </table> <br> <table class="brd" cellpadding="0" cellspacing="0"> <tbody> <tr> </tr> <tr> <td style="text-align: center;"> </td> </tr> </tbody> </table> </td> <td valign="top"> <table style="width: 600px; height: 54px;" class="brd" cellpadding="0" cellspacing="0"> <tbody> <tr> </tr> <tr> </td> </tr> </tbody> </table> </td> </tr> <tr> <td class="stopka" colspan="2"> Copyright by Beowulf_PL </td> </tr> </tbody> </table> </body> </html>
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){ ?> [<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'"; } ?> <?php if($session->isAdmin()){ } } else{ ?> <div id="login"> <?php if($form->num_errors > 0){ } ?> <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 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){ } ?></td></tr> </table> </div> </form> </div><!-- #login --> <?php } ?> <div id="footer"><br /> <? include("include/view_active.php"); ?> </td></tr> </table> </div><!-- #footer --> </div><!-- #main --> </body> </html>