PDA

View Full Version : Pawn has unvalid XHTML!


StopAndStare
05-31-2008, 05:27 PM
I suppose this is supposed to be in the Tech section, but this related to the Pawn website so I am puting it here. While looking through Pawn's Source code I found some errors. Here they are, be prepared for a long post:


22 Errors

Line 19, Column 27: there is no attribute "height" .
<table width="1035" height="114" border="0" align="center" cellpadding="0" cells

Line 21, Column 45: document type does not allow element "h1" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag .
<td width="298"><a href="/"><h1 id="logo"><span>Pawn Game</span></h1></a></td>

Line 23, Column 80: cannot generate system identifier for general entity "ad_size" .

Line 23, Column 80: general entity "ad_size" not defined and no default entity .
…optimizedby.rmxads.com/st?ad_type=ad&ad_size=728x90&promote_sizes=1&section=2

Line 23, Column 87: reference to external entity in attribute value .
…edby.rmxads.com/st?ad_type=ad&ad_size=728x90&promote_sizes=1&section=202741">

Line 23, Column 87: reference to entity "ad_size" for which no system identifier could be generated .
…edby.rmxads.com/st?ad_type=ad&ad_size=728x90&promote_sizes=1&section=202741">

Line 23, Column 79: entity was defined here .
…/optimizedby.rmxads.com/st?ad_type=ad&ad_size=728x90&promote_sizes=1&section= Line 23, Column 95: cannot generate system identifier for general entity "promote_sizes" .
…ads.com/st?ad_type=ad&ad_size=728x90&promote_sizes=1&section=202741"></scri…

Line 23, Column 95: general entity "promote_sizes" not defined and no default entity .
…ads.com/st?ad_type=ad&ad_size=728x90&promote_sizes=1&section=202741"></scri…

Line 23, Column 108: reference not terminated by REFC delimiter .
…_type=ad&ad_size=728x90&promote_sizes=1&section=202741"></script>

Line 23, Column 108: reference to external entity in attribute value .
…_type=ad&ad_size=728x90&promote_sizes=1&section=202741"></script>

Line 23, Column 108: reference to entity "promote_sizes" for which no system identifier could be generated .
…_type=ad&ad_size=728x90&promote_sizes=1&section=202741"></script>

Line 23, Column 94: entity was defined here .
…xads.com/st?ad_type=ad&ad_size=728x90&promote_sizes=1&section=202741"></scri… Line 23, Column 111: cannot generate system identifier for general entity "section" .
…pe=ad&ad_size=728x90&promote_sizes=1&section=202741"></script>

Line 23, Column 111: general entity "section" not defined and no default entity .
…pe=ad&ad_size=728x90&promote_sizes=1&section=202741"></script>

Line 23, Column 118: reference not terminated by REFC delimiter .
…d_size=728x90&promote_sizes=1&section=202741"></script>

Line 23, Column 118: reference to external entity in attribute value .
…d_size=728x90&promote_sizes=1&section=202741"></script>

Line 23, Column 118: reference to entity "section" for which no system identifier could be generated .
…d_size=728x90&promote_sizes=1&section=202741"></script>

Line 23, Column 110: entity was defined here .
…ype=ad&ad_size=728x90&promote_sizes=1&section=202741"></script> Line 35, Column 84: required attribute "alt" not specified .
…p_angle.gif" width="47" height="30" /></td>

Line 65, Column 105: required attribute "alt" not specified .
…ipebar.gif" width="197" height="16" />

Line 89, Column 105: required attribute "alt" not specified .
…ipebar.gif" width="197" height="16" />

Line 125, Column 81: required attribute "alt" not specified .
…border="0" src="images/playnow.gif" /></a></p>

Line 130, Column 87: reference not terminated by REFC delimiter .
…edby.rmxads.com/st?ad_type=ad&ad_size=160x600&promote_sizes=1&section=202741"

