view = $path["view"] . "profile.php"; $s = " SELECT name, mail, api_key FROM player WHERE uid = '$UID'; "; $q = $this->db->query($s); if ($r = $q->fetchArray(SQLITE3_ASSOC)){ $this->name = $r["name"]; $this->mail = $r["mail"]; $this->api_key = $r["api_key"]; } $this->title = $this->name ." - SWDB"; $this->description = $this->name . " user profile"; $this->canonical = $root . "profile/"; } } ?>