view = PATH::VIEW . "profile.php"; $s = " SELECT name, mail, api_key FROM user WHERE id = '" . get_context()->get_user()->id . "'; "; $q = get_context()->get_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 = URL::BASE . "profile/"; } } ?>