Esempio n. 1
0
    } elseif ($profile == 'at' . $sess['username']) {
        $post = findAt($sess['username']);
    } elseif (!$profile == getUser($profile)) {
        print '<div class="post_it"><h3>';
        print "There's no user with that name...";
        print '</h3><button type="button" id="hide_btn" class="button">close</button></div>';
    } else {
        $post = getUserPosts($profile);
        $get = getUser($profile);
    }
}
/* CREATE TAGS */
if (isset($_GET['tag'])) {
    $tag = preg_replace('#[^a-z0-9_-å-ä-ö-Å-Ä-Ö-]#i', '', $_GET["tag"]);
    $fulltag = "#" . $tag;
    $post = findHashtag($fulltag);
}
?>

<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width" />
	<title>Litter</title>
	<link rel="icon" type="image/png" sizes="16x16" href="img/favicon-16x16.png">
	<link href="css/style.css" rel="stylesheet" type="text/css">
	<link href="css/mobile.css" rel="stylesheet" type="text/css">
</head>
<body>
Esempio n. 2
0
<?php 
print '<div id="whos_online">';
$online = getAllUsers();
print "<h3>Who's here now:</h3>";
print '<div id="online_img">';
print '<div id="online_container">';
foreach ($online as $online) {
    if ($online['user_id'] !== $sess['user_id']) {
        if ($online['active'] == 1) {
            print '<div class="whos_online">';
            print '<a href="profile.php?profile=' . $online['username'] . '" title="' . $online['username'] . '">' . getProfilePic($online['user_id'], '50px') . '</a>';
            print '</div>';
        } else {
            print '<div class="whos_online">';
            print '<a href="profile.php?profile=' . $online['username'] . '" title="' . $online['username'] . '">' . getProfilePic($online['user_id'], '50px" class="grey') . '</a>';
            print '</div>';
        }
    }
}
print '</div>';
print '</div>';
print '</div>';
print '<div id="wrapper">';
if ($post == findHashtag($fulltag)) {
    require_once 'tagpost.php';
} else {
    require_once 'post.php';
}
print '</div>';
require_once 'footer.php';