Line 130, Column 87: reference to external entity in attribute value .
…edby.rmxads.com/st?ad_type=ad&ad_size=160x600&promote_sizes=1&section=202741"

Line 130, Column 87: reference to entity "ad_size" for which no system identifier could be generated .
…edby.rmxads.com/st?ad_type=ad&ad_size=160x600&promote_sizes=1&section=202741"

Line 23, Column 79: entity was defined here .
…/optimizedby.rmxads.com/st?ad_type=ad&ad_size=728x90&promote_sizes=1&section= Line 130, Column 109: reference not terminated by REFC delimiter

Line 130, Column 109: reference to external entity in attribute value .
…type=ad&ad_size=160x600&promote_sizes=1&section=202741"></script>

Line 130, Column 109: reference to entity "promote_sizes" for which no system identifier could be generated .
…type=ad&ad_size=160x600&promote_sizes=1&section=202741"></script>

Line 23, Column 94: entity was defined here .
…xads.com/st?ad_type=ad&ad_size=728x90&promote_sizes=1&section=202741"></scri… Line 130, Column 119: reference not terminated by REFC delimiter .
…_size=160x600&promote_sizes=1&section=202741"></script>

Line 130, Column 119: reference to external entity in attribute value .
…_size=160x600&promote_sizes=1&section=202741"></script>

Line 130, Column 119: reference to entity "section" for which no system identifier could be generated .
…_size=160x600&promote_sizes=1&section=202741"></script>

Line 23, Column 110: entity was defined here .
…ype=ad&ad_size=728x90&promote_sizes=1&section=202741"></script> Line 140, Column 49: there is no attribute "background" .
…n="right" valign="middle" background="images/bottombar_bg.gif"><p>Copyright &

Line 23, Column > 80: XML Parsing Error: EntityRef: expecting ';' .
…optimizedby.rmxads.com/st?ad_type=ad&ad_size=728x90&promote_sizes=1



Below is the starting source input:

Here is the starting code:

<!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">
<head>
<title>PawnGame.com - Multiplayer Flash Gaming</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" type="text/css" href="style.css" />

<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-90072-4";
urchinTracker();
</script>
</head>

<body>

<table width="1035" height="114" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="298"><a href="/"><h1 id="logo"><span>Pawn Game</span></h1></a></td>
<td><!-- BEGIN TAG - 728x90 - pawngame.com - non-forum - DO NOT MODIFY -->
<script type="text/javascript" src="http://optimizedby.rmxads.com/st?ad_type=ad&ad_size=728x90&promote_sizes=1&section=202741"></script>
<!-- END TAG -->

</td>
</tr>
</table>

<table width="1035" border="0" align="center" cellpadding="0" cellspacing="0">
<tr valign="top">
<td align="right">&nbsp; </td>
<td width="650"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="47"><img src="images/navtop_angle.gif" width="47" height="30" /></td>
<td align="right" id="topnav">

<ul>
<li><a href="contact.php">Contact</a></li>
<li><a href="about.php">About</a></li>
<li><a href="rank.php">World Rank</a></li>
<li><a href="guides.php">Game Guides</a></li>
<li><a href="forum/">Forum</a></li>
<li><a href="news.php">News</a></li>
<li><a href="play.php">Play Game</a></li>
<li><a href="index.php">Home</a></li>
</ul> </td>
</tr>
</table>
</td>
<td width="185" align="center" valign="top">&nbsp;</td>
</tr>
</table>


<table width="1035" border="0" align="center" cellpadding="0" cellspacing="0">
<tr valign="top">
<td align="right">

<table class="sidebox" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="boxheader" valign="middle" ><h2><a href="news.php">Latest News</a></h2></td>
</tr>
<tr>
<td class="boxcontent" valign="top"><img src="images/sidestripebar.gif" width="197" height="16" />


<h3>[05/21/08] <a href="forum/showthread.php?t=62215">Forum Updated to vBulletin 3.7.0</a></h3>


<h3>[05/02/08] <a href="forum/showthread.php?t=59086">Update - 1.07</a></h3>


