Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- require_once('class.php');
- $user = new User();
- if (!$user->isLoggedIn()) {
- header("Location:login_html.php");
- }
- $posts = $user->getPosts($_GET['refid']);
- echo "Welcome ".$_SESSION['user']."<br>";
- echo "<a href='redirect.php'>Logout</a> <br>";
- while ($row=mysqli_fetch_assoc($posts)){
- extract($row);
- $time = date('d:m:Y \a\t h:iA',$time_submitted);
- echo "<hr>";
- echo "$poster $time <br>";
- echo "<strong>$post </strong><br>";
- echo "<a href='#'>Quote</a> <a href='#'>Like</a>";
- echo "<hr> <br>";
- }
- echo "<a href=".'reply_html.php?refid='.$_GET['refid'].">Reply</a>";
Add Comment
Please, Sign In to add comment