index.php 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <!doctype html>
  2. <html dir="ltr" lang="en-US">
  3. <head>
  4. <?php
  5. //SRSBIZNUSS below - you probably shouldn't edit this unless you know what you are doing
  6. //GET validation/sanitation and parameter variable definitions below
  7. if (!empty($_SERVER["HTTPS"])) {
  8. $protocol = "http";
  9. } else {
  10. $protocol = "https";
  11. }
  12. if (empty($_GET['nav'])) {
  13. $nav = '';
  14. }
  15. else {
  16. $nav = $_GET['nav'];
  17. }
  18. if (empty($_GET['post'])) {
  19. $post = '';
  20. }
  21. else {
  22. $post = $_GET['post'];
  23. }
  24. //input sanitization
  25. $pwd=$post;
  26. include 'sys/fileshare/sanitize.inc';
  27. if ($san == 1) {
  28. return(0);
  29. };
  30. extract(json_decode(file_get_contents('sys/admin/config/main.json'),true));
  31. ?>
  32. <meta charset="utf-8" />
  33. <meta name="description" content="A Simple CMS by teodesian.net"/>
  34. <meta name="viewport" content="width=device-width">
  35. <link rel="stylesheet" type="text/css" href="css/structure.css" />
  36. <link rel="stylesheet" type="text/css" href="css/screen.css" media="screen" />
  37. <link rel="stylesheet" type="text/css" href="css/print.css" media="print" />
  38. <link rel="stylesheet" type="text/css" href="css/avatars.css" />
  39. <!--Compatibility Stylesheets-->
  40. <!--[if lte IE 8]>
  41. <link rel="stylesheet" type="text/css" href="css/compat/ie.css">
  42. <![endif]-->
  43. <!--[if lte IE 7]>
  44. <link rel="stylesheet" type="text/css" href="css/compat/ie6-7.css">
  45. <[endif]-->
  46. <!--[if IE 6]>
  47. <link rel="stylesheet" type="text/css" href="css/compat/ie6.css">
  48. <![endif]-->
  49. <link rel="icon" type="image/vnd.microsoft.icon" href="img/icon/favicon.ico" />
  50. <title>
  51. <?php
  52. echo $htmltitle;
  53. ?>
  54. </title>
  55. </head>
  56. <body>
  57. <div id="topkek">
  58. <?php
  59. //Site's Titlebar comes in here
  60. include $toptitle;
  61. ?>
  62. </div>
  63. <div id="littlemenu">
  64. </div>
  65. <div id="kontainer">
  66. <div id="leftbar" class="kontained">
  67. <?php
  68. include $leftbar;
  69. ?>
  70. </div>
  71. <div id="kontent" class="kontained">
  72. <?php
  73. /*$kontent basically is just a handler for what PHP include needs to be loaded
  74. based on the context passed via GET params - if you wanna add another, add an
  75. elseif case then specify the next number in the nav index along with the
  76. corresponding file to include above.*/
  77. if (empty($nav)) {
  78. $kontent = $home;
  79. }
  80. elseif ($nav == 1) {
  81. $kontent = $fileshare;
  82. }
  83. elseif ($nav == 2) {
  84. $kontent = $microblog;
  85. $editable = 0;
  86. }
  87. elseif ($nav == 3) {
  88. $kontent = $blog;
  89. }
  90. elseif ($nav == 4) {
  91. $kontent = $about;
  92. }
  93. elseif ($nav == 5) {
  94. $kontent = $postloader;
  95. }
  96. elseif ($nav == 6) {
  97. $kontent = $codeloader;
  98. }
  99. elseif ($nav == 7) {
  100. $kontent = $audioloader;
  101. }
  102. elseif ($nav == 8) {
  103. $kontent = $videoloader;
  104. }
  105. elseif ($nav == 9) {
  106. $kontent = $imgloader;
  107. }
  108. elseif ($nav == 10) {
  109. $kontent = $docloader;
  110. }
  111. //Main Content Display Frame goes below
  112. include $kontent;
  113. ?>
  114. </div>
  115. <div id="rightbar" class="kontained">
  116. <?php
  117. include $rightbar;
  118. ?>
  119. </div>
  120. </div>
  121. <div id="footbar">
  122. <?php
  123. include $footbar;
  124. ?>
  125. </div>
  126. </body>
  127. </html>