Changeset 685 for trunk/inc/player.php
- Timestamp:
- Jan 23, 2010, 9:50:48 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/inc/player.php
r682 r685 100 100 public function GetPlayerLvl($guid) 101 101 { 102 global $Config ;102 global $Config, $System; 103 103 104 104 $Realm = new Realm($System, $_COOKIE['RealmIndex']); … … 233 233 public function CharInAcc($char, $acc) 234 234 { 235 global $Config ;235 global $Config, $System; 236 236 237 237 if($this->Check()) … … 241 241 $acc = $_SESSION['UserId']; 242 242 } 243 $ this->db->select_db($Config['Mangos']['RealmList'][$_COOKIE['RealmIndex']]['DatabaseCharacters']);244 if($ this->db->query('SELECT `guid` FROM `characters` WHERE `characters`.`guid`="'.$char.'" AND `account`="'.$acc.'" LIMIT 1;')->num_rows == 1)243 $Realm = new Realm($System, $_COOKIE['RealmIndex']); 244 if($Realm->CharactersDatabase->query('SELECT `guid` FROM `characters` WHERE `characters`.`guid`="'.$char.'" AND `account`="'.$acc.'" LIMIT 1;')->num_rows == 1) 245 245 { 246 246 return(true);
Note:
See TracChangeset
for help on using the changeset viewer.