2014-06-15 15:37:11 -06:00
|
|
|
<?php
|
|
|
|
$hello = "world";
|
|
|
|
if (!isset($_SESSION)) session_start();
|
2014-12-27 23:38:06 -07:00
|
|
|
require_once ("sql.req.php");
|
2014-06-15 15:37:11 -06:00
|
|
|
// friend requests
|
|
|
|
$q = $mysqli->query("");
|
|
|
|
$num = $q->num_rows;
|
|
|
|
echo '<a href="notifications.php">';
|
2014-12-27 23:38:06 -07:00
|
|
|
if ($num > 0) {
|
|
|
|
echo '<i class="fa fa-star white"></i>';
|
|
|
|
} else {
|
|
|
|
echo '<i class="fa fa-star-o"></i>';
|
|
|
|
}
|
2014-06-15 15:37:11 -06:00
|
|
|
echo '</a>';
|
|
|
|
// new messages
|
|
|
|
$q = $mysqli->query("");
|
|
|
|
$num = $q->num_rows;
|
|
|
|
echo '<a href="messages.php">';
|
2014-12-27 23:38:06 -07:00
|
|
|
if ($num > 0) {
|
|
|
|
echo '<i class="fa fa-envelope white"></i>';
|
|
|
|
} else {
|
|
|
|
echo '<i class="fa fa-envelope-o"></i>';
|
2014-06-15 15:37:11 -06:00
|
|
|
}
|
|
|
|
echo '</a>';
|
|
|
|
?>
|