index.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. extract(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 ($_SERVER["HTTPS"] != "") {
  28. $protocol = "https";
  29. } else {
  30. $protocol = "http";
  31. }
  32. $nav = $_GET['nav'];
  33. if (empty($nav)) {
  34. $kontent = "settings.inc";
  35. }
  36. elseif ($nav == 1) {
  37. $kontent = "bengine.inc";
  38. }
  39. elseif ($nav == 2) {
  40. $kontent = "mbengine.inc";
  41. }
  42. include $kontent;
  43. ?>
  44. </div>
  45. </body>
  46. </html>