index.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <!doctype html>
  2. <html dir="ltr" lang="en-US">
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta name="description" content="tCMS Control Panel"/>
  6. <meta name="viewport" content="width=device-width">
  7. <link rel="stylesheet" type="text/css" href="../../css/structure.css" />
  8. <link rel="stylesheet" type="text/css" href="../../css/screen.css" media="screen" />
  9. <link rel="stylesheet" type="text/css" href="../../css/print.css" media="print" />
  10. <link rel="icon" type="image/vnd.microsoft.icon" href="../../img/icon/favicon.ico" />
  11. <title>tCMS Admin</title>
  12. <?php
  13. $config = json_decode(file_get_contents('config/main.json'),true);
  14. ?>
  15. </head>
  16. <body>
  17. <div id="topkek" style="text-align: center; vertical-align: middle;">
  18. <button title="Menu" id="clickme">&#9776;</button>
  19. <span id="configbar">
  20. <a class="topbar" title="Edit Various Settings" href="index.php">Settings</a>
  21. <a class="topbar" title="Blog Writer" href="index.php?nav=1">Blog Writer</a>
  22. <a class="topbar" title="Pop off about Stuff" href="index.php?nav=2">MicroBlogger</a>
  23. </span>
  24. </div>
  25. <div id="kontent" style="display: block;">
  26. <?php
  27. if (!empty($_SERVER["HTTPS"])) {
  28. $protocol = "https";
  29. } else {
  30. $protocol = "http";
  31. }
  32. if (empty($_GET['nav'])) {
  33. $kontent = "settings.inc";
  34. }
  35. elseif ($_GET['nav'] == 1) {
  36. $kontent = "bengine.inc";
  37. }
  38. elseif ($_GET['nav'] == 2) {
  39. $kontent = "mbengine.inc";
  40. }
  41. include $kontent;
  42. ?>
  43. </div>
  44. </body>
  45. </html>