Някой може ли да ми каже къде има незатворени тагове?

Gamerz

Registered
</td>
<td style="width: 280px;" valign="top"><?php

if ($ads == "Yes") {

if ($uads == '1') {

$adspot = mysql_query("SELECT * from ccms_ads where location='Right' and groupname='$adgroup_name' order by rand() limit 1");
while ($row = mysql_fetch_assoc($adspot)) {
?>

<table cellpadding="5" cellspacing="0" border="0" width="80%">
<tr>
<td>
<?

if ($row[code_img] == 'code') {
// Display custom code
echo " $row
Код:
";
				}
				if ($row[code_img] == 'img') {
				// Display an image or a link
echo "				<a href=\"ad_out.php?id=$row[id]\" target=\"_new\"><img border=0 src=\"$row[imgurl]\"></a>";
				}

				if ($row[groupname]) {
				// ASSIGN GROUP
					$adgroup = '1';
					$adgroup_name = $row[groupname];
				}
?>
			</td>
		</tr>
		</table>
<?
			}
		}
	}

	if ($_REQUEST[page] == "FAQ" || $_REQUEST[page] == "Cheats" || $_REQUEST[page] == "Games" || $_REQUEST[page] == "Top Games" || $_REQUEST[page] == "Upcoming Games") {
		include "includes/right_games.php";
	}

	if ($_REQUEST[page] == "Files") {
		include "includes/right_files.php";
	}

	if ($_REQUEST[page] == "Video") {
		include "includes/right_video.php";
	}

	//if ($_REQUEST[page] == "Cheats") {
	//	include "includes/right_cheats.php";
	//}

	if ($_REQUEST[page] == "Articles") {
		include "includes/right_articles.php";
	}

	if ($_REQUEST[page] == "Story" || $_REQUEST[page] == "Archive") {
		include "includes/right_news.php";
	}

	if ($_REQUEST[page] == "Media") {
		include "includes/right_media.php";
	}

	if ($_REQUEST[page] == "Console") {
		include "includes/right_console.php";
	}

	if ($_REQUEST[page] == "Logout"
	|| $_REQUEST[page] == "User CP"
	|| $_REQUEST[page] == "Members"
	|| $_REQUEST[page] == "User Profile"
	|| $_REQUEST[page] == "Edit Profile"
	|| $_REQUEST[page] == "Page"
	|| $_REQUEST[page] == "Login"
	|| $_REQUEST[page] == "Register"
	|| $_REQUEST[page] == "Submit"
	|| $_REQUEST[page] == "Submit News"
	|| $_REQUEST[page] == "Online"
	|| $_REQUEST[page] == "Poll"
	|| $_REQUEST[page] == "Links"
	|| $_REQUEST[page] == "Search"
	|| $_REQUEST[page] == "Password"
	|| $_REQUEST[page] == "Vote"
	|| $_REQUEST[page] == "Blogs"
	|| $_REQUEST[page] == "Companies"
	|| $_REQUEST[page] == "Contact"
	|| !$_REQUEST[page]) {



?>
		<table cellpadding="0" cellspacing="0" border="0" align="center">
<?
		if ($nowplaying == "Yes" && !$_REQUEST[page]) {

			$nowplay = mysql_query("SELECT * from ccms_nowplaying order by id desc limit 1");
			while ($row = mysql_fetch_assoc($nowplay)) {

				$url = $row[url]; // URL to flv video
?>
		<tr>
			<td><img src="images/div_nowplaying.gif"></td>
		</tr>
		<tr>
			<td height="26" background="images/np_title.jpg" width="310">

				<table width="310" cellpadding="0" cellspacing="0" border="0">
				<tr>

	<td width="33" align="center" style="padding-left: 0px;"><img src="images/consoles/<?echo "$row[console]"?>.gif"></td>
					<td width="240" style="padding-left: 0px;"><SPAN class="nowplaying"><?echo "$row[title]"?></SPAN></td>
				</tr>
				</table>

			</td>
		</tr>
		<tr>
			<td><object type="application/x-shockwave-flash" width="290" height="251" wmode="transparent" data="jwplayer.swf?file=<?echo "$url"?>"> 
			<param name="movie" value="jwplayer.swf?file=<?echo "$url"?>"/> <param name="wmode" value="transparent" /> 
			</object><script src="http://widgets.twimg.com/j/2/widget.js"></script>
.
<script>
new TWTR.Widget({
  version: 2,
  type: 'profile',
  rpp: 100,
  interval: 6000,
  width: 290,
  height: 330,
  theme: {
    shell: {
      background: '#2e2c2e',
      color: '#ffffff'
    },
    tweets: {
      background: '#000000',
      color: '#ffffff',
      links: '#4aed05'
    }
  },
  features: {
    scrollbar: true,
    loop: false,
    live: true,
    hashtags: true,
    timestamp: true,
    avatars: false,
    behavior: 'all'
  }
}).render().setUser('gamesshadowscom').start();
</script>
.
</object></td>

<?
			}
		}


?>
		<tr>
			<td><img src="images/div_recent.jpg"></td>
		</tr>
		<tr>
			<td>
				<table width="290" cellpadding="0" cellspacing="0" border="0" align="center">
<?
		$latestnews = mysql_query("SELECT * from ccms_news order by id desc limit 10");
		while ($row = mysql_fetch_assoc($latestnews)) {

			$gamet = preg_replace('/[^a-zA-Z0-9 *]/', '', $row[title]);
			$gameturl = str_replace(' ', '-', $gamet);
?>
				<tr>
					<td height="25" 

						<table width="100%" cellpadding="5" cellspacing="0" border="0" align="left">
						<tr>
							<td height="25" width="233" style="padding-left: 8px;"><img align="absmiddle" src="images/tab.gif" hspace="4"> <a class="rating" href="story-<?echo "$row[id]-$gameturl"?>.html"><?

			$MAX_LENGTH = 25;
			$str = strlen($row[title]);

			if ($str <= $MAX_LENGTH) {
				echo "$row[title]";
			} else {

				$s2 = substr($row[title], 0, $MAX_LENGTH - 3);
				echo "$s2";
				echo "...";
			}
			
?>
							</SPAN></td>
							<td height="25" width="77" align="center"><SPAN class="rating_small"><?php

//===================================================
// DATE & TIME DISPLAY
//-----------------------------------------------------------------

			if (!$row[timestamp] || $row[timestamp] == "0") {
				echo "$row[date]\n";
			} else {
				echo timedisplay($row[timestamp]);
			}

//===================================================
?>
							</td>
						</tr>
						</table>

					</td>
				</tr>
<?
		}
?>
				</table>
			</td>
		</tr>

		</tr>
		<tr>
			<td><img src="images/div_topgames.jpg"></td>
		</tr>
		<tr>
			<td width="290">

				<table width="290" cellpadding="0" cellspacing="0" border="0" align="center">
<?php
		$topgames = mysql_query("SELECT * from ccms_gameindex order by rank asc limit 5");
		$c = 1;
		while ($row = mysql_fetch_assoc($topgames)) {

			$gamet = preg_replace('/[^a-zA-Z0-9 *]/', '', $row[title]);
			$gameturl = str_replace(' ', '-', $gamet);
?>
				<tr>
					<td height="37" width="20"  align="left" valign="center"><SPAN class="rating_large"><?echo "$c"?></SPAN></td>
					<td height="37" width="120"  valign="left">

						<table width="100%" cellpadding="0" cellspacing="0"  border="0" align="center">
						<tr>
							<td height="37" width="100%" style="padding-left: 5px;"><a class="rating" href="game-<?echo "$row[id]-$gameturl"?>.html"><?

			$MAX_LENGTH = 25;
			$str = strlen($row[title]);

			if ($str <= $MAX_LENGTH) {
				echo "$row[title]";
			} else {

				$s2 = substr($row[title], 0, $MAX_LENGTH - 3);
				echo "$s2";
				echo "...";
			}
			
?></SPAN></td>
							<td height="37" width="1%" align="right"><img src="images/consoles/<?echo "$row[category].gif"?>"></td>
						</tr>
						</table>

					</td>
					<td height="37" width="58"  align="center" valign="center"><a class="rating_small">Score:</a><br /><a class="rating_large"><?echo "$row[rating]"?></a></td>
				</tr>
<?php
		$c++;
		}
?>
				</table>
			</td>

		</tr>

		<tr>
			<td><img src="images/div_rpoll.jpg"></td>
		</tr>
			<td width="290">

				<table width="290" cellpadding="0" cellspacing="1" align="left">
<?php
		include "poll.php";
?>
				</table>
			</td>

		</tr>

		<tr>
			<td><img src="images/div_cheats.gif"></td>
		</tr>
		<tr>
			<td>
				<table width="290" cellpadding="0" cellspacing="0" border="0" align="center">
<?
		$latestcheats = mysql_query("SELECT * from ccms_cheat where approved='1' order by id desc limit 5");
		while ($row = mysql_fetch_assoc($latestcheats)) {

			$gtitle = $row[game];
			$gplatform = $row[platform];

			$gid = mysql_query("SELECT * from ccms_gameindex where title=\"$gtitle\" and category='$gplatform'");
			while ($r = mysql_fetch_assoc($gid)) {
				$gamesid = $r[id];
			}
?>
				<tr>
					<td height="25" 

						<table width="90%" cellpadding="0" cellspacing="0" border="0" align="center">
						<tr>
							<td height="25" width="33" align="center"><img src="images/consoles/<?echo "$row[platform]"?>.gif"></td>
							<td height="25" width="200" style="padding-left: 8px;"><a class="rating" href="cheat-<?echo "$gamesid-$row[platform]"?>.html"><?

			$MAX_LENGTH = 25;
			$str = strlen($row[game]);

			if ($str <= $MAX_LENGTH) {
				echo "$row[game]";
			} else {

				$s2 = substr($row[game], 0, $MAX_LENGTH - 3);
				echo "$s2";
				echo "...";
			}
			
?></SPAN></td>
							<td width="77" align="center"><SPAN class="rating_small"><?php


//===================================================
// DATE & TIME DISPLAY
//-----------------------------------------------------------------

			if (!$row[timestamp] || $row[timestamp] == "0") {
				echo "$row[date]\n";
			} else {
				echo timedisplay($row[timestamp]);
			}

//===================================================
?>
							</td>
						</tr>
						</table>

					</td>
				</tr>
<?
		}
?>
				</table>
			</td>

		</tr>

		</table>
<?
	}
?>

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

Back
Горе