View file fr2.php
<?
header("Cache-Control: no-cache");
require("inc.php");
$link = connect_db();
if (eregi("[^0-9]", $usid))
{ header ("Location: index.php".SID); exit;}
$select = @mysql_query ("Select myavatar,user from users where id='".$usid."'");
$inf = mysql_fetch_array ($select);
$img = $inf["myavatar"];
$user = $inf["user"];
$ras=explode(".", $img);
$type=$ras[1];
echo '<img src="loadavatars/'.$usid.'.'.$type.'" alt="."/>';
mysql_close($link);
?>