index.php 1.7 KB

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