Better code

by xXxKratosxXx on June 24th, 2010
No notes
Syntax: No syntax
Show lines - Hide lines - Show in textbox - Download
<?php
session_start();
if(isset($_SESSION['username'])){
include("usersonline.php");
$sql = "SELECT * FROM user_table";
$result = mysql_query($sql);
?>
<!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' xml:lang='en' lang='eng'>
 
<head>
<meta http-equiv='Content-Type' content='text/html; charset=uft-8' />
<title>The Pokémon Heroic Chronicles RPG: Index</title>
<style type='text/css'> 
body
{
margin: 0;
background: #112233;
font-size: 10px;
color: white;
font-family: Verdana;
}
<-checkpoint->
body {
background: url('') repeat-x;
background-color: White;
}
body,td,th {
color: #0000FF;
font-family: Tahoma;
font-size: 12px;
font-weight: bold;
}
.main {
text-align: center;
margin: 0px;
padding: 0px;
min-height: 300px;
}
.thead {
background: #302226;
border-bottom: 1px solid #000000;
text-align: center;
width: 100%;
vertical-align: middle;
height: 15px;
}
.nav{
background: #302226;
border-bottom: 1px solid #000000;
text-align: center;
height: 15px;
}
.navheadmain{
background-image: url('Images/NavImg.png');
color: #B80000;
border-top: 1px solid #000000;
border-bottom: 1px solid #000000;
text-align: center;
height: 15px;
}
.navhead{
background-image: url('Images/NavImg.png');
color: #B80000;
border-bottom: 1px solid #000000;
text-align: center;
height: 15px;
}
.news {
background-image: url('Images/NavImg.png');
color: #B80000;
border-top: 1px solid #000000;
border-bottom: 1px solid #000000;
text-align: center;
height: 15px;
}
.banner {
background-image: url('None');
border-bottom: 0px;
background: #302226;
text-align: center;
}
.dis {
border-top: 0px;
background: #302226;
}
.con {
border-top: 0px;
border-bottom: 0px;
}
a:link {
color: #990000;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #990000; 
}
a:hover {
text-decoration: blink;
color: White;
}
</style>
</head>
<---------- End Style ---------->
<body>
<table align='center' width='200' height='247' border='0' cellpadding='0' cellspacing='0' bordercolor='#0000FF'><tr>
<td align='left' valign='top'><table width='802' height='120' border='1'cellpadding='0' cellspacing='0' bordercolor='#0000FF' class='banner'><tr>
<th class='banner' scope='col'><img src="/Images/Layout/pokemonthing.png"</th> 
</tr>
</table>
<table width='802' height='120' border='1' cellpadding='0' cellspacing='0' bordercolor='#0000FF' class='con'><tr>      
<th width='122' align='center' valign='top' bgcolor='#302226' scope='row'>
<div class='navheadmain'>Menu</div>
<div class='nav'><a href='index.php'>Index</a></div>
<div class='nav'><a href='login.php'>Login</a></div>
<div class='nav'><a href='register.php'>Register</a></div>
<div class='navhead'>Extra</div>
<div class='nav'><a href='aboutus.php'>About</a></div>
<div class='nav'><a href='storyline.php'>Story</a></div>
<div class='navhead'>Statistics</div>
<div class='nav'><a href='#'>Total Users: (<?php echo mysql_num_rows($result); ?>)</a></div>
<div class='nav'><a href='#'>Users Online:(<?php echo "".$Online.""; ?>)</a></div>
</th>
<th width='520' align='center' valign='top' bgcolor='#302226' scope='row'>
<div class='news' id='thead'>News</div>
<div class='main' id='thead'>
Welcome to The Pokémon Heroic Chronicles. <br /><br />
My partner and I are working hard so you can get quality work.
If you have any concerns email us when we have it set up.<br /><br />
This Rpg Is best viewed in Google Chrome. For full effect I'd recommend it due that being the browser i use. If you have any questions please post on news comments.<br /><br />
Enjoy this rpg and i wish you the best of luck ~Tony/Pein.<br /><br />
</div>
<th width='122' align='center' valign='top' height: auto; bgcolor='#302226' scope='row'>
<div class='navheadmain'>Menu</div>
<div class='nav'><a href='index.php'>Index</a></div>
<div class='nav'><a href='login'>Login</a></div>
<div class='nav'><a href='register.php'>Register</a></div>
<div class='navhead'>Extra</div>
<div class='nav'><a href='aboutus.php'>About</a></div>
<div class='nav'><a href='storyline.php'>Story</a></div>
<div class='navhead'>Statistics</div>
<div class='nav'><a href='#'>Total Users: (<?php echo mysql_num_rows($result); ?>)</a></div>
<div class='nav'><a href='#'>Users Online:(<?php echo "".$Online.""; ?>)</a></div>
</th>
<table width='802' height='33' border='1' align='center' cellpadding='0' cellspacing='0' bordercolor='#0000FF' bgcolor='#302226' class='dis'>
<tr><td align='center' valign='top' bgcolor='#302226'>
<center><u><strong>Welcome to The Pokémon Heroic Chronicles Rpg is © owned by Tony/Volcom, and coded by Tony and Volcom. All sprites are Copyrighted 2010 Pokémon © Nintendo, Game Freak, Creatures Ink all rights reserved.The Pokémon Heroic Chronicles RPG! is not affiliated with the organizations listed above or any other organizations that have co-operated or are co-operating in the programming or making of Pokémon. The images are copyright of their respective owners. This RPG is best viewed with Chrome.</strong></u><br /></center>
[<a href='#'>Legal Info</a>]  - [<a href='#'>Layout Info</a>] - [<a href='#'>Browser Info</a>]</td></tr></table>
</body>
 
</html>
 
<!-- E: You have no permission to use anything in this source. -->
<?php
}else{
?>
Loggedout
<?php
}
?>

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS