Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>Xing's Blog</title>
- <link rel="icon" href="/favicon.ico" type="image/x-icon" />
- <link rel="stylesheet" type="text/css" href="/Style.css" />
- <link rel="stylesheet" type="text/css" href="/Blog/Style.css" />
- <meta name="description" content="Xing's Useless Site" />
- <meta name="author" content="Michael Xing" />
- <meta charset="UTF-8" />
- <script type="text/javascript" src="/Init.js"></script>
- </head>
- <body onload="InitScript('NBlog', 'Blog');">
- <a href="/"><img src="/Logo.png" alt="Xing's Site" /></a>
- <div class="MainContainer">
- <nav id="NavBar">
- <br /><hr />
- <h4>Navigation</h4>
- <hr />
- <noscript><img width="100px" height="100px" src="/Error.png" alt="ERROR"/><h1>Y U NO JAVA-<br />SCRIPT<br />?!?!?!</h1>You must have Javascript enabled to use this site. Sorry about that, but I'm too lazy to make all the pages PHP based.</noscript>
- </nav>
- <div class="MainContent">
- <br /><hr />
- <h1>Xing's Blog</h1>
- <hr />
- <!--Begin PHP Generated cr@p - sorry about the weird formatting-->
- <?php
- require 'Includes.php';
- $blogPosts = GetBlogPosts();
- foreach ($blogPosts as $post){
- $splitDate = explode("/", $post->datePosted);
- $realDate = $splitDate[2] . "-" . $splitDate[0] . "-" . $splitDate[1];
- $LP = strip_tags($post->post);
- $LP2 = explode(" ", $LP);
- unset($LP);
- echo"\n";
- echo "<h2><a class='BlogLink' href='/Blog/BlogPage.php?pid=" . $post->id . "'>";
- echo "<time datetime='" . $realDate . "'>" . $post->datePosted . "</time>" . " - " . $post->title;
- echo "</a></h2>";
- $i = 0;
- foreach($LP2 as $Word){
- echo $Word;
- unset($Word);
- if(++$i >= 50){
- break;
- } else{
- echo " ";
- }
- }
- echo "...";
- echo "<br /><br />";
- unset($splitDate);
- unset($realDate);
- unset($LP2);
- unset($post);
- }
- ?>
- <!--End PHP Generated cr@p - resume normal formatting-->
- <hr /><br />
- </div>
- </div>
- <br />
- <footer class="PageFooter" id="PageFooter">
- </footer>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement