<?php
$file = __FILE__;
include ("inc/inc_common.php");
include ("inc/inc_connect.php");
include ("inc/inc_admincheck.php");
include ("inc/inc_getdate.php");
if ($groupid == "")
{
    // Get a forum ID

    $result = mysql_query( "SELECT * FROM $forumtable WHERE intTopicId = '$topicid' AND ynTopicRow = 'YES'" );
    $num_rows = mysql_num_rows( $result );
    while ( $a_row = mysql_fetch_object( $result ) )
    {
        $groupid = $a_row->intForumId;
    }
}
include ("inc/inc_forumname.php");
$page = "Viewing $username's Photo";
$pagelink = $file."?photourl=$photourl&username=$username&userid=$userid&groupid=$groupid";
include("inc/inc_setonline.php");
$title = "$username's Photo";
include ("inc/inc_head.php");
include ("inc/inc_body.php");
$title = $name4;
//end of include files...


print "<br>

<center>


<table border=1 cellpadding=0 cellspacing=0 bordercolor=#111111 width=60% bgcolor=$fgcolour>
  <tr>
    <td width=100%><center>
    <br><b><font face=$font size=5>$username</font></b><br>
    <center><font face=$font size=2>
    <br>
    </td>
  </tr>
</table>
<br><br><br>";

print "<table border=1 cellpadding=30 cellspacing=0 bordercolor=#111111 width=1% bgcolor=$fgcolour>
    <tr><td width=100%><center>";

if ($memberpage == 1)
{
    print   "<a href=\"members.php?groupid=$groupid&showonline=$showonline&showphotos=$showphotos\" title=\"Go back to the members page\">";
}
else
{
    print   "<a href=\"profile.php?userid=$userid&groupid=$groupid\" title=\"Go back to $userid's Profile\">";
}

    print "<img src=\"$photourl\" border=0></a></td></tr></table>";
print "<font face=$font size=2><br><br>";


if ($memberpage == 1)
{
    print   "<a href=\"members.php?groupid=$groupid&showonline=$showonline&showphotos=$showphotos\" title=\"Go back to the members page\">Go back to the members page</a>";
}
else
{
    print   "<a href=\"profile.php?userid=$userid&groupid=$groupid\" title=\"Go back to $userid's Profile\">Go back to $username's profile</a>";
}

print "";


include("inc/inc_footer.php");
?>