2 include_once("include/functions.php");
4 $str = @$_REQUEST['tip'];
5 $tip = substr($str,0,1);
6 $entry = intval(substr($str,1,10));
11 if (substr($str,1,1)=='g')
13 $entry = intval(substr($str,2,10));
14 if ($item_data = getItemData($entry))
16 if ($item = getItem($item_data[ITEM_FIELD_ENTRY
]))
17 noBorderItemTable($item, $item_data);
20 echo "Error item guid $entry";
22 else if ($item=getItem($entry))
23 noBorderItemTable($item,0,0);
25 echo "Error item $entry";
29 if ($creature=getCreature($entry))
31 include_once("include/creature_table.php");
32 noBorderCreatureTable($creature);
35 echo "Error creature $entry";
39 if ($obj=getGameobject($entry))
41 include_once("include/gameobject_table.php");
42 noBorderGameobjectTable($obj);
45 echo "Error object $entry";
49 if ($spell=getSpell($entry))
50 noBorderSpellTable($spell);
52 echo "Error spell $entry";
56 if ($enc=getEnchantment($entry))
57 noBorderEnchantTable($enc);
59 echo "Error enchant $entry";
63 $rank = intval(substr($str,1,1));
64 $entry = intval(substr($str,2,5));
65 $talentTab = $wDB->selectRow("SELECT * FROM `wowd_talents` WHERE `TalentID` = ?d", $entry);
67 noBorderTalentTable($talentTab, $rank);
69 echo "Error talent $entry - $rank";
73 if ($faction=getFaction($entry))
75 include_once("include/faction_table.php");
76 noBorderFactionTable($faction);
79 echo "Error faction $entry";