<h3>[04/13/08] <a href="forum/showthread.php?t=55506">Recent Email Problems</a></h3>

<p>
<a href="news.php">More News...</a>
</p>

</td>
</tr>
</table>

<table class="sidebox" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="boxheader" valign="middle"><h2><a href="guides.php">Game Guides</a></h2></td>
</tr>
<tr>
<td class="boxcontent" valign="top"><img src="images/sidestripebar.gif" width="197" height="16" />



<h3>[01/16/08] <a href="guides.php?p=219201">Guide on N008S!!!</a></h3>


<h3>[01/12/08] <a href="guides.php?p=216701">Guide to make your weapons stronger</a></h3>


<h3>[12/23/07] <a href="guides.php?p=202117">Guide to Small Deathmatch Maps</a></h3>

<p>
<a href="guides.php">More Guides...</a>
</p>

</td>
</tr>
</table>
</td>
<td width="650" id="maincontent">


<h2>Welcome to Pawn</h2>
<p>Welcome to Pawn - A massively multiplayer online 2D shooter game. Here at Pawn you can jump right into the action by creating an account and joining thousands of other players in a variety of different arenas. We believe that a gamer's experience should be their own. That's why we allow for a large degree of game customization. Challenge your friends, design a custom map or just sit back and have fun with some fellow gamers. The choice is yours.</p>
<p>Creating a new account is easy, safe and free. Why not register today?</p>
<p>Features:</p>

<ul>
<li>Unlimited access to Pawn and all of its features</li>
<li>Access to the Pawn chat server</li>
<li>The ability to host your own custom games</li>
<li>A map editing tool to make and share your custom maps</li>
<li>A stats ranking system to keep track of your rank</li>
<li>A comprehensive anti-cheat system to prevent players from cheating</li>
</ul>
<p align="center"><a href="play.php"><img border="0" src="images/playnow.gif" /></a></p>


</td>
<td width="185" align="center" valign="top"><!-- BEGIN TAG - 160x600 - pawngame.com - non-forum - DO NOT MODIFY -->
<script type="text/javascript" src="http://optimizedby.rmxads.com/st?ad_type=ad&ad_size=160x600&promote_sizes=1&section=202741"></script>
<!-- END TAG -->


</td>
</tr>
</table>

<table id="footer" width="1035" height="30" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="right" valign="middle" background="images/bottombar_bg.gif"><p>Copyright &copy; 2006-2008 Westech Media, LLC. All rights reserved.</p></td>
<td width="185">&nbsp;</td>
</tr>
</table>
<p>&nbsp;</p>
</body>
</html>


