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.

header.php 8.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  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. <div id="subheader" class="container_16">
  122. <div id="breadcrump" class="grid_12 alpha">
  123. <a href="<?php echo $ROOT; ?>/" title="Home"><img src="<?php echo $ROOT; ?>/images/home_grey.png" width="16" height="16" alt="Home" /> KXStudio </a>
  124. <?php for ($i = 0; $i < count($PAGE_SOURCE_1); $i++) { ?>
  125. &gt; <a href="<?php echo $ROOT . $PAGE_SOURCE_1[$i]; ?>"><?php echo $PAGE_SOURCE_2[$i]; ?></a>
  126. <?php } ?>
  127. </div>
  128. </div>
  129. <?php } ?>
  130. <!-- Start: Main Content Area -->
  131. <div id="content" class="container_16 content-wrapper">
  132. <?php if ($PAGE_TYPE == "HOME") { ?>
  133. <div id="some-content" class="box box-shadow grid_13 clearfix">
  134. <?php } else { ?>
  135. <div id="some-content" class="box box-shadow grid_77 clearfix">
  136. <?php } ?>
  137. <!-- Start: Box header -->
  138. <div class="box-header header-tabs">
  139. <ul>
  140. <li><a href="#Top">Top</a></li>
  141. <?php if ($PAGE_TYPE == "APPLICATION") { ?>
  142. <li><a href="#Interface">Interface</a></li>
  143. <li><a href="#Usage">Usage</a></li>
  144. <li><a href="#Download">Download</a></li>
  145. <?php } else if ($PAGE_TYPE == "APPLICATION_NU") { ?>
  146. <li><a href="#Interface">Interface</a></li>
  147. <li><a href="#Download">Download</a></li>
  148. <?php } else if ($PAGE_TYPE == "DOWNLOADS") { ?>
  149. <li><a href="#Artwork">Artwork</a></li>
  150. <li><a href="#Binaries">Binaries</a></li>
  151. <li><a href="#SourceCode">Source Code</a></li>
  152. <li><a href="#LiveDVD">Live-DVD</a></li>
  153. <li><a href="#AllDownloads">All Downloads</a></li>
  154. <?php } else if ($PAGE_TYPE == "PASTE") { ?>
  155. <li><a href="<?php echo $ROOT; ?>/Paste" title="Create new paste">New Paste</a></li>
  156. <?php if ($show_paste && ! $is_error) { ?>
  157. <li><a href="<?php echo $ROOT; ?>/Paste/repo/<?php echo $paste_id; ?>" target="blank" title="View RAW">View RAW</a></li>
  158. <li><a href="<?php echo $ROOT; ?>/Paste/download.php?id=<?php echo $paste_id; ?>" title="Download">Download</a></li>
  159. <?php } ?>
  160. <?php } ?>
  161. </ul>
  162. </div>
  163. <div id="contentSub"></div>
  164. <!-- End: Box header -->
  165. <div class="alpha omega paste_canvas_area">
  166. <?php if ($PAGE_TYPE == "HOME") { ?>
  167. <h1><span class="mw-headline"> About KXStudio </span></h1>
  168. <?php } else if ($PAGE_TYPE != "PASTE") { ?>
  169. <h1><span class="mw-headline"> <?php
  170. for ($i = 0; $i < count($PAGE_SOURCE_2); $i++)
  171. {
  172. if ($i == 0)
  173. {
  174. if ($PAGE_TYPE == "NONKXSTUDIO")
  175. {
  176. echo $PAGE_SOURCE_2[$i];
  177. continue;
  178. }
  179. echo "KXStudio";
  180. }
  181. echo "&nbsp;: " . $PAGE_SOURCE_2[$i];
  182. }
  183. ?> </span></h1>
  184. <?php } ?>
  185. <?php if ($PAGE_TYPE != "PASTE" && $SHOW_NOTE) { ?>
  186. <p style="color:#fa3a3a;">
  187. NOTE: Parts of this website are currently being rewritten, some links might not work at the moment.
  188. </p>
  189. <?php } ?>
  190. <!-- - - - - - - - Begin Content Area - - - - - - - -->