<?php $root = './../..'; require $root . '/../app/initialize.php'; $user = User::get(); $msgs = UserMail::getInbox($user->id); ?> <?php includeFile('site/header.php'); ?> <h2>Mail</h2> <h3>Inbox</h3> <?php getAlerts(); ?> <?php if (count($msgs)) { ?> <table class="table table-hover"> <tbody> <?php foreach ($msgs as $msg) { $fromUser = User::findByID($msg->id); ?> <tr> <td><?php echo $fromUser->fullName();