Here is the fixed code:

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="generator" content="HTML Tidy for Linux (vers 1 September 2005), see www.w3.org" />
<title>PawnGame.com - Multiplayer Flash Gaming</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="style.css" />
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
//<![CDATA[
_uacct = "UA-90072-4";
urchinTracker();
//]]>
</script>
<style type="text/css">
/*<![CDATA[*/
p.c1 {text-align: center}
/*]]>*/
</style>
</head>
<body>
<table width="1035" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="298">
<h1 id="logo"><a href="/"><span>Pawn Game</span></a></h1>
</td>
<td><!-- BEGIN TAG - 728x90 - pawngame.com - non-forum - DO NOT MODIFY -->
<script type="text/javascript" src="http://optimizedby.rmxads.com/st?ad_type=ad&amp;ad_size=728x90&amp;promote_sizes=1&amp;secti on=202741">
</script> <!-- END TAG --></td>
</tr>
</table>
<table width="1035" border="0" align="center" cellpadding="0" cellspacing="0">
<tr valign="top">
<td align="right"> </td>
<td width="650">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="47"><img src="images/navtop_angle.gif" width="47" height="30" alt="** PLEASE DESCRIBE THIS IMAGE **" /></td>
<td align="right" id="topnav">
<ul>
<li><a href="contact.php">Contact</a></li>
<li><a href="about.php">About</a></li>
<li><a href="rank.php">World Rank</a></li>
<li><a href="guides.php">Game Guides</a></li>
<li><a href="forum/">Forum</a></li>
<li><a href="news.php">News</a></li>
<li><a href="play.php">Play Game</a></li>
<li><a href="index.php">Home</a></li>
</ul>
</td>
</tr>
</table>
</td>
<td width="185" align="center" valign="top"> </td>
</tr>
</table>
<table width="1035" border="0" align="center" cellpadding="0" cellspacing="0">
<tr valign="top">
<td align="right">
<table class="sidebox" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="boxheader" valign="middle">
<h2><a href="news.php">Latest News</a></h2>
</td>
</tr>
<tr>
<td class="boxcontent" valign="top"><img src="images/sidestripebar.gif" width="197" height="16" alt="** PLEASE DESCRIBE THIS IMAGE **" />
<h3>[05/21/08] <a href="forum/showthread.php?t=62215">Forum Updated to vBulletin 3.7.0</a></h3>
<h3>[05/02/08] <a href="forum/showthread.php?t=59086">Update - 1.07</a></h3>
<h3>[04/13/08] <a href="forum/showthread.php?t=55506">Recent Email Problems</a></h3>
<p><a href="news.php">More News...</a></p>
</td>
</tr>
</table>
<table class="sidebox" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="boxheader" valign="middle">
<h2><a href="guides.php">Game Guides</a></h2>
</td>
</tr>
<tr>
<td class="boxcontent" valign="top"><img src="images/sidestripebar.gif" width="197" height="16" alt="** PLEASE DESCRIBE THIS IMAGE **" />
<h3>[01/16/08] <a href="guides.php?p=219201">Guide on N008S!!!</a></h3>
<h3>[01/12/08] <a href="guides.php?p=216701">Guide to make your weapons stronger</a></h3>
<h3>[12/23/07] <a href="guides.php?p=202117">Guide to Small Deathmatch Maps</a></h3>
<p><a href="guides.php">More Guides...</a></p>
</td>
</tr>
</table>
</td>
<td width="650" id="maincontent">
<h2>Welcome to Pawn</h2>
<p>Welcome to Pawn - A massively multiplayer online 2D shooter game. Here at Pawn you can jump right into the action by creating an account and joining thousands of other players in a variety of different arenas. We believe that a gamer's experience should be their own. That's why we allow for a large degree of game customization. Challenge your friends, design a custom map or just sit back and have fun with some fellow gamers. The choice is yours.</p>
<p>Creating a new account is easy, safe and free. Why not register today?</p>
<p>Features:</p>
<ul>
<li>Unlimited access to Pawn and all of its features</li>
<li>Access to the Pawn chat server</li>
<li>The ability to host your own custom games</li>
<li>A map editing tool to make and share your custom maps</li>
<li>A stats ranking system to keep track of your rank</li>
<li>A comprehensive anti-cheat system to prevent players from cheating</li>
</ul>
<p class="c1"><a href="play.php"><img border="0" src="images/playnow.gif" alt="** PLEASE DESCRIBE THIS IMAGE **" /></a></p>
</td>
<td width="185" align="center" valign="top"><!-- BEGIN TAG - 160x600 - pawngame.com - non-forum - DO NOT MODIFY -->
<script type="text/javascript" src="http://optimizedby.rmxads.com/st?ad_type=ad&amp;ad_size=160x600&amp;promote_sizes=1&amp;sect ion=202741">
</script> <!-- END TAG --></td>
</tr>
</table>
<table id="footer" width="1035" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="right" valign="middle">
<p>Copyright � 2006-2008 Westech Media, LLC. All rights reserved.</p>
</td>
<td width="185"> </td>
</tr>
</table>
<p> </p>
</body>
</html>


Yes, yes you can breath now. It's over, the post is over.

Regards, StopAndStare

Leonardo
05-31-2008, 05:29 PM
Huh?!

