aboutsummaryrefslogtreecommitdiff
path: root/controllers/user.php
diff options
context:
space:
mode:
Diffstat (limited to 'controllers/user.php')
-rw-r--r--controllers/user.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/controllers/user.php b/controllers/user.php
new file mode 100644
index 0000000..f26103e
--- /dev/null
+++ b/controllers/user.php
@@ -0,0 +1,9 @@
+<?php
+
+function on_get() {
+ global $user;
+ try {
+ $user = Database\User::fromDB($_GET["user"]);
+ }
+ catch(Exception $e) {}
+}