1 2 3 4 5 6 7 8 9
<?php function on_get() { global $user; try { $user = Database\User::fromDB($_GET["user"]); } catch(Exception $e) {} }