Guest User

Untitled

a guest
Jan 22nd, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title>Templatefile</title>
  4. <style type="text/css">
  5. body {margin-left: 4%; margin-right: 4%; background-color: #000;}
  6. p {text-indent: 1.5em}
  7. p.c1 {text-align: center}
  8. p.c2 {color: #0D0; font-family: fixedsys, monopoint, terminal}
  9. h1.c1 {color: #0D0; font-family: fixedsys, monopoint, terminal}
  10. h2.mid {margin-top: 3em; margin-bottom:.4em; text-align:center}
  11. h3.h3 {color: #0D0; font-family: fixedsys, monopoint, terminal}
  12. h3.c2 {text-align: center}
  13. h4.mid {margin-top: 0em; margin-bottom: 0em; text-align:center}
  14. h5.h5 {color: #0D0; font-family: fixedsys, monopoint, terminal}
  15. div.c2 {text-align: center}
  16. div.c4 {color: #0D0; font-family: fixedsys, monopoint, terminal}
  17. span.c1 {font-size: 120%}
  18. span.c3 {color: #0D0; font-family: fixedsys, monopoint, terminal}
  19. </style>
  20. </head>
  21. <body>
  22. <div class="c2">
  23. <h1 class="c1">
  24.  
  25. Large Header, centered
  26. </h1>
  27. <h3 class="h3">
  28. Witty sub-header
  29. </h3>
  30. </div>
  31. <h5 class="h5">
  32. <span class="c1">
  33. Hey look, arbitrary extra title field. Chapters or sommat hey?
  34. </span>
  35.  
  36. </h5>
  37. <div>
  38. <p>
  39. <?php
  40. $articles = array();
  41. foreach (new DirectoryIterator('.') as $item) {
  42. $filename = $item->getPathname();
  43. if (strcasecmp(substr($filename, strrpos($filename, ".")), ".html") == 0){
  44. $articles[] = $filename;
  45. }
  46. }
  47.  
  48. sort($articles);
  49. reset($articles);
  50.  
  51. foreach ($articles as $article){
  52. echo "<div class='news'>".file_get_contents($article)."</div>";
  53. }
  54. ?>
  55. </div>
  56. </body>
  57. </html>
Add Comment
Please, Sign In to add comment