0% found this document useful (0 votes)
86 views2 pages

Appendix

This document contains PHP code and HTML for a website login page. It checks if a user is logged in and what their activation status is, and displays appropriate content including a login form, account activation form, or user homepage. If activated, it includes additional PHP files to display site content like navigation, images, and news. Else it shows only the login content. The HTML provides the page framework and links the CSS. It aims to create a fully functional login, activation, and homepage system for users.

Uploaded by

pswhuizermaat352
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
86 views2 pages

Appendix

This document contains PHP code and HTML for a website login page. It checks if a user is logged in and what their activation status is, and displays appropriate content including a login form, account activation form, or user homepage. If activated, it includes additional PHP files to display site content like navigation, images, and news. Else it shows only the login content. The HTML provides the page framework and links the CSS. It aims to create a fully functional login, activation, and homepage system for users.

Uploaded by

pswhuizermaat352
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

Paginabron page.php Dit is de code page.

php volgens ons


bestand.
<HTML> <HTML>
<HEAD> <HEAD>
<TITLE></TITLE> <TITLE></TITLE>
<link rel="stylesheet" type="text/css" media="screen" <link rel="stylesheet" type="text/css" media="screen"
href="style.php"> href="style.php">
</HEAD> </HEAD>
<BODY> <BODY>
<div class='login1'><SCRIPT language='javascript'> <?PHP
session_start();
if (isset($_SESSION['username'])) {
function link(){ $username=$_SESSION['username'];
self.location.href = 'registerindex.html'; include ("db_login.php");
}</SCRIPT> $result = mysql_query("SELECT * FROM $username
WHERE id='1'")
or die(mysql_error());
<CENTER> $row = mysql_fetch_array( $result );
<Form action='login.php' method='post'> $db_progress=$row['progress'];
<B>Username: <input if (db_progress=='0'){
type='text' name='username'><br> echo "<CENTER><FONT size=22 COLOR ='red'>You need
Password:</B> <input to activate your account.</FONT><P><BR><P>
type='password' name='password'><br> <Form action='activate.php'
<input type=submit method='post'>
class='buttoncolor' value='login' name='submit'> <input Enter activation code:<BR>
type=button value='register' onClick='link()'><BR><A <input type='text'
href='resendp.php'>Forgot?</A> name='code'><br>
</form></CENTER> <input type=submit
value='Activate' name='submit'>
</form><A href='resend.php'>Resend Activation
</div><div class='info'> Code</A><P> <Form action='logoff.php' method='post'>
<input type=submit value='log
off' name='submit'>
<TABLE> </form></CENTER>";

<TR WIDTH=300> }else{


<TD WIDTH=20%><IMG SRC='Tjai-wong.JPG' width=210 echo "<div class='login1'>";
height=210></TD> include('login1.php');
<TD WIDTH=20%><IMG SRC='Vikingen - wodan 01.jpg' echo "</div><div class='info'>";
width=210 height=210></TD> include('info.php');
<TD WIDTH=20%><IMG SRC='barb.jpg' width=180 echo "</div><div class='graphic'>";
height=210></TD> include('graphic.php');
<TD WIDTH=20%><IMG SRC='indiaan6.jpg' width=180 echo "</div><div class='news1'>";
height=210></TD> include('news1.php');
<TD WIDTH=20%><IMG SRC='anubis8.jpg' width=195 echo "</div>";
height=210></TD> }
</TR> }else{
echo "<div class='login1'>";
<TR> include('login1.php');
<TD>Join the Great Swordmasters, Bowmasters and experts echo "</div><div class='info'>";
in Glaives, And above all, experience their population!</TD> include('info.php');
<TD>Join the People from the Mighty Sea, They have skill echo "</div><div class='graphic'>";
with Spears and Axes, And the Greatest Fishers of all include('graphic.php');
Times!</TD> echo "</div><div class='news1'>";
<TD>Join the Most Bloodlusty People, They wield everey include('news1.php');
weapon with Skill, No other matches their Strenght!</TD> echo "</div>";
<TD>Join the people of Mother Nature, Masters of the }
Tomahawk, Experience their Efficiency!</TD> ?>
<TD>Join the Ancients, Greatest skill with Scythes, Greatest </BODY>
builders of all Times!</TD> </HTML>
</TR>

</TABLE></div><div class='graphic'>
<img src='Frostmourne.jpg' width=200
height=800></div><div class='news1'>
<div
class='news'><h1><U>News</U></h1></div>
<div class='fact'>

<b><font face="Arial, Helvetica, sans-serif" size="2"><a


href="http://www.compredia.com" target="_blank"></a>
Visitors:<P></font></b>
<font face="Arial, Helvetica, sans-serif" size="1">
1<BR> Player Online<P>
Total Vistits:<BR>
Today: 2<br>
This Week: 2<br>
Month: 2<br>
Year: 23<br>
Total: 23
</font>
<div align="center">

</div>
</div>

</div>
<div class='newspws'><h2>08-09-
2008<br>The navigation bar is (almost) fully
functional<br>now, there are only some little slips left.<P>
<CENTER><IMG SRC='red_dot.jpg' WIDTH=510
HEIGHT=2><P></CENTER>02-09-2008:<P>
Start of the online Log or News as we call it.<BR>
Today we fixed the starting screen, Login and Register.<BR>
The Div's are now good in place.
</h2><CENTER><IMG SRC='red_dot.jpg' WIDTH=510
HEIGHT=2></CENTER></div>
</div></BODY>
</HTML>

You might also like