index.php 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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. <?php
  50. if(file_exists($_SERVER['DOCUMENT_ROOT'].'/'.$basedir.'/css/custom/screen.css')) {
  51. echo '<link rel="stylesheet" type="text/css" href="css/custom/screen.css" />';
  52. }
  53. if(file_exists($_SERVER['DOCUMENT_ROOT'].'/'.$basedir.'/css/custom/print.css')) {
  54. echo '<link rel="stylesheet" type="text/css" href="css/custom/print.css" />';
  55. }
  56. ?>
  57. <link rel="icon" type="image/vnd.microsoft.icon" href="img/icon/favicon.ico" />
  58. <title>
  59. <?php
  60. echo $htmltitle;
  61. ?>
  62. </title>
  63. </head>
  64. <body>
  65. <div id="topkek">
  66. <?php
  67. //Site's Titlebar comes in here
  68. include $toptitle;
  69. ?>
  70. </div>
  71. <div id="littlemenu">
  72. </div>
  73. <div id="kontainer">
  74. <div id="leftbar" class="kontained">
  75. <?php
  76. include $leftbar;
  77. ?>
  78. </div>
  79. <div id="kontent" class="kontained">
  80. <?php
  81. /*$kontent basically is just a handler for what PHP include needs to be loaded
  82. based on the context passed via GET params - if you wanna add another, add an
  83. elseif case then specify the next number in the nav index along with the
  84. corresponding file to include above.*/
  85. if (empty($nav)) {
  86. $kontent = $home;
  87. }
  88. elseif ($nav == 1) {
  89. $kontent = $fileshare;
  90. }
  91. elseif ($nav == 2) {
  92. $kontent = $microblog;
  93. $editable = 0;
  94. }
  95. elseif ($nav == 3) {
  96. $kontent = $blog;
  97. }
  98. elseif ($nav == 4) {
  99. $kontent = $about;
  100. }
  101. elseif ($nav == 5) {
  102. $kontent = $postloader;
  103. }
  104. elseif ($nav == 6) {
  105. $kontent = $codeloader;
  106. }
  107. elseif ($nav == 7) {
  108. $kontent = $audioloader;
  109. }
  110. elseif ($nav == 8) {
  111. $kontent = $videoloader;
  112. }
  113. elseif ($nav == 9) {
  114. $kontent = $imgloader;
  115. }
  116. elseif ($nav == 10) {
  117. $kontent = $docloader;
  118. }
  119. //Main Content Display Frame goes below
  120. include $kontent;
  121. ?>
  122. </div>
  123. <div id="rightbar" class="kontained">
  124. <?php
  125. include $rightbar;
  126. ?>
  127. </div>
  128. </div>
  129. <div id="footbar">
  130. <?php
  131. include $footbar;
  132. ?>
  133. </div>
  134. </body>
  135. </html>