index.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. <link rel="stylesheet" type="text/css" href="../../css/structure.css" />
  7. <link rel="stylesheet" type="text/css" href="../../css/screen.css" media="screen" />
  8. <link rel="stylesheet" type="text/css" href="../../css/print.css" media="print" />
  9. <link rel="icon" type="image/vnd.microsoft.icon" href="../../img/icon/favicon.ico" />
  10. <title>tCMS Admin</title>
  11. <?php
  12. extract(json_decode(file_get_contents('config/main.json'),true));
  13. ?>
  14. <script src="/sys/admin/index.js"></script>
  15. </head>
  16. <body>
  17. <div id="topkek" style="text-align: center; vertical-align: middle;">
  18. <span id="configbar">
  19. <a class="topbar" title="Edit Various Settings" href="index.php">Settings</a>
  20. <a class="topbar" title="Blog Writer" href="index.php?nav=1">Blog Writer</a>
  21. <a class="topbar" title="Pop off about Stuff" href="index.php?nav=2">MicroBlogger</a>
  22. </span>
  23. <button style="display: none;" id="menubutton" onClick="showMenu();return false;">
  24. &#9776;
  25. </button>
  26. </div>
  27. <div id="littlemenu" style="display: none;">
  28. </div>
  29. <div id="kontent" style="display: block;">
  30. <?php
  31. if ($_SERVER["HTTPS"] != "") {
  32. $protocol = "https";
  33. } else {
  34. $protocol = "http";
  35. }
  36. $nav = $_GET['nav'];
  37. if (empty($nav)) {
  38. $kontent = "settings.inc";
  39. }
  40. elseif ($nav == 1) {
  41. $kontent = "bengine.inc";
  42. }
  43. elseif ($nav == 2) {
  44. $kontent = "mbengine.inc";
  45. }
  46. include $kontent;
  47. ?>
  48. </div>
  49. </body>
  50. </html>