Welcome!
Welcome to Flashii! This is a site for a bunch of friends to hang out, nothing special.
Anyone is pretty much welcome to register so why not have a go?
Register!
Login
loggedIn()) {
$getBirthdays = $database->query("SELECT * FROM `flashii_users` WHERE `userrole` != '0' ORDER BY `id`");
$getBirthdays = $getBirthdays->fetch_all(MYSQLI_ASSOC);
$birthdayCount = 0;
$birthdays = array();
foreach($getBirthdays as $userData) {
if(!empty($userData['birthdate'])) {
if(date('m-d') == substr(date('Y-m-d', $userData['birthdate']), 5, 5) || (date('y')%4 <> 0 && substr(date('Y-m-d', $userData['birthdate']), 5, 5) == '02-29' && date('m-d') == '02-28')) {
++$birthdayCount;
$birthdays[$birthdayCount] = array();
$birthdays[$birthdayCount]['id'] = $birthdayCount;
$birthdays[$birthdayCount]['uid'] = $userData['id'];
$birthdays[$birthdayCount]['uname'] = $userData['username'];
}
}
}
if($birthdayCount) {
print '
Latest News Post
query("SELECT * FROM `flashii_news` ORDER BY `id` DESC LIMIT 1");
$getNews = $getNews->fetch_all(MYSQLI_ASSOC);
foreach($getNews as $newsPost) {
print '
';
print '
';
print $mdparser->text($newsPost['content']);
print '
';
}
?>
Statistics
query("SELECT * FROM `flashii_users` WHERE `userrole`!='0' ORDER BY `id`");
$countUsers = $getUsers->num_rows;
$getNewestUser = @end($getUsers->fetch_all(MYSQLI_ASSOC));
$getChatUsers = $database->query("SELECT * FROM `flashii_chat_online_users`")->num_rows;
?>
We have =$countUsers;?> registered users. | Our newest member is =$getNewestUser['username'];?>. |
It has been =date_diff(date_create(date('Y-m-d',$getNewestUser['join_date'])),date_create(date('Y-m-d')))->format('%a');?> days since the last user registered. | =$getChatUsers;?> user(s) in chat right now. |