Файл: world-faces.ru/world-faces.ru/sys/fnc/avatar.php
Строк: 63
<?
function avatar40($id)
{
global $set;
if (is_file(H."files/avatar/$id.gif"))
echo "<img src='/files/avatar/$id.gif' width='40' height='40' alt='' />n";
elseif (is_file(H."files/avatar/$id.jpg"))
echo "<img src='/files/avatar/$id.jpg' width='40' height='40' alt='' />n";
elseif (is_file(H."files/avatar/$id.png"))
echo "<img src='/files/avatar/$id.png' width='40' height='40' alt='' />n";
else
echo "<img src='/img/user.png' width='40' height='40' alt='' />n";
if ($_SERVER['PHP_SELF']=='/info.php' && (is_file(H."files/avatar/$id.gif") || is_file(H."files/avatar/$id.jpg") || is_file(H."files/avatar/$id.png")))echo "<br />n";
}
function avatar3($id)
{
if(is_file(H."files/avatar/$id.gif"))
echo "<img src='/files/avatar/$id.gif' align='left' width='39' height='41' alt=''/>";
elseif(is_file(H."files/avatar/$id.jpg"))
echo "<img src='/files/avatar/$id.jpg' align='left' width='39' height='41' alt=''/>";
elseif(is_file(H."files/avatar/$id.png"))
echo "<img src='/files/avatar/$id.png' align='left' width='39' height='41' alt=''/>";
else
echo "<img src='/img/user.png' align='left' width='39' height='41' alt=''/>";
}
function avatar4($id)
{
if(is_file(H."files/avatar/$id.gif"))
echo "<img src='/files/avatar/$id.gif' align='left' width='31' height='33' alt=''/>";
elseif(is_file(H."files/avatar/$id.jpg"))
echo "<img src='/files/avatar/$id.jpg' align='left' width='31' height='33' alt=''/>";
elseif(is_file(H."files/avatar/$id.png"))
echo "<img src='/files/avatar/$id.png' align='left' width='31' height='33' alt=''/>";
else
echo "<img src='/img/user.png' align='left' width='31' height='33' alt=''/>";
}
function avatar($id)
{
global $set;
if (is_file(H."files/avatar/$id.gif"))
echo "<p><img src='/files/avatar/$id.gif' alt='' align='left' width='65' height='67' alt=''/> /></p>n";
elseif (is_file(H."files/avatar/$id.jpg"))
echo "<p><img src='/files/avatar/$id.jpg' alt='' width='65' height='67' align='left' /></p>n";
elseif (is_file(H."files/avatar/$id.png"))
echo "<p><img src='/files/avatar/$id.png' alt='' width='65' height='67' align='left' /></p>n";
else
echo "<img src='/img/user.jpg' alt='' align='left'/>n";
if ($_SERVER['PHP_SELF']=='/main.php' && (is_file(H."files/avatar/$id.gif") || is_file(H."files/avatar/$id.jpg") || is_file(H."files/avatar/$id.png")));
}
function avatar2($id)
{
if(is_file(H."files/avatar/$id.gif"))
echo "<img src='/files/avatar/$id.gif' align='left' width='47' height='49' alt=''/>";
elseif(is_file(H."files/avatar/$id.jpg"))
echo "<img src='/files/avatar/$id.jpg' align='left' width='47' height='49' alt=''/>";
elseif(is_file(H."files/avatar/$id.png"))
echo "<img src='/files/avatar/$id.png' align='left' width='47' height='49' alt=''/>";
else
echo "<img src='/img/user.png' align='left' width='47' height='49' alt=''/>";
}
function foto($id)
{
if(is_file(H."files/avatar/$id.gif"))
echo "<img src='/files/avatar/$id.gif' align='left' width='39' height='41' alt=''/>";
elseif(is_file(H."files/avatar/$id.jpg"))
echo "<img src='/files/avatar/$id.jpg' align='left' width='39' height='41' alt=''/>";
elseif(is_file(H."files/avatar/$id.png"))
echo "<img src='/files/avatar/$id.png' align='left' width='39' height='41' alt=''/>";
else
echo "<img src='/img/user.png' align='left' width='39' height='41' alt=''/>";
}
?>