I Hope Any One Can Modify My File
To Working Fine ...
Sorry 4 My English
<?php
if ( ( "randgames.php", $_SERVER['PHP_SELF'] ) )
{
( "Location: ../" );
exit( );
}
$xBhtml = ( "table.tpl", $ccthemes );
$unixtime = ( );
$deltime = $unixtime - $randcachetime;
@( "DELETE from temac4pgames WHERE cat_id='{$catidg}' AND loclid='{$CCrow['id']}' AND timer<'{$deltime}'" );
$Wcats = @( "SELECT * FROM temac4pgames WHERE loclid='{$CCrow['id']}' AND cat_id='{$catidg}' ORDER BY id LIMIT 0,8" );
$c3dd = @( $Wcats );
if ( $c3dd == 0 )
{
$Wcats = @( "SELECT * FROM ac4pgames WHERE showgames='1' AND cat_id='{$catidg}' AND id!='{$CCrow['id']}' ORDER BY rand() DESC LIMIT 0,8" );
$xrandfiles = "<div align=\"center\">";
$count = 0;
while ( $Xrow = @( $Wcats ) )
{
if ( !( $result = @( "INSERT into temac4pgames (cat_id,gid,timer,loclid) VALUES ('{$Xrow['cat_id']}','{$Xrow['id']}','{$unixtime}','{$CCrow['id']}')" ) ) )
{
exit( ( ) );
}
@( $Xrow );
if ( $htmllink == on )
{
$xRokkkm = ( $gameurl, $Xrow[id], $Xrow[title] );
}
else
{
$xRokkkm = "play.php?id={$Xrow['id']}";
}
$pic = "<a title=\"{$title}\" href=\"{$xRokkkm}\"><img style=\"margin: 3px 3px;\" class=\"picstyle1\" width=\"60\" height=\"50\" src=\"{$Xrow['filepic']}\" alt=\"{$Xrow['title']}\" border=0></a>";
$xrandfiles .= "{$pic}\n";
}
$xrandfiles .= "</div>\n";
}
else
{
$xrandfiles = "<div align=\"center\">";
$count = 0;
while ( $xXrow = @( $Wcats ) )
{
$xWcats = @( "SELECT * FROM ac4pgames WHERE showgames='1' AND cat_id='{$catidg}' AND id='{$xXrow['gid']}'" );
$xXrow = @( $xWcats );
@( $xXrow );
if ( $htmllink == on )
{
$xRokkkm = ( $gameurl, $xXrow[id], $xXrow[title] );
}
else
{
$xRokkkm = "play.php?id={$xXrow['id']}";
}
$pic = "<a title=\"{$xXrow['title']}\" href=\"{$xRokkkm}\"><img style=\"margin: 3px 3px;\" class=\"picstyle1\" width=\"60\" height=\"50\" src=\"{$xXrow['filepic']}\" alt=\"{$xXrow['title']}\" border=0></a>";
$xrandfiles .= "{$pic}\n";
}
$xrandfiles .= "</div>\n";
}
$xBhtml = ( "{title}", "ملفات ذات صلة", $xBhtml );
$xBhtml = ( "{content}", "{$xrandfiles}", $xBhtml );
$randfiles = $xBhtml;
?>