2 // Have 'Open Search' result like: "Dirty Leather Vest (Item)"
3 // Need fix it by extract name and type (get $name = "Dirty Leather Vest" and $type = "Item"
4 if (isset($_REQUEST['name']) && preg_match('/(^.*)\s\((.*?)\)/i', $_REQUEST['name'], $result))
6 // After need convert $type to search mode
7 if ($type = array_search($result[2],$ls_type_name))
9 $_REQUEST['s'] = $type;
10 $_REQUEST['name'] = $result[1]; // name
15 $name = @$_REQUEST['name'];
20 include("search_item.php");
23 include("search_npc.php");
26 include("search_quest.php");
29 include("search_spell.php");
32 include("search_go.php");
35 include("search_faction.php");
38 include("search_player.php");
41 include("search_itemset.php");
44 include("search_area.php");
47 // include_once("include/report_generator.php");
50 echo '<h3>'.$lang['search_item_req'].'</h3>';
51 include("search_item.php");
54 echo '<h3>'.$lang['search_set_req'].'</h3>';
55 include("search_itemset.php");
58 echo '<h3>'.$lang['search_faction_req'].'</h3>';
59 include("search_faction.php");
62 echo '<h3>'.$lang['search_npc_req'].'</h3>';
63 include("search_npc.php");
66 echo '<h3>'.$lang['search_quest_req'].'</h3>';
67 include("search_quest.php");
70 echo '<h3>'.$lang['search_go_req'].'</h3>';
71 include("search_go.php");
74 echo '<h3>'.$lang['search_spell_req'].'</h3>';
75 include("search_spell.php");
78 echo '<h3>'.$lang['search_area_req'].'</h3>';
79 include("search_area.php");