I dont understand this... are you saying that Pawn is in HTML?

StopAndStare
05-31-2008, 05:31 PM
Huh?!

I dont understand this... are you saying that Pawn is in HTML?

Pawn is in XHTML 1.0. And it is invalid. It has some code errors. That is what I am saying.

TheSniperGodX
05-31-2008, 05:39 PM
What does this mean

BTM4444
05-31-2008, 05:41 PM
well will having code errors effect the game at all?

StopAndStare
05-31-2008, 05:41 PM
What does this mean

It means... you have no idea how to make websites. It means you most likely won't be on the Tech Team. It means you have to go on Google and learn Extended Hyper Text Markup Language.

well will having code errors effect the game at all?

From the ones I have reviewed, NO. But, it will downgrade the website, make it go slower and many more things such as give hackers more ease of access.

vSkyzv
05-31-2008, 09:13 PM
It means... you have no idea how to make websites. It means you most likely won't be on the Tech Team. It means you have to go on Google and learn Extended Hyper Text Markup Language.



From the ones I have reviewed, NO. But, it will downgrade the website, make it go slower and many more things such as give hackers more ease of access.

Most of it is due to the ads and the JavaScripts controlling the ads. Nevertheless, it isn't going to hurt anything.

bman2206
05-31-2008, 09:15 PM
Yes, because messed up JavaScript controlling ads will give hackers easier access into pawns unreachable database?

vSkyzv
05-31-2008, 09:32 PM
Yes, because messed up JavaScript controlling ads will give hackers easier access into pawns unreachable database?
Depends.


If you can't lick your elbow, then no you cannot break into Pawn's database.


If you can still lick your elbow, the answer is still no.

Puffer
05-31-2008, 09:42 PM
I'm sure JP can patch these in a jiffy.

bman2206
05-31-2008, 09:47 PM
Depends.


If you can't lick your elbow, then no you cannot break into Pawn's database.


If you can still lick your elbow, the answer is still no.

Thats what I mean by the database being unreachable...

vSkyzv
05-31-2008, 09:48 PM
I'm sure JP can patch these in a jiffy.
Patch what? :D

JavaScripts can't be used to break into Pawn's database unless it magically gains the ability to read mySQL.

dz23
05-31-2008, 09:49 PM
I hope this doesn't affect pawn.
Don't worry, JP will fix this.
Nothing to worry about.

vSkyzv
05-31-2008, 09:51 PM
I hope this doesn't affect pawn.
Don't worry, JP will fix this.
Nothing to worry about.
Unless God changed what everything on Earth does, Pawn is perfectly safe.

PiNGPaWN
05-31-2008, 09:59 PM
Cool, This should be patched nice job sas.

th3mast3r
05-31-2008, 10:05 PM
Cool O_o

Even though I don't understand it lol.

Firstmate
05-31-2008, 10:05 PM
lol nothing sensitive to pawn is in that XHTML code for one.
Second the javascript code would be pretty complex to be able to do the stuff you're saying
Also, like all that stuff is with the ads, so its not really a problem with Pawn

I should actually bold the first line...

I lol'ed at Sevenfold's post

bman2206
05-31-2008, 10:20 PM
its easier to hack pawn than many of u think. all u need is a cain or rainbow binary decoder and preferaply a r.a.t program. also ironically a port on one of pawns ftp host servers r open so all u need is a packet sniffer and u r in

... Just shout random hack tips to noobs, that will solve all our problems, and you would need a packet EDITOR, some sniffers won't allow you to edit packets.
Have fun getting into a database with a packet sniffer, databases are encrypted..you would need major skills to hack a database since the admins can't even view most of it...

DaMan
05-31-2008, 10:21 PM
does this mean we're all gonna die?

bman2206
05-31-2008, 10:24 PM
does this mean we're all gonna die?

Did you even bother to read the rest of the posts before trolling?

DaMan
05-31-2008, 10:25 PM
Ever hear of a joke?