Her er koden som er til loginet:
<?php
define('IN_PHPBB', true);
$phpbb_root_path = './forum/';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
//
// End session management
//
if( $userdata['session_logged_in'] )
{
?>
<p style="margin-top: 0; margin-bottom: 0">
<font color=#FFFFFF face="Verdana" size="2">
<?php
print "Velkommen " . $userdata['username'] . ".";
?>
</font>
<?php
}
else
{
?>
<form action="forum/login.php" method="post">
<tr>
<td>
<p style="margin-top: 0; margin-bottom: 0">
<font color=#FFFFFF face="Verdana" size="2">User
login</font></td>
<td>
<p align="right" style="margin-top: 0; margin-bottom: 0">
<font color=#FFFFFF face="Verdana" size="2">
Username: </font>
</td>
<td width="154">
<p style="margin-top: 0; margin-bottom: 0">
<font color="#FFFFFF" face="Verdana">
<input width="154" class="input" name="username" size="20" style="float: right"></font></td>
</tr>
<tr>
<td>
</td>
<td>
<p align="right" style="margin-top: 0; margin-bottom: 0">
<font color=#FFFFFF face="Verdana" size="2">Password: </font></td>
<td width="154">
<p style="margin-top: 0; margin-bottom: 0">
<font color="#FFFFFF" face="Verdana">
<input width="154" class="input" name="password" style="float: right" type="password" size="20"></font></td>
</tr>
<tr>
<td>
</td>
<td>
<p align="right" style="margin-top: 0; margin-bottom: 0">
<font face="Verdana" size="1" color=#77BBFF><a href=#>
<font color="#FFFFFF">Sign
up!</font></a></font><p align="right" style="margin-top: 0; margin-bottom: 0">
<font face="Verdana" size="1" color=#77BBFF><a href=#>
<font color="#FFFFFF">Forgot
your password!</font></a></font></td>
<td width="154">
<p style="margin-top: 0; margin-bottom: 0">
<font face="Verdana">
<input class=Button type="submit" value="Login" name="login" style="float: right"></font></td>
</tr>
</form>
<?php
}
?>
Og her er koden med design:
<html>
<head>
<meta http-equiv="Content-Language" content="da">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>IO SoftGame - Makes life more easy!</title>
</head>
<style type="text/css">
A:link {text-decoration: none}
A:visited {text-decoration: none}
A:active {text-decoration: none}
A:hover {text-decoration: underline;}
.Button {
background-color: #2B4ED6;
border-color: #eeeeee;
border-style: solid;
border-width: 1;
color: #ffffff;
font-family: verdana;
}
.input {
background-color: #eeeeee;
border: 1px solid silver;
color: black;
}
</style>
<body>
<center>
<table width=800 border="0" cellspacing="0" background=overbg.jpg>
<tr>
<td width=15>
<p style="margin-top: 0; margin-bottom: 0">
</td>
<td>
<table height=15 width=100% border="0" cellspacing="0">
<tr>
<td> </td>
</tr>
</table>
<table width=100% border="0" cellspacing="0">
<tr>
<td>
<p style="margin-top: 0; margin-bottom: 0">
<img src=logo_small.jpg></img><p style="margin-top: 0; margin-bottom: 0" align="right">
<font face="Verdana" color="#FFFFFF"><i>Makes more easy!</i></font><font size="2" face="Verdana"><font color="#FFFFFF"></font> </font></td>
<td width=458 bgcolor=#2B4ED6 background="sky.jpg">
<table border="0" cellspacing="0" width=100%>
<?php
define('IN_PHPBB', true);
$phpbb_root_path = './forum/';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
//
// End session management
//
if( $userdata['session_logged_in'] )
{
?>
<p style="margin-top: 0; margin-bottom: 0">
<font color=#FFFFFF face="Verdana" size="2">
<?php
print "Velkommen " . $userdata['username'] . ".";
?>
</font>
<?php
}
else
{
?>
<form action="forum/login.php" method="post">
<tr>
<td>
<p style="margin-top: 0; margin-bottom: 0">
<font color=#FFFFFF face="Verdana" size="2">User
login</font></td>
<td>
<p align="right" style="margin-top: 0; margin-bottom: 0">
<font color=#FFFFFF face="Verdana" size="2">
Username: </font>
</td>
<td width="154">
<p style="margin-top: 0; margin-bottom: 0">
<font color="#FFFFFF" face="Verdana">
<input width="154" class="input" name="username" size="20" style="float: right"></font></td>
</tr>
<tr>
<td>
</td>
<td>
<p align="right" style="margin-top: 0; margin-bottom: 0">
<font color=#FFFFFF face="Verdana" size="2">Password: </font></td>
<td width="154">
<p style="margin-top: 0; margin-bottom: 0">
<font color="#FFFFFF" face="Verdana">
<input width="154" class="input" name="password" style="float: right" type="password" size="20"></font></td>
</tr>
<tr>
<td>
</td>
<td>
<p align="right" style="margin-top: 0; margin-bottom: 0">
<font face="Verdana" size="1" color=#77BBFF><a href=#>
<font color="#FFFFFF">Sign
up!</font></a></font><p align="right" style="margin-top: 0; margin-bottom: 0">
<font face="Verdana" size="1" color=#77BBFF><a href=#>
<font color="#FFFFFF">Forgot
your password!</font></a></font></td>
<td width="154">
<p style="margin-top: 0; margin-bottom: 0">
<font face="Verdana">
<input class=Button type="submit" value="Login" name="login" style="float: right"></font></td>
</tr>
</form>
<?php
}
?>
</table>
</td>
</tr>
</table>
<table border="0" cellspacing="0" width="100%">
<tr>
<td> </td>
<td align=center width=90 height=34 background=menubutton.gif>
<p style="margin-top: 0; margin-bottom: 0">
<font face="Verdana" size="2"><a href="index.htm">
<font color="#000000">Home</font></a></font></td>
<td align=center width=90 height=34 background=menubutton.gif>
<p style="margin-top: 0; margin-bottom: 0">
<font face="Verdana" size="2"><a href="#"><font color="#000000">News</font></a></a></font></td>
<td align=center width=90 height=34 background=menubutton.gif>
<p style="margin-top: 0; margin-bottom: 0">
<font face="Verdana" size="2"><a href="#"><font color="#000000">Products</font></a></font></td>
<td align=center width=90 height=34 background=menubutton.gif>
<p style="margin-top: 0; margin-bottom: 0">
<font face="Verdana" size="2"><a href="#"><font color="#000000">Support</font></a></font></td>
<td align=center width=90 height=34 background=menubutton.gif>
<p style="margin-top: 0; margin-bottom: 0">
<font face="Verdana" size="2"><a href="#"><font color="#000000">About Us</font></a></font></td>
</tr>
</table>
</td>
<td width=15>
<p style="margin-top: 0; margin-bottom: 0">
</td>
</tr>
</table>
<table width=800 border="5" bordercolordark="#2B4ED6" cellspacing="0" bordercolor="#008000" bordercolorlight="#2B4ED6" style="border-collapse: collapse">
<tr>
<td>
<table border="0" cellspacing="0" width="788">
<tr>
<td width=10> </td>
<td width="98%">
<font face="Arial" size="1">
<br>
</font><b><font face="Arial">Welcome to the new home of IO
SoftGame</font></b><font face="Arial" size="1"><br>
<br>
<br>
</font><font face="Arial" size="2">IO SoftGame has got a new and more stable
website and now with .com domain.<br>
<br>
The only thing there are different is the new logo and website.<br>
All our products are still for free and without any kind of Spyware,
Adware, Malware or other bad ware's.<br>
<br>
We hope you still wil use our product. Our old downloads are still
around and for download.<br>
New download will come soon.<br>
<br>
<br>
From IO SoftGame Webmaster<br>
- Makes life more easy</font><font face="Verdana" size="1"><br>
<br>
</font>
<img src=logo.gif></img>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width=800 border="1" bordercolordark="#2B4ED6" cellspacing="0" bordercolor="#008000" bordercolorlight="#2B4ED6" style="border-collapse: collapse" bgcolor="#2B4ED6">
<tr>
<td width=10> </td>
<td>
<p width=98% align="center"><font face="Arial" size="2" color="#FFFFFF">Copyright
© 2006 <a href=#><font color="#FFFFFF">IO SoftGame</font></a> | All Rights Reserved</font></td>
<td width=10><a href=#><img border=0 src=feed.jpg></img></a> </td>
</tr>
</table>
</center>
<p style="margin-top: 0; margin-bottom: 0" align="center">
<b><font face="Arial" size="1"><SCRIPT LANGUAGE="Javascript" SRC="http://iosoftgame.hotserv.dk/counter.php?page=iosoftgame"><!--//--></SCRIPT> visitors since Jan. 2006</font></b>
</p>
</body>
</html>