Changeset 178 for minimanager/index.php
- Timestamp:
- Dec 23, 2007, 2:55:36 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
minimanager/index.php
r142 r178 16 16 17 17 $sql = new SQL; 18 18 19 $sql->connect($mangos_db[$realm_id]['addr'], $mangos_db[$realm_id]['user'], $mangos_db[$realm_id]['pass'], $mangos_db[$realm_id]['name']); 19 20 … … 26 27 $online = true; 27 28 } else { 28 $output .= "<h1><font class=\"error\">{$lang_index['realm']} ".get_realm_name($realm_id)." {$lang_index['offline_or_let_h eight']}</font></h1>";29 $output .= "<h1><font class=\"error\">{$lang_index['realm']} ".get_realm_name($realm_id)." {$lang_index['offline_or_let_high']}</font></h1>"; 29 30 $online = false; 30 31 } … … 64 65 } 65 66 $output .= "</table><br />"; 67 66 68 67 69 //print online chars … … 110 112 while($char = $sql->fetch_row($result)){ 111 113 112 $guild_name = $sql->fetch_row($sql->query("SELECT `name` FROM `guild` WHERE `guildid`=".$char[9].";")); 113 114 //$guild_name = 'dummy'; 114 115 $accid = $char[8]; 115 116 116 $sql->db("realmd"); 117 $sql->connect($realm_db['addr'], $realm_db['user'], $realm_db['pass'], $realm_db['name']); 118 //$sql->db($realm_db['name']); 117 119 $gmlvl = $sql->query("SELECT `gmlevel` FROM `account`WHERE `id`='$accid';"); 118 120 $gml = $sql->fetch_row($gmlvl); 119 121 $gm = $gml[0]; 120 122 121 $sql->db($characters_db[$realm_id]['name']); 123 $sql->connect($characters_db[$realm_id]['addr'], $characters_db[$realm_id]['user'], $characters_db[$realm_id]['pass'], $characters_db[$realm_id]['name']); 124 //$sql->db($characters_db[$realm_id]['name']); 125 $guild_name = $sql->fetch_row($sql->query("SELECT `name` FROM `guild` WHERE `guildid`=".$char[9].";")); 126 122 127 123 128 $level = $char[7];
Note:
See TracChangeset
for help on using the changeset viewer.