Changeset 178 for minimanager/scripts
- Timestamp:
- Dec 23, 2007, 2:55:36 PM (17 years ago)
- Location:
- minimanager/scripts
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
minimanager/scripts/config.sample.php
r142 r178 1 1 <?php 2 3 include('../registrace/reg_config.php');4 2 /* 5 3 * Project Name: MiniManager for Mangos Server … … 14 12 */ 15 13 16 $version = "0.1. 5b";14 $version = "0.1.6b"; 17 15 18 16 //---- SQL Configuration ---- … … 28 26 $realm_db = Array( 29 27 'addr' => "127.0.0.1:3306", //SQL server IP:port this realmd located on 30 'user' => " mangos", //SQL server login this realmd located on31 'pass' => " mangos", //SQL server pass this realmd located on28 'user' => "root", //SQL server login this realmd located on 29 'pass' => "pass", //SQL server pass this realmd located on 32 30 'name' => "realmd", //realmd DB name 33 31 'encoding' => "utf8" //SQL connection encoding … … 37 35 'id' => 1, //Realm ID 38 36 'addr' => "127.0.0.1:3306", //SQL server IP:port this DB located on 39 'user' => " mangos", //SQL server login this DB located on40 'pass' => " mangos", //SQL server pass this DB located on37 'user' => "root", //SQL server login this DB located on 38 'pass' => "pass", //SQL server pass this DB located on 41 39 'name' => "mangos", //World Database name 42 40 'encoding' => "utf8", //SQL connection encoding 43 'db_rev' => "UDB rev.0.8. 2 rc 327" //db rev. used41 'db_rev' => "UDB rev.0.8.1" //db rev. used 44 42 ), 45 43 ); … … 49 47 'id' => 1, //Realm ID 50 48 'addr' => "127.0.0.1:3306", //SQL server IP:port this DB located on 51 'user' => " mangos", //SQL server login this DB located on52 'pass' => " mangos", //SQL server pass this DB located on49 'user' => "root", //SQL server login this DB located on 50 'pass' => "pass", //SQL server pass this DB located on 53 51 'name' => "characters", //Character Database name 54 52 'encoding' => "utf8", //SQL connection encoding … … 59 57 $server = Array( //if more than one realm used, even if they are on same system new subarray MUST be added. 60 58 1 => array( //position in array must represent realmd ID, same as in $mangos_db 61 'addr' => " wow.zdechov.net", //Game Server IP - Must be external address59 'addr' => "127.0.0.1", //Game Server IP - Must be external address 62 60 'game_port' => 8085, //Game Server port 63 61 'term_type' => "SSH", //Terminal type - ("SSH"/"Telnet") 64 62 'term_port' => 22, //Terminal port 65 'rev' => "rev.4 752 SD166", //Mangos rev. used66 'both_factions' => true //Allow to see opponent faction characters. Affects only players. 63 'rev' => "rev.4846 SD152", //Mangos rev. used 64 'both_factions' => true //Allow to see opponent faction characters. Affects only players. 67 65 ), 68 66 ); … … 70 68 71 69 //---- Mail configuration ---- 72 $admin_mail = " wow@zdechov.net"; //mail used for bug reports and other user contact70 $admin_mail = "mail@mail.com"; //mail used for bug reports and other user contact 73 71 74 72 $mailer_type = "smtp"; // type of mailer to be used("mail", "sendmail", "smtp") 75 $from_mail = " wow@zdechov.net"; //all emails will be sent from this email73 $from_mail = "mail@mail.com"; //all emails will be sent from this email 76 74 //smtp server config 77 75 $smtp_cfg = array( … … 83 81 84 82 //---- New account creation Options ---- 85 if($AllowedRegistrationCountPerDay == 0) $disable_acc_creation = true; //true = Do not allow new accounts to be created 86 else $disable_acc_creation = false; 83 $disable_acc_creation = false; //true = Do not allow new accounts to be created 87 84 $send_mail_on_creation = false; //true = send mail at account creation. 88 85 $create_acc_locked = 0; //if set to '1' newly created accounts will be made locked to 0.0.0.0 IP disallowing user to login. … … 97 94 98 95 //---- Layout configuration ---- 99 $title = " WoW server Heroes of Fantasy";96 $title = "MiniManager for MaNgOs srv."; 100 97 $itemperpage = 25; 101 98 102 99 $css_template = "Sulfur"; //file/folder name of css tamplate to use from templates directory by default 103 $language = " csCZ"; //default site language104 $site_encoding = "iso-8859- 2"; //default encoding100 $language = "enUS"; //default site language 101 $site_encoding = "iso-8859-1"; //default encoding 105 102 106 103 //---- IRC Options ------ … … 133 130 //menu content by user level 134 131 $menu_array = Array( 135 4 => array("SAdmin" ,array(132 5 => array("SysOP" ,array( 136 133 array("index.php", 'main', array()), 137 134 array("user.php", 'users', array( … … 152 149 array("ticket.php", 'tickets'), 153 150 array("ahstats.php", 'auctionhouse'), 151 array("events.php", 'events'), 154 152 array("realm.php", 'realm'), 155 153 array("motd.php", 'add_motd'), … … 171 169 ) 172 170 ), 173 3=> array("Admin" ,array(171 4 => array("Admin" ,array( 174 172 array("index.php", 'main', array()), 175 173 array("user.php", 'users', array( … … 190 188 array("ticket.php", 'tickets'), 191 189 array("ahstats.php", 'auctionhouse'), 190 array("events.php", 'events'), 192 191 array("realm.php", 'realm'), 193 192 array("motd.php", 'add_motd'), … … 209 208 ) 210 209 ), 210 3 => array("BugTracker" ,array( 211 array("index.php", 'main', array()), 212 array("user.php", 'users', array( 213 array("user.php", 'accounts'), 214 array("char_list.php", 'characters'), 215 array("guild.php", 'guilds'), 216 array("arenateam.php", 'arena_teams'), 217 array("honor.php", 'honor'), 218 array("banned.php", 'banned_list'), 219 array("cleanup.php", 'cleanup'), 220 array("stat.php", 'statistics'), 221 array("javascript:void(0);\" onclick=\"window.open('./pomm/pomm.php', 'pomm', 'Toolbar=0, Location=0, Directories=0, Status=0, Menubar=0, Scrollbar=0, Resizable=0, Copyhistory=1, Width=784, Height=525')", 'player_map'), 222 ), 223 ), 224 array("#", 'tools', array( 225 array("ssh.php", 'ssh_line'), 226 array("run_patch.php", 'run_sql_patch'), 227 array("ticket.php", 'tickets'), 228 array("ahstats.php", 'auctionhouse'), 229 array("events.php", 'events'), 230 array("realm.php", 'realm'), 231 array("motd.php", 'add_motd'), 232 array("mail.php", 'mail'), 233 array("irc.php", 'irc'), 234 array("javascript:void(0);\" onclick=\"window.open('./forum.html', 'forum')", 'forums'), 235 ), 236 ), 237 array("#", 'db', array( 238 array("item.php", 'items'), 239 array("creature.php", 'creatures'), 240 array("game_object.php", 'game_object'), 241 array("tele.php", 'teleports'), 242 array("command.php", 'command'), 243 array("backup.php", 'backup'), 244 array("repair.php", 'repair'), 245 ), 246 ), 247 ) 248 ), 211 249 2 => array("GameMaster" ,array( 212 250 array("index.php", 'main', array()), … … 225 263 array("ticket.php", 'tickets'), 226 264 array("ahstats.php", 'auctionhouse'), 265 array("events.php", 'events'), 227 266 array("motd.php", 'add_motd'), 228 267 array("mail.php", 'mail'), … … 257 296 array("ticket.php", 'tickets'), 258 297 array("ahstats.php", 'auctionhouse'), 298 array("events.php", 'events'), 259 299 array("motd.php", 'add_motd'), 260 300 // array("mail.php", 'mail'), … … 285 325 array("irc.php", 'irc'), 286 326 array("command.php", 'command'), 327 array("events.php", 'events'), 287 328 array("javascript:void(0);\" onclick=\"window.open('./forum.html', 'forum')", 'forums'), 288 329 ), … … 293 334 ); 294 335 295 $debug = false; //set to true if full php debugging requierd.336 $debug = true; //set to true if full php debugging requierd. 296 337 ?> -
minimanager/scripts/defines.php
r142 r178 14 14 define('CHAR_DATA_OFFSET_MINDAMAGE',148); //cast 15 15 define('CHAR_DATA_OFFSET_MAXDAMAGE',149); //cast 16 define('CHAR_DATA_OFFSET_STR',164); 17 define('CHAR_DATA_OFFSET_AGI',165); 18 define('CHAR_DATA_OFFSET_STA',166); 19 define('CHAR_DATA_OFFSET_INT',167); 20 define('CHAR_DATA_OFFSET_SPI',168); 21 define('CHAR_DATA_OFFSET_ARMOR',179); 22 define('CHAR_DATA_OFFSET_RES_HOLY',180); 23 define('CHAR_DATA_OFFSET_RES_FIRE',181); 24 define('CHAR_DATA_OFFSET_RES_NATURE',182); 25 define('CHAR_DATA_OFFSET_RES_FROST',183); 26 define('CHAR_DATA_OFFSET_RES_SHADOW',184); 27 define('CHAR_DATA_OFFSET_RES_ARCANE',185); 28 define('CHAR_DATA_OFFSET_AP',203); 29 define('CHAR_DATA_OFFSET_RANGED_AP',206); 30 define('CHAR_DATA_OFFSET_MINRANGEDDAMAGE',209); 31 define('CHAR_DATA_OFFSET_MAXRANGEDDAMAGE',210); 32 define('CHAR_DATA_OFFSET_GUILD_ID',229); 33 define('CHAR_DATA_OFFSET_GUILD_RANK',230); 34 define('CHAR_DATA_OFFSET_EQU_HEAD',313); 35 define('CHAR_DATA_OFFSET_EQU_NECK',329); 36 define('CHAR_DATA_OFFSET_EQU_SHOULDER',345); 37 define('CHAR_DATA_OFFSET_EQU_SHIRT',361); 38 define('CHAR_DATA_OFFSET_EQU_CHEST',377); 39 define('CHAR_DATA_OFFSET_EQU_BELT',393); 40 define('CHAR_DATA_OFFSET_EQU_LEGS',409); 41 define('CHAR_DATA_OFFSET_EQU_FEET',425); 42 define('CHAR_DATA_OFFSET_EQU_WRIST',441); 43 define('CHAR_DATA_OFFSET_EQU_GLOVES',457); 44 define('CHAR_DATA_OFFSET_EQU_FINGER1',473); 45 define('CHAR_DATA_OFFSET_EQU_FINGER2',489); 46 define('CHAR_DATA_OFFSET_EQU_TRINKET1',505); 47 define('CHAR_DATA_OFFSET_EQU_TRINKET2',521); 48 define('CHAR_DATA_OFFSET_EQU_BACK',537); 49 define('CHAR_DATA_OFFSET_EQU_MAIN_HAND',553); 50 define('CHAR_DATA_OFFSET_EQU_OFF_HAND',569); 51 define('CHAR_DATA_OFFSET_EQU_RANGED',585); 52 define('CHAR_DATA_OFFSET_EQU_TABARD',601); 53 define('CHAR_DATA_OFFSET_EXP',856); 54 define('CHAR_DATA_OFFSET_SKILL_DATA',858); 55 define('CHAR_DATA_OFFSET_BLOCK',1246); 56 define('CHAR_DATA_OFFSET_DODGE',1247); 57 define('CHAR_DATA_OFFSET_PARRY',1248); 58 define('CHAR_DATA_OFFSET_CRIT',1249); 59 define('CHAR_DATA_OFFSET_RANGE_CRIT',1250); 60 define('CHAR_DATA_OFFSET_SPELL_CRIT_PER',1252); 61 define('CHAR_DATA_OFFSET_GOLD',1324); 62 define('CHAR_DATA_OFFSET_HONOR_KILL',1376); 63 define('CHAR_DATA_OFFSET_HONOR_POINTS',1420); 64 define('CHAR_DATA_OFFSET_ARENA_POINTS',1421); 16 define('CHAR_DATA_OFFSET_STR',171); 17 define('CHAR_DATA_OFFSET_AGI',172); 18 define('CHAR_DATA_OFFSET_STA',173); 19 define('CHAR_DATA_OFFSET_INT',174); 20 define('CHAR_DATA_OFFSET_SPI',175); 21 define('CHAR_DATA_OFFSET_ARMOR',186); 22 define('CHAR_DATA_OFFSET_RES_HOLY',187); 23 define('CHAR_DATA_OFFSET_RES_FIRE',188); 24 define('CHAR_DATA_OFFSET_RES_NATURE',189); 25 define('CHAR_DATA_OFFSET_RES_FROST',190); 26 define('CHAR_DATA_OFFSET_RES_SHADOW',191); 27 define('CHAR_DATA_OFFSET_RES_ARCANE',192); 28 define('CHAR_DATA_OFFSET_AP',210); 29 define('CHAR_DATA_OFFSET_RANGED_AP',213); 30 define('CHAR_DATA_OFFSET_MINRANGEDDAMAGE',222); 31 define('CHAR_DATA_OFFSET_MAXRANGEDDAMAGE',223); 32 define('CHAR_DATA_OFFSET_GUILD_ID',235); 33 define('CHAR_DATA_OFFSET_GUILD_RANK',236); 34 define('CHAR_DATA_OFFSET_EQU_HEAD',319); 35 define('CHAR_DATA_OFFSET_EQU_NECK',335); 36 define('CHAR_DATA_OFFSET_EQU_SHOULDER',351); 37 define('CHAR_DATA_OFFSET_EQU_SHIRT',367); 38 define('CHAR_DATA_OFFSET_EQU_CHEST',383); 39 define('CHAR_DATA_OFFSET_EQU_BELT',399); 40 define('CHAR_DATA_OFFSET_EQU_LEGS',415); 41 define('CHAR_DATA_OFFSET_EQU_FEET',431); 42 define('CHAR_DATA_OFFSET_EQU_WRIST',447); 43 define('CHAR_DATA_OFFSET_EQU_GLOVES',463); 44 define('CHAR_DATA_OFFSET_EQU_FINGER1',479); 45 define('CHAR_DATA_OFFSET_EQU_FINGER2',495); 46 define('CHAR_DATA_OFFSET_EQU_TRINKET1',511); 47 define('CHAR_DATA_OFFSET_EQU_TRINKET2',527); 48 define('CHAR_DATA_OFFSET_EQU_BACK',543); 49 define('CHAR_DATA_OFFSET_EQU_MAIN_HAND',559); 50 define('CHAR_DATA_OFFSET_EQU_OFF_HAND',575); 51 define('CHAR_DATA_OFFSET_EQU_RANGED',591); 52 define('CHAR_DATA_OFFSET_EQU_TABARD',607); 53 define('CHAR_DATA_OFFSET_EXP',862); 54 define('CHAR_DATA_OFFSET_SKILL_DATA',864); 55 define('CHAR_DATA_OFFSET_BLOCK',1252); 56 define('CHAR_DATA_OFFSET_DODGE',1253); 57 define('CHAR_DATA_OFFSET_PARRY',1254); 58 define('CHAR_DATA_OFFSET_CRIT',1256); 59 define('CHAR_DATA_OFFSET_RANGE_CRIT',1257); 60 define('CHAR_DATA_OFFSET_SPELL_CRIT_PER',1259); 61 define('CHAR_DATA_OFFSET_GOLD',1332); 62 define('CHAR_DATA_OFFSET_HONOR_KILL',1384); 63 define('CHAR_DATA_OFFSET_HONOR_POINTS',1432); 64 define('CHAR_DATA_OFFSET_ARENA_POINTS',1433); 65 65 66 ?> -
minimanager/scripts/del_lib.php
r142 r178 8 8 * License: GNU General Public License v2(GPL) 9 9 */ 10 10 11 11 require_once("backup_tab.php"); 12 12 … … 24 24 $owner_gmlvl = $sql_01->result($query1, 0, 'gmlevel'); 25 25 unset($query1); 26 26 27 27 if (($user_lvl > $owner_gmlvl)||($owner_acc_id == $user_id)) { 28 28 $sql_01->connect($characters_db[$realm]['addr'], $characters_db[$realm]['user'], $characters_db[$realm]['pass'], $characters_db[$realm]['name']); … … 92 92 function del_guild($guid,$realm){ 93 93 global $characters_db, $realm_db; 94 94 95 95 require_once("scripts/defines.php"); 96 96 97 97 $sql_01 = new SQL; 98 98 $sql_01->connect($characters_db[$realm]['addr'], $characters_db[$realm]['user'], $characters_db[$realm]['pass'], $characters_db[$realm]['name']); 99 99 $query = $sql_01->query("DELETE FROM guild WHERE guildid = '$guid'"); 100 100 $query = $sql_01->query("DELETE FROM guild_rank WHERE guildid = '$guid'"); 101 101 102 102 //clean data inside character.data field 103 103 $temp = $sql_01->query("SELECT guid FROM guild_member WHERE guildid = '$guid'"); -
minimanager/scripts/gen_lib.php
r142 r178 13 13 function send_ingame_mail($to, $from, $subject, $body, $gold = 0, $item = 0, $stack = 1){ 14 14 global $lang_global, $characters_db, $realm_id; 15 15 16 16 $sql_0 = new SQL; 17 17 $sql_0->connect($characters_db[$realm_id]['addr'], $characters_db[$realm_id]['user'], $characters_db[$realm_id]['pass'], $characters_db[$realm_id]['name']); 18 18 19 19 $result = $sql_0->query("SELECT MAX(`id`) FROM item_text"); 20 20 $item_page_id = ($sql_0->result($result, 0)) + 1; … … 24 24 $mail_id = ($sql_0->result($result, 0)) + 1; 25 25 26 26 $item_guid = ($item) ? gen_item_instance($to, $item, $stack) : 0; 27 27 28 $result = $sql_0->query("INSERT INTO mail (id,messageType,sender,receiver,subject,itemTextId,item_guid,item_template,expire_time,deliver_time,money,cod,checked) 29 VALUES ($mail_id, 0, '$from', '$to', '$subject', '$item_page_id', '$item_guid', '$item', '".(time() + (30*24*3600))."','".(time()+5)."', '$gold', 0, 0)"); 30 28 if ($item == 0) { 29 $has_items = 0; 30 } else { 31 $has_items = 1; 32 } 33 34 $result = $sql_0->query("INSERT INTO mail (id,messageType,sender,receiver,subject,itemTextId,has_items,expire_time,deliver_time,money,cod,checked) 35 VALUES ($mail_id, 0, '$from', '$to', '$subject', '$item_page_id', '$has_items', '".(time() + (30*24*3600))."','".(time()+5)."', '$gold', 0, 0)"); 36 37 if ($has_items) { 38 $result = $sql_0->query("INSERT INTO mail_items (mail_id,item_guid,item_template) 39 VALUES ($mail_id, '$item_guid', '$item')"); 40 } 41 31 42 if ($result) { 32 33 43 $sql_0->close(); 44 return $mail_id; 34 45 } else { 35 46 $sql_0->close(); … … 54 65 WHERE entry = '$item_id'"); 55 66 $item_template = $sql_1->fetch_row($result); 56 67 57 68 if ($item_template[1] <= 1) $stack = 1; 58 69 59 70 $item_data = array( 60 71 'OBJECT_FIELD_GUID' => $guid, … … 82 93 'ITEM_FIELD_MAXDURABILITY' => $item_template[2].' ' 83 94 ); 84 95 85 96 $data = implode(" ",$item_data); 86 97 87 98 $result = $sql_1->query("INSERT INTO item_instance (guid, owner_guid, data) VALUES ($guid, '$owner','$data')"); 88 99 89 100 if ($result) { 90 101 $sql_1->close(); -
minimanager/scripts/get_lib.php
r142 r178 49 49 $sql_1 = new SQL; 50 50 $sql_1->connect($mangos_db[$realm_id]['addr'], $mangos_db[$realm_id]['user'], $mangos_db[$realm_id]['pass'], $mangos_db[$realm_id]['name']); 51 51 52 52 $result_1 = $sql_1->query("SELECT stat_type1,stat_value1,stat_type2,stat_value2,stat_type3,stat_value3,stat_type4, 53 53 stat_value4,stat_type5,stat_value5,stat_type6,stat_value6,stat_type7,stat_value7,stat_type8, … … 87 87 default: 88 88 } 89 89 90 90 $tooltip .= "<font color='white'>"; 91 91 92 92 switch ($item[53]) { 93 93 case 1: //Binds when Picked Up … … 107 107 108 108 if ($item[60]) $tooltip .= "{$lang_item['unique']}<br />"; 109 109 110 110 $tooltip .= "<br />"; 111 111 switch ($item[57]) { … … 172 172 default: 173 173 } 174 174 175 175 switch ($item[33]) { 176 176 case 0: //Consumable 177 $tooltip .= "{$lang_item['consumable']}<br />"; 178 break; 179 177 $tooltip .= "{$lang_item['consumable']}<br />"; 178 break; 179 180 180 case 2: //Weapon 181 181 switch ($item[34]) { … … 340 340 } 341 341 break; 342 342 343 343 case 12: //Quest 344 344 if ($item[53] != 4) $tooltip .= "{$lang_item['quest_item']}<br />"; 345 345 break; 346 346 347 347 case 13: //key 348 348 switch ($item[34]) { … … 358 358 default: 359 359 } 360 360 361 361 if ($item[20]) $tooltip .= "$item[20] {$lang_item['armor']}<br />"; 362 362 … … 365 365 $min_dmg_value = $item[$f]; 366 366 $max_dmg_value = $item[$f+1]; 367 367 368 368 if ($min_dmg_value && $max_dmg_value){ 369 369 switch ($dmg_type) { … … 389 389 $tooltip .= "$min_dmg_value - $max_dmg_value {$lang_item['arcane_dmg']}<br />"; 390 390 break; 391 391 392 392 default: 393 393 } … … 433 433 if ($item[24]) $tooltip .= "$item[24] {$lang_item['res_frost']}<br />"; 434 434 if ($item[26]) $tooltip .= "$item[26] {$lang_item['res_shadow']}<br />"; 435 435 436 436 //sockets 437 437 for($p=72;$p<=74;$p++){ … … 565 565 } 566 566 } 567 } 567 } 568 568 } 569 569 //add equip spellid to status … … 586 586 if ($item[$s1+40]) $tooltip.= abs($item[$s1+40])." {$lang_item['charges']}.<br />"; 587 587 } 588 } 588 } 589 589 } 590 590 591 591 $tooltip .= "</font>"; 592 592 593 593 if ($item[55]) { 594 594 include_once("itemset_tab.php"); 595 595 $tooltip .= "<br /><font color='orange'>{$lang_item['item_set']} : ".get_itemset_name($item[55])." ($item[55])</font>"; 596 596 } 597 if ($item[54]) $tooltip .= "<br /><font color='orange'>''".str_replace("\"", " '", $item[54])."' '</font>";597 if ($item[54]) $tooltip .= "<br /><font color='orange'>''".str_replace("\"", " '", $item[54])."'</font>"; 598 598 599 599 } else $tooltip = "Item ID: $item_id Not Found" ; … … 610 610 global $proxy_cfg, $get_icons_from_web; 611 611 if (file_exists("img/INV/$itemid.jpg")) return "img/INV/$itemid.jpg"; 612 612 613 613 if($get_icons_from_web){ 614 614 //only customitems have ids in this range. 615 615 if ($itemid > 35000) return "img/INV/INV_blank_32.gif"; 616 616 617 617 $xmlfilepath="http://www.wowhead.com/?item="; 618 618 $proxy = $proxy_cfg['addr']; … … 636 636 while ($fp && !feof($fp)) $temp .= fgets($fp, 4096); 637 637 fclose($fp); 638 638 639 639 preg_match("~(Icon.create\('(.*?)')~", $temp, $temp); 640 640 if (!isset($temp[2])) return "img/INV/INV_blank_32.gif"; 641 641 $temp[2] = strtolower($temp[2]); 642 642 643 643 //get the icon itself 644 644 $fp = @fsockopen($proxy, $port, $errno, $errstr, 0.4); … … 647 647 $out = "GET $file HTTP/1.0\r\nHost: $proxy\r\n"; 648 648 if (!empty($proxy_cfg['user'])) $out .= "Proxy-Authorization: Basic ". base64_encode ("{$proxy_cfg['user']}:{$proxy_cfg['pass']}")."\r\n"; 649 $out .="Connection: Close\r\n\r\n"; 649 $out .="Connection: Close\r\n\r\n"; 650 650 fwrite($fp, $out); 651 651 … … 660 660 fclose($fp); 661 661 fclose($img_file); 662 662 663 663 if (file_exists("img/INV/$itemid.jpg")) return "img/INV/$itemid.jpg"; 664 664 else return "img/INV/INV_blank_32.gif"; … … 666 666 } else return "img/INV/INV_blank_32.gif"; 667 667 } 668 669 //########################################################################################## 670 //generate item border from item_template.entry 671 function get_item_border($item_id){ 672 global $lang_global, $lang_id_tab, $mangos_db, $realm_id, $itemset_id; 673 if($item_id){ 674 $sql_2 = new SQL; 675 $sql_2->connect($mangos_db[$realm_id]['addr'], $mangos_db[$realm_id]['user'], $mangos_db[$realm_id]['pass'], $mangos_db[$realm_id]['name']); 676 677 $result_2 = $sql_2->query("SELECT Quality FROM item_template WHERE entry = '$item_id'"); 678 $iborder = ($sql_2->num_rows($result_2) == 1) ? $sql_2->result($result_2, 0,"Quality"): "Quality: $iborder Not Found" ; 679 680 return "icon_border_$iborder"; 681 } 682 else 683 return "icon_border_0"; 684 } 668 685 ?> -
minimanager/scripts/id_tab.php
r142 r178 13 13 1 => array(1,"Moderator","Mod"), 14 14 2 => array(2,"Gamemaster","GM"), 15 3 => array(3,"Administrator","ADM") 15 3 => array(3,"BugTracker","BT"), 16 4 => array(4,"Admin","ADM"), 17 5 => array(5,"Sys OP","SYS") 16 18 ); 17 19 … … 361 363 1 => $lang_id_tab['Moderator'], 362 364 2 => $lang_id_tab['Game_Master'], 363 3 => $lang_id_tab['Administrator'] 365 3 => $lang_id_tab['BugTracker'], 366 4 => $lang_id_tab['Administrator'], 367 5 => $lang_id_tab['SysOP'] 364 368 ); 365 369 … … 413 417 14 => $lang_id_tab['High_Warlord'] 414 418 ) 415 416 419 ); 417 420 … … 420 423 2 => array($lang_id_tab['orc'], 1), 421 424 3 => array($lang_id_tab['dwarf'], 0), 422 4 => array($lang_id_tab['night Elf'], 0),425 4 => array($lang_id_tab['nightelf'], 0), 423 426 5 => array($lang_id_tab['undead'], 1), 424 427 6 => array($lang_id_tab['tauren'], 1), 425 428 7 => array($lang_id_tab['gnome'], 0), 426 429 8 => array($lang_id_tab['troll'], 1), 427 10 => array($lang_id_tab['blood Elf'], 1),428 11 => array($lang_id_tab['draenei'], 0) ,430 10 => array($lang_id_tab['bloodelf'], 1), 431 11 => array($lang_id_tab['draenei'], 0) 429 432 ); 430 433 … … 439 442 if ($rank>14) { $rank = 14; } 440 443 return $rank; 441 } 444 }; 445 442 446 443 447 ?>
Note:
See TracChangeset
for help on using the changeset viewer.