function timeago($time) { $time = time() - floor($time); if ($time < 60) { return $time . " second" . splural($time); } $time = floor($time / 60); if ($time < 60) { return $time . " minute" . splural($time); } $time = floor($time / 60); if ($time < 24) { return $time . " hour" . splural($time); } $time = floor($time / 24); return $time . " day" . splural($time); }
ago</div> <div class="replylink"><a href="thread.php?id=<?php echo $post["id"]; ?> ">[ <?php echo $post["comments"]; ?> comment<?php echo splural($post["comments"]); ?> ]</a></div> <div class="views"><?php echo $post["views"]; ?> view<?php echo splural($post["views"]); ?> </div> <div class="id">ID: <?php echo $post["id"]; ?> </div> </div> <div class="container"> <iframe id="video<?php echo $post["id"]; ?> " src="https://www.youtube.com/embed/<?php echo htmlspecialchars($post["data"]); ?> ?showinfo=0&enablejsapi=1" frameborder="0" allowfullscreen></iframe>