Changeset 685 for trunk/inc/player.php


Ignore:
Timestamp:
Jan 23, 2010, 9:50:48 PM (15 years ago)
Author:
george
Message:
  • Opraveno: Resetování xp a pozice.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/inc/player.php

    r682 r685  
    100100  public function GetPlayerLvl($guid)
    101101  {
    102     global $Config;
     102    global $Config, $System;
    103103
    104104    $Realm = new Realm($System, $_COOKIE['RealmIndex']);
     
    233233  public function CharInAcc($char, $acc)
    234234  {
    235     global $Config;
     235    global $Config, $System;
    236236   
    237237    if($this->Check())
     
    241241        $acc = $_SESSION['UserId'];
    242242      }
    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)
    245245      {
    246246        return(true);
Note: See TracChangeset for help on using the changeset viewer.