GetTitleIcon($_REQUEST['id'], true); header('Content-type: image/png'); header('Content-length: ' . strlen($image)); echo $image; } catch (Exception $e) { // TODO: log/handle error? } exit; } if (array_key_exists('id', $_REQUEST) && array_key_exists('title-icon', $_REQUEST)) { try { $image = $tfs->GetTitleIcon($_REQUEST['id']); header('Content-type: image/png'); header('Content-length: ' . strlen($image)); echo $image; } catch (Exception $e) { // TODO: log/handle error? } exit; } if (array_key_exists('id', $_REQUEST) && array_key_exists('trophy-icon', $_REQUEST)) { $hidden = false; if (array_key_exists('hidden', $_REQUEST)) { $hidden = $_REQUEST['hidden'] ? true : false; } try { $image = $tfs->GetTrophyIcon($_REQUEST['id'], $_REQUEST['trophy-icon'], true, $hidden); header('Content-type: image/png'); header('Content-length: ' . strlen($image)); echo $image; } catch (Exception $e) { // TODO: log/handle error? } exit; } $lang = null; if (array_key_exists('lang', $_REQUEST)) { $lang = sprintf('%d', $_REQUEST['lang']); if ($lang == 0) $lang = null; } $sort_title_by = TrophyFilesystem::SORT_BY_TITLE; if (array_key_exists('sort-title', $_REQUEST)) { $sort_title_by = $_REQUEST['sort-title']; } $show_hidden = false; if (array_key_exists('show-hidden', $_REQUEST)) { $show_hidden = $_REQUEST['show-hidden'] ? true : false; } if (array_key_exists('id', $_REQUEST)) { $td = null; try { $td = $tfs->GetTrophyData($_REQUEST['id'], $show_hidden, $lang); } catch (Exception $e) { // TODO: log/handle error? } } ?> $title"; ?> ", $_SERVER['PHP_SELF'], $td['npcommid']); printf("", $td['title']); } else { printf("", $_SERVER['PHP_SELF'], $td['npcommid']); printf("", $td['title']); } } $index = 0; if ($td != null) { foreach ($td['trophy'] as $id => $trophy) { if ($index % 2) $class = 'rowalt'; else $class = 'row'; if (!$portable) { printf('', $class, $_SERVER['PHP_SELF'], $td['npcommid'], $id, (!$show_hidden && $trophy['hidden']) ? 1 : 0); printf('', $trophy['hidden'] ? '[hidden] ' : '', $trophy['detail']); } else if (!$trophy['hidden']) { printf('%s', $trophy['detail']); } } else { printf('', $trophy['hidden'] ? '[hidden] ' : '', $trophy['detail']); } else if (!$trophy['hidden']) { printf('%s', $trophy['detail']); } } $index++; } } else { printf('' . '' . '' . '' . '' . '' . '' . '', $_SERVER['PHP_SELF'], TrophyFilesystem::SORT_BY_TITLE, $_SERVER['PHP_SELF'], TrophyFilesystem::SORT_BY_TROPHY_PLATINUM, 'trop-plat.png', $_SERVER['PHP_SELF'], TrophyFilesystem::SORT_BY_TROPHY_GOLD, 'trop-gold.png', $_SERVER['PHP_SELF'], TrophyFilesystem::SORT_BY_TROPHY_SILVER, 'trop-silver.png', $_SERVER['PHP_SELF'], TrophyFilesystem::SORT_BY_TROPHY_BRONZE, 'trop-bronze.png', $_SERVER['PHP_SELF'], TrophyFilesystem::SORT_BY_TROPHY_HIDDEN, 'trop-hidden.png', $_SERVER['PHP_SELF'], TrophyFilesystem::SORT_BY_TROPHY_TOTAL); $titles = $tfs->GetTrophyList($lang, $sort_title_by); foreach ($titles as $id => $title) { if ($index % 2) $class = 'rowalt'; else $class = 'row'; printf('', $class, $_SERVER['PHP_SELF'], $id, $_SERVER['PHP_SELF'], $id); printf('', $_SERVER['PHP_SELF'], $id, $title['title']); printf('', $title['platinum']); printf('', $title['gold']); printf('', $title['silver']); printf('', $title['bronze']); printf('', $title['hidden']); printf('', $title['total']); echo "\n"; $index++; } } ?>

%s

%s

' . '
%s
%s', $trophy['name'], sprintf('', $trophy['type-icon'])); if ($trophy['hidden'] && $show_hidden) { printf('%s' . '%s
' . '', $class, $_SERVER['PHP_SELF'], $td['npcommid'], $id, (!$show_hidden && $trophy['hidden']) ? 1 : 0); printf('
%s
%s', $trophy['name'], sprintf('', $trophy['type-icon'])); if ($trophy['hidden'] && $show_hidden) { printf('%s' . '%s
TitleTotal
' . '%s%d%d%d%d%d%d