KXStudio Website https://kx.studio/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

203 lines
8.5KB

  1. <?php
  2. $SHOW_NOTE = TRUE;
  3. /*if (file_exists("/var/www/kxstudio/paste/"))
  4. {
  5. $ROOT = "/kxstudio";
  6. $SHOW_NOTE = FALSE;
  7. }
  8. else*/
  9. {
  10. $ROOT = "";
  11. $SHOW_NOTE = FALSE;
  12. }
  13. ?>
  14. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  15. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
  16. <head>
  17. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  18. <!--[if lt IE 7]>
  19. <meta http-equiv="imagetoolbar" content="no" />
  20. <![endif]-->
  21. <title><?php echo $PAGE_TITLE; ?></title>
  22. <link rel="copyright" href="http://creativecommons.org/licenses/publicdomain/" />
  23. <link rel="stylesheet" href="<?php echo $ROOT; ?>/css/style.fluid.css" type="text/css" media="screen" />
  24. <link rel="stylesheet" href="<?php echo $ROOT; ?>/css/style.css" type="text/css" media="screen" />
  25. <link rel="icon" type="image/png" href="<?php echo $ROOT; ?>/images/ico_kxstudio.png" />
  26. <link rel="shortcut icon" href="<?php echo $ROOT; ?>/favicon.ico" />
  27. <?php if ($PAGE_TYPE == "HOME") { ?>
  28. <script type="text/javascript" src="includes/jquery-1.4.2.min.js"></script>
  29. <script type="text/javascript" src="includes/responsiveslides.min.js"></script>
  30. <script type="text/javascript">
  31. $(window).load(function() {
  32. $(".rslides").responsiveSlides({
  33. auto: true,
  34. nav: true,
  35. pager: false,
  36. speed: 1000,
  37. timeout: 7500,
  38. namespace: "large-btns"
  39. });
  40. });
  41. </script>
  42. <?php } else if ($PAGE_TYPE == "PASTE") { ?>
  43. <link rel="stylesheet" href="<?php echo $ROOT; ?>/paste/kxstudio.css" type="text/css" media="screen" />
  44. <!-- Special Paste CSS -->
  45. <style type="text/css">
  46. html, body {
  47. color: white;
  48. }
  49. .paste_textarea_border {
  50. /*width: 100% - 1px;*/
  51. height: 300px;
  52. border: 1px solid gray;
  53. }
  54. <?php if ($show_paste) { ?>
  55. div .paste_canvas_area {
  56. font-family: monospace;
  57. }
  58. <?php } ?>
  59. <?php if ($show_numbers) { ?>
  60. div .paste_canvas_area {
  61. padding-left: 10px;
  62. }
  63. <?php } ?>
  64. textarea {
  65. width: 100%;
  66. height: 100%;
  67. margin: 0;
  68. padding: 0;
  69. border-width: 0;
  70. resize: none;
  71. }
  72. </style>
  73. <?php } else if ($PAGE_TYPE == "DONATIONS") { ?>
  74. <script type="text/javascript">
  75. /* <![CDATA[ */
  76. (function() {
  77. var s = document.createElement('script'), t = document.getElementsByTagName('script')[0];
  78. s.type = 'text/javascript';
  79. s.async = true;
  80. s.src = 'http://api.flattr.com/js/0.6/load.js?mode=auto';
  81. t.parentNode.insertBefore(s, t);
  82. })();
  83. /* ]]> */
  84. </script>
  85. <?php } ?>
  86. </head>
  87. <?php if ($PAGE_TYPE == "HOME") { ?>
  88. <body class="mediawiki ltr ns-0 ns-subject skin-bentofluid" style="min-width:1076px">
  89. <?php } else { ?>
  90. <body class="mediawiki ltr ns-0 ns-subject skin-bentofluid">
  91. <?php } ?>
  92. <a name="Top" id="Top"></a>
  93. <!-- Start: Header -->
  94. <div id="header">
  95. <div id="header-content" class="container_12">
  96. <a id="header-logo" href="<?php echo $ROOT; ?>/">
  97. <img src="<?php echo $ROOT; ?>/images/header-logo_mod.png" width="46" height="26" alt="Header Logo"/>
  98. </a>
  99. <a id="header-home" href="<?php echo $ROOT; ?>/" style="font-size:1.2em">Home</a>
  100. <ul id="global-navigation">
  101. <li id="item-apps"><a href="<?php echo $ROOT; ?>/Applications">Applications</a></li>
  102. <li id="item-plugins"><a href="<?php echo $ROOT; ?>/Plugins">Plugins</a></li>
  103. <li id="item-repos"><a href="<?php echo $ROOT; ?>/Repositories">Repositories</a></li>
  104. <li id="item-documentation"><a href="<?php echo $ROOT; ?>/Documentation">Documentation</a></li>
  105. <li id="item-donate"><a href="<?php echo $ROOT; ?>/Donations">Donations</a></li>
  106. <li id="item-downloads"><a href="<?php echo $ROOT; ?>/Downloads">Downloads</a></li>
  107. <li id="item-paste"><a href="<?php echo $ROOT; ?>/Paste">Paste</a></li>
  108. </ul>
  109. </div>
  110. </div>
  111. <!-- End: Header -->
  112. <?php if ($PAGE_TYPE == "HOME") { ?>
  113. <div id="rslides_container">
  114. <ul class="rslides" id="slider1">
  115. <li><!--<a href="">--><img src="<?php echo $ROOT; ?>/images/slider-applications.jpg" alt=""/><!--</a>--></li>
  116. <li><!--<a href="">--><img src="<?php echo $ROOT; ?>/images/slider-distribution.jpg" alt=""/><!--</a>--></li>
  117. <li><!--<a href="">--><img src="<?php echo $ROOT; ?>/images/slider-plugins.jpg" alt=""/><!--</a>--></li>
  118. </ul>
  119. </div>
  120. <?php } else { ?>
  121. <?php if ($PAGE_TYPE == "PASTE") { ?>
  122. <a href="http://qbnz.com/highlighter" class="external text" rel="nofollow" target="_blank" style="position:absolute; top:37px; right:5%;"><img src="<?php echo $ROOT; ?>/images/powered-by-geshi.png" alt="Powered by GeSHi"/></a>
  123. <?php } ?>
  124. <div id="subheader" class="container_16">
  125. <div id="breadcrump" class="grid_12 alpha">
  126. <a href="<?php echo $ROOT; ?>/" title="Home"><img src="<?php echo $ROOT; ?>/images/home_grey.png" width="16" height="16" alt="Home" /> KXStudio </a>
  127. <?php for ($i = 0; $i < count($PAGE_SOURCE_1); $i++) { ?>
  128. &gt; <a href="<?php echo $ROOT . $PAGE_SOURCE_1[$i]; ?>"><?php echo $PAGE_SOURCE_2[$i]; ?></a>
  129. <?php } ?>
  130. </div>
  131. </div>
  132. <?php } ?>
  133. <!-- Start: Main Content Area -->
  134. <div id="content" class="container_16 content-wrapper">
  135. <?php if ($PAGE_TYPE == "HOME") { ?>
  136. <div id="some-content" class="box box-shadow grid_13 clearfix">
  137. <?php } else { ?>
  138. <div id="some-content" class="box box-shadow grid_77 clearfix">
  139. <?php } ?>
  140. <!-- Start: Box header -->
  141. <div class="box-header header-tabs">
  142. <ul>
  143. <li><a href="#Top">Top</a></li>
  144. <?php if ($PAGE_TYPE == "APPLICATION") { ?>
  145. <li><a href="#Interface">Interface</a></li>
  146. <li><a href="#Usage">Usage</a></li>
  147. <li><a href="#Download">Download</a></li>
  148. <?php } else if ($PAGE_TYPE == "APPLICATION_NU") { ?>
  149. <li><a href="#Interface">Interface</a></li>
  150. <li><a href="#Download">Download</a></li>
  151. <?php } else if ($PAGE_TYPE == "DOWNLOADS") { ?>
  152. <li><a href="#Artwork">Artwork</a></li>
  153. <li><a href="#Binaries">Binaries</a></li>
  154. <li><a href="#SourceCode">Source Code</a></li>
  155. <li><a href="#LiveDVD">Live-DVD</a></li>
  156. <li><a href="#AllDownloads">All Downloads</a></li>
  157. <?php } else if ($PAGE_TYPE == "PASTE") { ?>
  158. <li><a href="<?php echo $ROOT; ?>/Paste" title="Create new paste">New Paste</a></li>
  159. <?php if ($show_paste && ! $is_error) { ?>
  160. <li><a href="<?php echo $ROOT; ?>/Paste/repo/<?php echo $paste_id; ?>" target="blank" title="View RAW">View RAW</a></li>
  161. <li><a href="<?php echo $ROOT; ?>/Paste/download.php?id=<?php echo $paste_id; ?>" title="Download">Download</a></li>
  162. <?php } ?>
  163. <?php } ?>
  164. </ul>
  165. </div>
  166. <div id="contentSub"></div>
  167. <!-- End: Box header -->
  168. <div class="alpha omega paste_canvas_area">
  169. <?php if ($PAGE_TYPE == "HOME") { ?>
  170. <h1><span class="mw-headline"> About KXStudio </span></h1>
  171. <?php } else if ($PAGE_TYPE != "PASTE") { ?>
  172. <h1><span class="mw-headline"> <?php
  173. for ($i = 0; $i < count($PAGE_SOURCE_2); $i++)
  174. {
  175. if ($i == 0)
  176. {
  177. if ($PAGE_TYPE == "NONKXSTUDIO")
  178. {
  179. echo $PAGE_SOURCE_2[$i];
  180. continue;
  181. }
  182. echo "KXStudio";
  183. }
  184. echo "&nbsp;: " . $PAGE_SOURCE_2[$i];
  185. }
  186. ?> </span></h1>
  187. <?php } ?>
  188. <?php if ($PAGE_TYPE != "PASTE" && $SHOW_NOTE) { ?>
  189. <p style="color:#fa3a3a;">
  190. NOTE: Parts of this website are currently being rewritten, some links might not work at the moment.
  191. </p>
  192. <?php } ?>
  193. <!-- - - - - - - - Begin Content Area - - - - - - - -->