Advertisement
Guest User

Xing's Blog - BlogPage.php

a guest
Dec 9th, 2013
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.10 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <title>Xing's Blog</title>
  5.         <link rel="icon" href="/favicon.ico" type="image/x-icon" />
  6.         <link rel="stylesheet" type="text/css" href="/Style.css" />
  7.         <link rel="stylesheet" type="text/css" href="/Blog/Style.css" />
  8.         <meta name="description" content="Xing's Useless Site" />
  9.         <meta name="author" content="Michael Xing" />
  10.         <meta charset="UTF-8" />
  11.         <script type="text/javascript" src="/Init.js"></script>
  12.     </head>
  13.  
  14.     <body onload="InitScript('NBlog', 'Blog');">
  15.         <a href="/"><img src="/Logo.png" alt="Xing's Site" /></a>
  16.         <div class="MainContainer">
  17.             <nav id="NavBar">
  18.                 <br /><hr />
  19.                 <h4>Navigation</h4>
  20.                 <hr />
  21.                 <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>
  22.             </nav>
  23.  
  24.             <div class="MainContent">
  25.                 <br /><hr />
  26.                
  27.                 <article>
  28.                     <!--Begin PHP Generated Cr@p - Sorry About The Weird Formatting-->
  29.                     <?php
  30.                         require 'Includes.php';  
  31.                         $PostId = $_GET["pid"];
  32.                        
  33.                         $blogPost = GetBlogPosts($PostId, null);
  34.                        
  35.                         foreach ($blogPost as $post){  
  36.                             $splitDate = explode("/", $post->datePosted);
  37.                             $realDate = $splitDate[2] . "-" . $splitDate[0] . "-" . $splitDate[1];
  38.                            
  39.                             echo "<h1><time datetime='" . $realDate . "'>" . $post->datePosted . "</time> - " . $post->title . "</h1>";
  40.                             echo "<hr />";
  41.                             echo "<h3><a class='BlogLink' href='/Blog'>&#8592; Back to Blog</a></h3>";
  42.                             echo "<hr />";
  43.                             echo $post->post;
  44.                             echo "<span class='ByLine'><b>Posted By:</b> " . $post->author . " <b>- Tags:</b> " . $post->tags . "</span>";
  45.                         }
  46.                     ?>
  47.                    
  48.                     <!--End PHP Generated Cr@p - Resume Normal Formatting-->
  49.                 </article>
  50.                 <hr />
  51.                
  52.                 <h3><a class="BlogLink" href="/Blog">&#8592; Back to Blog</a></h3>
  53.                
  54.                 <hr /><br />
  55.             </div>
  56.         </div>
  57.        
  58.         <br />
  59.         <footer class="PageFooter" id="PageFooter">
  60.            
  61.                
  62.         </footer>
  63.        
  64.     </body>
  65. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement