Changeset 630 for trunk/pages/gmteam.php
- Timestamp:
- Aug 26, 2009, 3:07:07 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/pages/gmteam.php
r627 r630 3 3 function ShowGMList($Realm) 4 4 { 5 global $db, $ Config;5 global $db, $db2, $Config; 6 6 7 7 $Result = $db->query('SELECT * FROM `GmTeam` WHERE (`RealmId` = '.$Realm['Id'].') AND (`TimeTo` IS NULL) ORDER BY `RealmId`, `Nick`'); … … 21 21 $Output .= '<td>'; 22 22 $Characters = array(); 23 $ResultMangos = $db ->query('SELECT * FROM `'.$Config['Mangos']['RealmList'][$_COOKIE['RealmIndex']]['DatabaseCharacters'].'`.`characters` WHERE `account` = "'.$Line['AccountId'].'"');23 $ResultMangos = $db2->query('SELECT * FROM `characters` WHERE `account` = "'.$Line['AccountId'].'"'); 24 24 while($LineMangos = $ResultMangos->fetch_array()) 25 25 { … … 49 49 //$_COOKIE['RealmIndex'] 50 50 51 $Realm = new Realm($System, $_COOKIE['RealmIndex']); 52 $db2 = $Realm->Database; 53 $db2->select_db($Config['Mangos']['RealmList'][$Realm->Id]['DatabaseCharacters']); 54 51 55 $db->select_db($Config['Database']['Database']); 52 56 $Output = '<h2 class="PageTitle">GM tým</h3>';
Note:
See TracChangeset
for help on using the changeset viewer.