Esempio n. 1
0
 public function load($username)
 {
     $res = $username && file_exists("acc-{$username}.dat");
     if ($res) {
         $acc = file("acc-{$username}.dat", FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
         parent::__construct($acc[4], $acc[3], $acc[5], $this->debug);
         $this->uuid = $acc[6];
         $this->device_id = $acc[7];
         $this->username_id = $acc[8];
         $this->token = $acc[9];
         $this->isLoggedIn = true;
         $this->rank_token = $this->username_id . "_" . $this->uuid;
     }
     return $res;
 }