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.

240 lines
10.0KB

  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. <?php } ?>
  31. <script type="text/javascript">
  32. <?php if ($PAGE_TYPE == "HOME") { ?>
  33. $(window).load(function(){
  34. $(".rslides").responsiveSlides({
  35. auto: true,
  36. nav: true,
  37. pager: false,
  38. speed: 1000,
  39. timeout: 7500,
  40. namespace: "large-btns"
  41. });
  42. });
  43. <?php } ?>
  44. function itemSoftwareClicked(event){
  45. event.stopPropagation();
  46. var objSoftwareMenu = document.getElementById("div_menuSoftware");
  47. if (objSoftwareMenu.style.visibility != "visible")
  48. {
  49. var leftPos = document.getElementById("item-soft").getBoundingClientRect().left - 1;
  50. objSoftwareMenu.style.left = "" + leftPos + "px";
  51. objSoftwareMenu.style.visibility = "visible";
  52. }
  53. else
  54. {
  55. objSoftwareMenu.style.visibility = "hidden";
  56. }
  57. return false;
  58. };
  59. function bodyClicked(){
  60. var objSoftwareMenu = document.getElementById("div_menuSoftware");
  61. if (objSoftwareMenu.style.visibility == "visible")
  62. objSoftwareMenu.style.visibility = "hidden";
  63. return true;
  64. };
  65. </script>
  66. <?php if ($PAGE_TYPE == "DONATIONS") { ?>
  67. <script type="text/javascript">
  68. /* <![CDATA[ */
  69. (function() {
  70. var s = document.createElement('script'), t = document.getElementsByTagName('script')[0];
  71. s.type = 'text/javascript';
  72. s.async = true;
  73. s.src = 'http://api.flattr.com/js/0.6/load.js?mode=auto';
  74. t.parentNode.insertBefore(s, t);
  75. })();
  76. /* ]]> */
  77. </script>
  78. <?php } else if ($PAGE_TYPE == "PASTE") { ?>
  79. <link rel="stylesheet" href="<?php echo $ROOT; ?>/paste/kxstudio.css" type="text/css" media="screen" />
  80. <!-- Special Paste CSS -->
  81. <style type="text/css">
  82. html, body {
  83. color: white;
  84. }
  85. .paste_textarea_border {
  86. height: 300px;
  87. border: 1px solid gray;
  88. }
  89. <?php if ($show_paste) { ?>
  90. div .paste_canvas_area {
  91. font-family: monospace;
  92. }
  93. <?php } ?>
  94. <?php if ($show_numbers) { ?>
  95. div .paste_canvas_area {
  96. padding-left: 10px;
  97. }
  98. <?php } ?>
  99. textarea {
  100. width: 100%;
  101. height: 100%;
  102. margin: 0;
  103. padding: 0;
  104. border-width: 0;
  105. resize: none;
  106. }
  107. </style>
  108. <?php } ?>
  109. </head>
  110. <?php if ($PAGE_TYPE == "HOME") { ?>
  111. <body class="mediawiki ltr ns-0 ns-subject skin-bentofluid" style="min-width:1080px" onClick="return bodyClicked();">
  112. <?php } else { ?>
  113. <body class="mediawiki ltr ns-0 ns-subject skin-bentofluid" style="min-width:1080px" onClick="return bodyClicked();">
  114. <?php } ?>
  115. <!-- Software sub menu -->
  116. <div id="div_menuSoftware">
  117. <p><a href="<?php echo $ROOT; ?>/Applications"><img src="<?php echo $ROOT; ?>/images/ico_cadence.png" alt=""/> &nbsp; Applications</a></p>
  118. <!-- <div></div> -->
  119. <p><a href="<?php echo $ROOT; ?>/Plugins"><img src="<?php echo $ROOT; ?>/images/ico_distrho.png" alt=""/> &nbsp; Plugins</a></p>
  120. </div>
  121. <!-- Top link -->
  122. <a name="Top" id="Top"></a>
  123. <!-- Start: Header -->
  124. <div id="header">
  125. <div id="header-content" class="container_12">
  126. <a id="header-logo" href="<?php echo $ROOT; ?>/">
  127. <img src="<?php echo $ROOT; ?>/images/header-logo_mod.png" width="46" height="26" alt="Header Logo"/>
  128. </a>
  129. <a id="header-home" href="<?php echo $ROOT; ?>/" style="font-size:1.2em">Home</a>
  130. <ul id="global-navigation">
  131. <li id="item-news"><a href="<?php echo $ROOT; ?>/News">News</a></li>
  132. <li id="item-soft"><a href="#" onClick="return itemSoftwareClicked(event);">Software &#9660;</a></li>
  133. <li id="item-repos"><a href="<?php echo $ROOT; ?>/Repositories">Repositories</a></li>
  134. <li id="item-docs"><a href="<?php echo $ROOT; ?>/Documentation">Documentation</a></li>
  135. <li id="item-donate"><a href="<?php echo $ROOT; ?>/Donations">Donations</a></li>
  136. <li id="item-downloads"><a href="<?php echo $ROOT; ?>/Downloads">Downloads</a></li>
  137. <li id="item-paste"><a href="<?php echo $ROOT; ?>/Paste">Paste</a></li>
  138. </ul>
  139. </div>
  140. </div>
  141. <!-- End: Header -->
  142. <?php if ($PAGE_TYPE == "HOME") { ?>
  143. <div id="rslides_container">
  144. <ul class="rslides" id="slider1">
  145. <li><a href="<?php echo $ROOT; ?>/Repositories:Applications"><img src="<?php echo $ROOT; ?>/images/slider-applications.jpg" alt=""/></a></li>
  146. <li><a href="<?php echo $ROOT; ?>/Documentation:KXStudio12043:About"><img src="<?php echo $ROOT; ?>/images/slider-distribution.jpg" alt=""/></a></li>
  147. <li><a href="<?php echo $ROOT; ?>/Plugins"><img src="<?php echo $ROOT; ?>/images/slider-plugins.jpg" alt=""/></a></li>
  148. </ul>
  149. </div>
  150. <?php } else { ?>
  151. <?php if ($PAGE_TYPE == "PASTE") { ?>
  152. <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>
  153. <?php } ?>
  154. <div id="subheader" class="container_16">
  155. <div id="breadcrump" class="grid_12 alpha">
  156. <a href="<?php echo $ROOT; ?>/" title="Home"><img src="<?php echo $ROOT; ?>/images/home_grey.png" width="16" height="16" alt="Home" /> KXStudio </a>
  157. <?php for ($i = 0; $i < count($PAGE_SOURCE_1); $i++) { ?>
  158. &gt; <a href="<?php echo $ROOT . $PAGE_SOURCE_1[$i]; ?>"><?php echo $PAGE_SOURCE_2[$i]; ?></a>
  159. <?php } ?>
  160. </div>
  161. </div>
  162. <?php } ?>
  163. <!-- Start: Main Content Area -->
  164. <div id="content" class="container_16 content-wrapper">
  165. <?php if ($PAGE_TYPE == "HOME") { ?>
  166. <div id="some-content" class="box box-shadow grid_13 clearfix">
  167. <?php } else { ?>
  168. <div id="some-content" class="box box-shadow grid_77 clearfix">
  169. <?php } ?>
  170. <!-- Start: Box header -->
  171. <div class="box-header header-tabs">
  172. <ul>
  173. <li><a href="#Top">Top</a></li>
  174. <?php if ($PAGE_TYPE == "APPLICATION") { ?>
  175. <li><a href="#Interface">Interface</a></li>
  176. <li><a href="#Usage">Usage</a></li>
  177. <li><a href="#Download">Download</a></li>
  178. <?php } else if ($PAGE_TYPE == "APPLICATION_NU") { ?>
  179. <li><a href="#Interface">Interface</a></li>
  180. <li><a href="#Download">Download</a></li>
  181. <?php } else if ($PAGE_TYPE == "DOWNLOADS") { ?>
  182. <li><a href="#Artwork">Artwork</a></li>
  183. <li><a href="#Binaries">Binaries</a></li>
  184. <li><a href="#SourceCode">Source Code</a></li>
  185. <li><a href="#LiveDVD">Live-DVD</a></li>
  186. <li><a href="#AllDownloads">All Downloads</a></li>
  187. <?php } else if ($PAGE_TYPE == "PASTE") { ?>
  188. <li><a href="<?php echo $ROOT; ?>/Paste" title="Create new paste">New Paste</a></li>
  189. <?php if ($show_paste && ! $is_error) { ?>
  190. <li><a href="<?php echo $ROOT; ?>/Paste/repo/<?php echo $paste_id; ?>" target="blank" title="View RAW">View RAW</a></li>
  191. <li><a href="<?php echo $ROOT; ?>/Paste/download.php?id=<?php echo $paste_id; ?>" title="Download">Download</a></li>
  192. <?php } ?>
  193. <?php } ?>
  194. </ul>
  195. </div>
  196. <div id="contentSub"></div>
  197. <!-- End: Box header -->
  198. <div class="alpha omega paste_canvas_area">
  199. <?php if ($PAGE_TYPE == "HOME") { ?>
  200. <h1><span class="mw-headline"> About KXStudio </span></h1>
  201. <?php } else if ($PAGE_TYPE != "PASTE") { ?>
  202. <h1><span class="mw-headline"> <?php
  203. for ($i = 0; $i < count($PAGE_SOURCE_2); $i++)
  204. {
  205. if ($i == 0)
  206. {
  207. if ($PAGE_TYPE == "NONKXSTUDIO")
  208. {
  209. echo $PAGE_SOURCE_2[$i];
  210. continue;
  211. }
  212. echo "KXStudio";
  213. }
  214. echo "&nbsp;: " . $PAGE_SOURCE_2[$i];
  215. }
  216. ?> </span></h1>
  217. <?php } ?>
  218. <?php if ($PAGE_TYPE != "PASTE" && $SHOW_NOTE) { ?>
  219. <p style="color:#fa3a3a;">
  220. NOTE: Parts of this website are currently being rewritten, some links might not work at the moment.
  221. </p>
  222. <?php } ?>
  223. <!-- - - - - - - - Begin Content Area - - - - - - - -->