Updated Home and Post

This commit is contained in:
2017-10-02 09:18:21 +07:00
parent dbd326637a
commit 64fc8a6896
2 changed files with 1 additions and 17 deletions

View File

@@ -175,20 +175,4 @@ class Home
}
return true;
}
// Branch mithril test
public function mithril() {
if (Session::exists('userid')) {
$user['id'] = Session::get('userid');
$user['username'] = Session::get('username');
$user['full_name'] = Session::get('full_name');
$user['privilege'] = Session::get('privilege');
} else {
$user = false;
}
View::render('Data/mithril.html', [
'user' => $user
]);
}
}