<div id="runner"></div> <div id="footer">Footer !</div> <script type="text/javascript"> var request = { <?php if (isset($_GET['surl']) && strlen($_GET['surl']) > 2) { echo 'project: "' . (substr($_GET['surl'], 0, 2) == 'pr' ? 'private/' : 'public/') . substr($_GET['surl'], 2) . '"'; } else { if (isset($_GET['project'])) { echo 'project: "' . $_GET['project'] . '"'; } if (isset($_GET['project']) && isset($_GET['commit'])) { echo ','; } if (isset($_GET['commit'])) { echo 'commit: "' . $_GET['commit'] . '"'; } } ?> }; var sharkDevRobot = <?php echo '"' . User::getUserFromID(0)['fullname'] . '"'; ?> </script> <?php Page::send();
</li> <li class="dropdown"> <a class="dropdown-toggle count-info" data-toggle="dropdown" href="#"> <i class="fa fa-bell"></i> <span class="label label-primary" content="unread-alerts"><?php echo $unreadAlerts; ?> </span> </a> <ul class="dropdown-menu dropdown-alerts"> <?php $dir = DataBase::get('messages', array('ID', 'recipient', 'sender', 'recipient_dir', 'sender_dir', 'subject', 'sent', 'opened'), array('recipient' => User::getID(), 'recipient_dir' => 'alerts', 'opened' => 0)); foreach ($dir as $i => $mail) { $sender = User::getUserFromID($mail['sender']); $mail['sender_ID'] = $mail['sender']; $mail['sender'] = $sender['fullname']; $recipient = User::getUserFromID($mail['recipient']); $mail['recipient_ID'] = $mail['recipient']; $mail['recipient'] = $recipient['fullname']; ?> <li> <a href="mailbox.php#/view/<?php echo $mail['ID']; ?> "> <div> <i class="fa fa-envelope fa-fw"></i> <?php echo $mail['subject']; ?> <span class="pull-right text-muted small"><?php echo timeAgo($mail['sent']); ?>