2014-06-15 15:37:11 -06:00
|
|
|
<?php
|
2015-03-20 00:11:44 -06:00
|
|
|
|
2015-05-03 11:04:52 -06:00
|
|
|
$hello = 'world';
|
2015-03-20 00:11:44 -06:00
|
|
|
|
|
|
|
if (!isset($_SESSION)) {
|
|
|
|
session_start();
|
|
|
|
}
|
2015-05-03 11:04:52 -06:00
|
|
|
require_once 'sql.req.php';
|
2015-03-20 00:11:44 -06:00
|
|
|
|
2014-06-15 15:37:11 -06:00
|
|
|
// friend requests
|
2015-05-03 11:04:52 -06:00
|
|
|
$q = $mysqli->query('');
|
2014-06-15 15:37:11 -06:00
|
|
|
$num = $q->num_rows;
|
|
|
|
echo '<a href="notifications.php">';
|
2015-05-05 09:42:25 -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
|
2015-05-03 11:04:52 -06:00
|
|
|
$q = $mysqli->query('');
|
2014-06-15 15:37:11 -06:00
|
|
|
$num = $q->num_rows;
|
|
|
|
echo '<a href="messages.php">';
|
2015-05-05 09:42:25 -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>';
|