"OdenseTrack" is a school assignment/project from AspIT https://aspit.dfine.net/odensetrack
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122232425262728
  1. <?php
  2. if (!isset($_GET['n'])) {
  3. header('Location: ' . Config::$sys_url . '?page=error');
  4. die(); // No newsitem defined. HALT!
  5. }
  6. $result = Get::NewsArticle($_GET['n']); // Get the newsarticle
  7. $setup = array();
  8. $setup['title'] = $result['title'];
  9. $setup['headline'] = "Odense Track - Nyheder";
  10. $setup['keywords'] = "nyheder,news,nyhed,banenyt,nyt";
  11. $setup['description'] = "Oversigt over nyheder vedr. Odense Track";
  12. Design::header($setup, 0);
  13. ?>
  14. <div class="page">
  15. <h1><?php echo $result['title']; ?></h1><div class="newstitle pull_right"><?php echo date('H:i d/m-Y', $result['time']); ?><span class="seperator"></span>Skrevet af <?php echo $result['realname']; ?></div>
  16. <div class="border"></div>
  17. <div class="newsbody">
  18. <?php echo strip_tags($result['content'], '<br><p><b><i><u><img><a><strong><pre><em><span><div><h1><h2><h3><h4><h5><h6><h7><sub><sup><blockquote><code>'); ?>
  19. </div>
  20. </div>
  21. <?php
  22. Design::footer(false);