diff --git a/cont/settings.php b/cont/settings.php
index 07f0079..bf6f020 100644
--- a/cont/settings.php
+++ b/cont/settings.php
@@ -2,19 +2,16 @@
Settings
query($query);
- $user = $result->fetch_assoc();
+ include $_SESSION["docroot"].'/php/classes.user.php';
+ $user = new user($_COOKIE["token"]);
?>
User
diff --git a/php/classes.user.php b/php/classes.user.php
new file mode 100644
index 0000000..ac6cd03
--- /dev/null
+++ b/php/classes.user.php
@@ -0,0 +1,15 @@
+query($query);
+ $user = $result->fetch_assoc();
+ $this->uid = $user["uid"];
+ $this->username = $user["username"];
+ $this->email = $user["email"];
+ $this->last_login = $user["last_login"];
+ }
+ }
+?>