This is the entire content of the page I'm testing:
PHP Code:
<?php
echo '<' . '?xml version="1.0" encoding="utf-8"?' . '>';
chdir ('./forums');
require_once('./global.php');
require_once('./includes/functions_user.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
// AVATAR
<?php
if ($avatarurl == '' OR !$vbulletin->options['avatarenabled'] OR ($avatarurl['hascustom'] AND !($userinfo['permissions']['genericpermissions'] & $vbulletin->bf_ugp_genericpermissions['canuseavatar']) AND !$userinfo['adminavatar']))
{
$show['avatar'] = false;
}
else
{
$show['avatar'] = true;
$userinfo['avatarsize'] = $avatarurl[1];
$userinfo['avatarurl'] = $avatarurl[0];
}
?>