2014-06-15 15:37:11 -06:00
|
|
|
<?php
|
2015-03-20 00:11:44 -06:00
|
|
|
|
2014-06-15 15:37:11 -06:00
|
|
|
$hello = "world";
|
2015-03-20 00:11:44 -06:00
|
|
|
|
|
|
|
if (!isset($_SESSION)) {
|
|
|
|
session_start();
|
|
|
|
}
|
|
|
|
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">';
|
2015-03-20 00:11:44 -06:00
|
|
|
if ($num>0) {
|
2014-12-27 23:38:06 -07:00
|
|
|
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>';
|
2015-03-20 00:11:44 -06:00
|
|
|
|
2014-06-15 15:37:11 -06:00
|
|
|
// new messages
|
|
|
|
$q = $mysqli->query("");
|
|
|
|
$num = $q->num_rows;
|
|
|
|
echo '<a href="messages.php">';
|
2015-03-20 00:11:44 -06:00
|
|
|
if ($num>0) {
|
2014-12-27 23:38:06 -07:00
|
|
|
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>';
|