Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include('core/init.inc.php');
- if (isset($_POST['user'], $_POST['body'])){
- add_post($_POST['user'], $_POST['body']);
- header('Location: http://vibeate.webege.com/home.php');
- die();
- }
- ?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- <html>
- <head>
- <title>Welcome to ViBeate</title>
- <meta name="description" content="Welcome to ViBeate. ViBeate allows you to connect with friends, family, and co-workers." />
- <meta name="keywords" content="social, networking, games, chat, hangout, friends" />
- <meta name="robots" content="index, follow" />
- <link rel="stylesheet" href="styles/style.css" type="text/css">
- <script type="text/javascript">
- WebFontConfig = {
- google: { families: [ 'Chewy::latin' ] }
- };
- (function() {
- var wf = document.createElement('script');
- wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
- '://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
- wf.type = 'text/javascript';
- wf.async = 'true';
- var s = document.getElementsByTagName('script')[0];
- s.parentNode.insertBefore(wf, s);
- })(); </script>
- </head>
- <body>
- <div id="wrapper">
- <?php include('extras/menu.php'); ?>
- <br />
- <br />
- <div id="main">
- <div id="left_side">
- <form action="" method="post">
- <p>
- <input type="text" value="<?php echo $_SESSION['username']; ?>" name="user" id="user" hidden>
- </p>
- <p>
- <textarea name="body" rows="5" cols="60" placeholder="Post a status here..."></textarea>
- </p>
- <p>
- <input type="submit" value="Post" />
- </p>
- </form>
- <?php
- $posts = get_posts();
- foreach ($posts as $post){
- ?>
- <h3><a href="http://vibeate.webege.com/users/portfolio.php?uid=<?php echo $user_info['id']; ?>"><?php echo $post['user']; ?></a></h3> Posted on <?php echo $post['date']; ?>
- <hr />
- <p><?php echo $post['preview']; ?></p>
- <i><a href="read_post.php?pid=<?php echo $post['id']; ?>">(<?php echo $post['total_comments']; ?> comments) <?php echo $post['last_comment']; ?></a></i>
- <?php
- }
- ?>
- </div>
- <div id="right_side">
- <div class="ads">
- /*Advertisments go here*/
- Advertisment
- </div>
- <br />
- <div class="footer">
- <center><?php include('extras/footer.php'); ?></center>
- </div>
- </div>
- </div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement