// Check who originally stole this item $user_infos = adr_get_user_infos($user_id); if ($row['item_stolen_by'] === $user_infos['character_name']) { $stolen_by = $lang['Adr_shop_stolen_by_you']; } elseif ($row['item_stolen_by'] != '' && $row['item_stolen_by'] != $user_infos['character_name']) { $stolen_by = $row['item_stolen_by']; } else { $stolen_by = 'n/a'; } $template->assign_block_vars('main.items.stolen_info', array("L_STOLEN_INFO" => sprintf($lang['Adr_shop_stolen_info'], '<i><b>', '</b>', sprintf($lang['Adr_shop_stolen_by'], $stolen_by), $shop_name, date("D j M 'y", $row['item_stolen_timestamp']), '</i>'))); } ##=== END: Show stolen status ##=== START: Show donated info if ($row['item_donated_by'] != '') { $template->assign_block_vars('main.items.donated_info', array("L_DONATED_INFO" => sprintf($lang['Adr_shop_donated_by'], '<i><b>', '</b>', $row['item_donated_by'], date("D j M 'y", $row['item_donated_timestamp']), '</i>'))); } ##=== END: Show donated status // If viewer is owner then show additional options if ($user_id == $searchid) { $template->assign_block_vars("main.items.owner", array()); } $i++; } while ($row = $db->sql_fetchrow($result)); } if ($user_id == $searchid) { $colspan = 9; $template->assign_block_vars("main.owner", array()); ##== START: Showing weight bar ==## if ($adr_general['weight_enable'] == '1') { $adr_user = adr_get_user_infos($user_id); $adr_user_race = adr_get_race_infos($adr_user['character_race']);
// Cached sql query $element_info = adr_get_element_infos($element_array[$e]); $element_list .= adr_get_lang($element_info['element_name']); if ($e < $element_count - 2) { $element_list .= ", "; } } $template->assign_block_vars('see_shop.items.element_restrict', array("ELEMENT_LIST" => $element_list, "L_ELEMENT_LIST" => $lang['Adr_character_element'])); } $race_array = explode(",", $row['item_restrict_race']); if ($row['item_restrict_race_enable'] == '1') { $race_count = count($race_array); $race_list = ''; for ($r = 0; $r < $race_count; $r++) { // Cached sql query $race_info = adr_get_race_infos($race_array[$r]); $race_list .= adr_get_lang($race_info['race_name']); if ($r < $race_count - 2) { $race_list .= ", "; } } $template->assign_block_vars('see_shop.items.race_restrict', array("RACE_LIST" => $race_list, "L_RACE_LIST" => $lang['Adr_character_race'])); } ##==== START: Show any level or characteristic restrictions for this item ===## $char_resist_list = ''; if ($row['item_restrict_level'] > '1') { // level restriction. Has to be more than one otherwise pointless restriction $char_resist_list = $lang['Adr_char_lvl'] . ' [' . $row['item_restrict_level'] . ']; '; } if ($row['item_restrict_str'] > '0') { // Strength restriction. Has to be more than 0 otherwise pointless restriction