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.

309 lines
14KB

  1. <?php
  2. $SHOW_NOTE = TRUE;
  3. if (file_exists("/Shared/Personal/"))
  4. {
  5. $ROOT = "/kxstudio";
  6. $SHOW_NOTE = FALSE;
  7. }
  8. else
  9. {
  10. $ROOT = "";
  11. $SHOW_NOTE = FALSE;
  12. }
  13. if ($PAGE_TYPE != "PASTE" && $PAGE_TYPE != "DONATIONS") {
  14. require "donate/config.php";
  15. require "donate/connect.php";
  16. $cur_amount = 0.0;
  17. if ($db_link) {
  18. $sql_donations = mysql_query("SELECT * FROM donations WHERE MONTH(dt) = MONTH(NOW()) AND YEAR(dt) = YEAR(NOW())");
  19. if (mysql_num_rows($sql_donations)) {
  20. while ($sql_row = mysql_fetch_assoc($sql_donations)) {
  21. $cur_amount += $sql_row["amount"];
  22. }
  23. }
  24. }
  25. $cur_percent = $cur_amount / 300.0 * 100.0;
  26. $cur_amount = intval($cur_amount);
  27. if ($cur_percent > 100.0) {
  28. $cur_percent = 100.0;
  29. }
  30. }
  31. ?>
  32. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  33. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
  34. <head>
  35. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  36. <!--[if lt IE 7]>
  37. <meta http-equiv="imagetoolbar" content="no" />
  38. <![endif]-->
  39. <title><?php echo $PAGE_TITLE; ?></title>
  40. <link rel="copyright" href="http://creativecommons.org/licenses/publicdomain/" />
  41. <link rel="stylesheet" href="<?php echo $ROOT; ?>/css/style.fluid.css" type="text/css" media="screen" />
  42. <link rel="stylesheet" href="<?php echo $ROOT; ?>/css/style.css" type="text/css" media="screen" />
  43. <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Raleway:200,700,800,400" type="text/css" media="screen" />
  44. <link rel="icon" type="image/png" href="<?php echo $ROOT; ?>/images/ico_kxstudio.png" />
  45. <link rel="shortcut icon" href="<?php echo $ROOT; ?>/favicon.ico" />
  46. <?php if ($PAGE_TYPE == "HOME") { ?>
  47. <script type="text/javascript" src="includes/jquery-1.4.2.min.js"></script>
  48. <script type="text/javascript" src="includes/responsiveslides.min.js"></script>
  49. <?php } ?>
  50. <script type="text/javascript">
  51. <?php if ($PAGE_TYPE == "HOME") { ?>
  52. $(window).load(function(){
  53. $(".rslides").responsiveSlides({
  54. auto: true,
  55. nav: true,
  56. pager: false,
  57. speed: 1000,
  58. timeout: 7500,
  59. namespace: "large-btns"
  60. });
  61. });
  62. <?php } ?>
  63. function closeAllMenus(){
  64. var objSoftwareMenu = document.getElementById("div_menuSoftware");
  65. var objRepositoriesMenu = document.getElementById("div_menuRepositories");
  66. var objSupportMenu = document.getElementById("div_menuSupport");
  67. var objCommunityMenu = document.getElementById("div_menuCommunity");
  68. if (objSoftwareMenu.style.visibility == "visible")
  69. objSoftwareMenu.style.visibility = "hidden";
  70. if (objRepositoriesMenu.style.visibility == "visible")
  71. objRepositoriesMenu.style.visibility = "hidden";
  72. if (objSupportMenu.style.visibility == "visible")
  73. objSupportMenu.style.visibility = "hidden";
  74. if (objCommunityMenu.style.visibility == "visible")
  75. objCommunityMenu.style.visibility = "hidden";
  76. };
  77. function menuItemClicked(event, menu, itemName){
  78. event.stopPropagation();
  79. closeAllMenus();
  80. //if (menu.style.visibility != "visible")
  81. {
  82. var leftPos = document.getElementById(itemName).getBoundingClientRect().left - 1;
  83. menu.style.left = "" + leftPos + "px";
  84. menu.style.visibility = "visible";
  85. }
  86. //else
  87. //{
  88. // menu.style.visibility = "hidden";
  89. //}
  90. return false;
  91. };
  92. function bodyClicked(){
  93. closeAllMenus();
  94. return true;
  95. };
  96. function itemSoftwareClicked(event) { return menuItemClicked(event, document.getElementById("div_menuSoftware"), "item-soft"); };
  97. function itemRepositoriesClicked(event){ return menuItemClicked(event, document.getElementById("div_menuRepositories"), "item-repos"); };
  98. function itemSupportClicked(event) { return menuItemClicked(event, document.getElementById("div_menuSupport"), "item-support"); };
  99. function itemCommunityClicked(event) { return menuItemClicked(event, document.getElementById("div_menuCommunity"), "item-community"); };
  100. </script>
  101. <?php if ($PAGE_TYPE == "DONATIONS") { ?>
  102. <script type="text/javascript">
  103. /* <![CDATA[ */
  104. (function() {
  105. var s = document.createElement('script'), t = document.getElementsByTagName('script')[0];
  106. s.type = 'text/javascript';
  107. s.async = true;
  108. s.src = 'http://api.flattr.com/js/0.6/load.js?mode=auto';
  109. t.parentNode.insertBefore(s, t);
  110. })();
  111. /* ]]> */
  112. </script>
  113. <?php } else if ($PAGE_TYPE == "PASTE") { ?>
  114. <link rel="stylesheet" href="<?php echo $ROOT; ?>/paste/kxstudio.css" type="text/css" media="screen" />
  115. <!-- Special Paste CSS -->
  116. <style type="text/css">
  117. html, body {
  118. color: white;
  119. }
  120. .paste_textarea_border {
  121. height: 300px;
  122. border: 1px solid gray;
  123. }
  124. <?php if ($show_paste) { ?>
  125. div .paste_canvas_area {
  126. font-family: monospace;
  127. }
  128. <?php } ?>
  129. <?php if ($show_numbers) { ?>
  130. div .paste_canvas_area {
  131. padding-left: 10px;
  132. }
  133. <?php } ?>
  134. textarea {
  135. width: 100%;
  136. height: 100%;
  137. margin: 0;
  138. padding: 0;
  139. border-width: 0;
  140. resize: none;
  141. }
  142. </style>
  143. <?php } ?>
  144. </head>
  145. <?php if ($PAGE_TYPE == "HOME") { ?>
  146. <body class="mediawiki ltr ns-0 ns-subject skin-bentofluid" style="min-width:1080px" onClick="return bodyClicked();">
  147. <?php } else { ?>
  148. <body class="mediawiki ltr ns-0 ns-subject skin-bentofluid" style="min-width:1080px" onClick="return bodyClicked();">
  149. <?php } ?>
  150. <!-- Software sub menu -->
  151. <div id="div_menuSoftware" class="div_menuDropdown">
  152. <p><a href="<?php echo $ROOT; ?>/Applications"><img src="<?php echo $ROOT; ?>/images/ico_cadence.png" alt=""/> &nbsp; Applications</a></p>
  153. <p><a href="<?php echo $ROOT; ?>/Plugins"><img src="<?php echo $ROOT; ?>/images/ico_distrho.png" alt=""/> &nbsp; Plugins</a></p>
  154. </div>
  155. <!-- Repositories sub menu -->
  156. <div id="div_menuRepositories" class="div_menuDropdown">
  157. <p><a href="<?php echo $ROOT; ?>/Repositories">About</a></p>
  158. <p><a href="<?php echo $ROOT; ?>/Repositories:Applications">Applications (in Repo)</a></p>
  159. <p><a href="<?php echo $ROOT; ?>/Repositories:Plugins">Plugins (in Repo)</a></p>
  160. </div>
  161. <!-- Support sub menu -->
  162. <div id="div_menuSupport" class="div_menuDropdown">
  163. <p><a href="<?php echo $ROOT; ?>/Documentation">Documentation</a></p>
  164. </div>
  165. <!-- Community sub menu -->
  166. <div id="div_menuCommunity" class="div_menuDropdown">
  167. <p><a href="http://webchat.freenode.net/?channels=#kxstudio,#opensourcemusicians"><img src="<?php echo $ROOT; ?>/images/ico_chat.png" class="external" rel="nofollow" target="_blank" alt=""/> &nbsp; Chat</a></p>
  168. <p><a href="http://linuxmusicians.com/viewforum.php?f=47"><img src="<?php echo $ROOT; ?>/images/ico_forum.png" class="external" rel="nofollow" target="_blank" alt=""/> &nbsp; Forum</a></p>
  169. <p><a href="https://soundcloud.com/groups/kxstudio"><img src="<?php echo $ROOT; ?>/images/ico_soundcloud.png" class="external" rel="nofollow" target="_blank" alt=""/> &nbsp; Songs</a></p>
  170. </div>
  171. <!-- Top link -->
  172. <a name="Top" id="Top"></a>
  173. <!-- Start: Header -->
  174. <div id="header">
  175. <div id="header-content" class="container_12">
  176. <a id="header-logo" href="<?php echo $ROOT; ?>/">
  177. <img src="<?php echo $ROOT; ?>/images/header-logo_mod.png" width="46" height="26" alt="Header Logo"/>
  178. </a>
  179. <a id="header-home" href="<?php echo $ROOT; ?>/" style="font-size:1.2em">Home</a>
  180. <ul id="global-navigation">
  181. <li id="item-news"><a href="<?php echo $ROOT; ?>/News">News</a></li>
  182. <li id="item-soft"><a href="#" onClick="return itemSoftwareClicked(event);">Software &#9660;</a></li>
  183. <li id="item-repos"><a href="#" onClick="return itemRepositoriesClicked(event);">Repositories &#9660;</a></li>
  184. <li id="item-support"><a href="#" onClick="return itemSupportClicked(event);">Support &#9660;</a></li>
  185. <li id="item-community"><a href="#" onClick="return itemCommunityClicked(event);">Community &#9660;</a></li>
  186. <li id="item-donate"><a href="<?php echo $ROOT; ?>/Donations">Donations</a></li>
  187. <li id="item-downloads"><a href="<?php echo $ROOT; ?>/Downloads">Downloads</a></li>
  188. <li id="item-paste"><a href="<?php echo $ROOT; ?>/Paste">Paste</a></li>
  189. </ul>
  190. </div>
  191. </div>
  192. <!-- End: Header -->
  193. <?php if ($PAGE_TYPE == "HOME") { ?>
  194. <div id="rslides_container">
  195. <ul class="rslides" id="slider1">
  196. <li><a href="<?php echo $ROOT; ?>/Repositories:Applications"><img src="<?php echo $ROOT; ?>/images/slider-applications.jpg" alt=""/></a></li>
  197. <li><a href="<?php echo $ROOT; ?>/Documentation:KXStudio12043:About"><img src="<?php echo $ROOT; ?>/images/slider-distribution.jpg" alt=""/></a></li>
  198. <li><a href="<?php echo $ROOT; ?>/Plugins"><img src="<?php echo $ROOT; ?>/images/slider-plugins.jpg" alt=""/></a></li>
  199. </ul>
  200. </div>
  201. <?php } else { ?>
  202. <?php if ($PAGE_TYPE == "PASTE") { ?>
  203. <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>
  204. <?php } else if ($PAGE_TYPE != "DONATIONS") { ?>
  205. <div id="donations_container" style="position:absolute; top:40px; right:5%; width: 250px; height: 10px; font-size: 0.8em;">
  206. <div id="donations_bar"><div style="width:<?php print_r($cur_percent); ?>%"></div></div>
  207. </div>
  208. <div style="position:absolute; top:44px; right:5%; width: 270px; height: 10px; font-size: 0.8em; text-align: center;">
  209. This month donations: <?php print_r($cur_amount); ?> / 300 &euro;
  210. </div>
  211. <?php } ?>
  212. <div id="subheader" class="container_16">
  213. <div id="breadcrump" class="grid_12 alpha">
  214. <a href="<?php echo $ROOT; ?>/" title="Home"><img src="<?php echo $ROOT; ?>/images/home_grey.png" width="16" height="16" alt="Home" /> KXStudio </a>
  215. <?php for ($i = 0; $i < count($PAGE_SOURCE_1); $i++) { ?>
  216. &gt; <a href="<?php echo $ROOT . $PAGE_SOURCE_1[$i]; ?>"><?php echo $PAGE_SOURCE_2[$i]; ?></a>
  217. <?php } ?>
  218. </div>
  219. </div>
  220. <?php } ?>
  221. <!-- Start: Main Content Area -->
  222. <div id="content" class="container_16 content-wrapper">
  223. <?php if ($PAGE_TYPE == "HOME") { ?>
  224. <div id="some-content" class="box box-shadow grid_13 clearfix">
  225. <?php } else { ?>
  226. <div id="some-content" class="box box-shadow grid_77 clearfix">
  227. <?php } ?>
  228. <!-- Start: Box header -->
  229. <div class="box-header header-tabs">
  230. <ul>
  231. <li><a href="#Top">Top</a></li>
  232. <?php if ($PAGE_TYPE == "APPLICATION") { ?>
  233. <li><a href="#Interface">Interface</a></li>
  234. <li><a href="#Usage">Usage</a></li>
  235. <li><a href="#Download">Download</a></li>
  236. <?php } else if ($PAGE_TYPE == "APPLICATION_NU") { ?>
  237. <li><a href="#Interface">Interface</a></li>
  238. <li><a href="#Download">Download</a></li>
  239. <?php } else if ($PAGE_TYPE == "DOWNLOADS") { ?>
  240. <li><a href="#Binaries">Binaries</a></li>
  241. <li><a href="#SourceCode">Source Code</a></li>
  242. <li><a href="#LiveDVD">Live-DVD</a></li>
  243. <li><a href="#Artwork">Artwork</a></li>
  244. <li><a href="#AllDownloads">All Downloads</a></li>
  245. <?php } else if ($PAGE_TYPE == "PASTE") { ?>
  246. <li><a href="<?php echo $ROOT; ?>/Paste" title="Create new paste">New Paste</a></li>
  247. <?php if ($show_paste && ! $is_error) { ?>
  248. <li><a href="<?php echo $ROOT; ?>/Paste/repo/<?php echo $paste_id; ?>" target="blank" title="View RAW">View RAW</a></li>
  249. <li><a href="<?php echo $ROOT; ?>/Paste/download.php?id=<?php echo $paste_id; ?>" title="Download">Download</a></li>
  250. <?php } ?>
  251. <?php } ?>
  252. </ul>
  253. </div>
  254. <div id="contentSub"></div>
  255. <!-- End: Box header -->
  256. <div class="alpha omega paste_canvas_area">
  257. <?php if ($PAGE_TYPE == "HOME") { ?>
  258. <h1><span class="mw-headline"> About KXStudio </span></h1>
  259. <?php } else if ($PAGE_TYPE != "PASTE") { ?>
  260. <h1><span class="mw-headline"> <?php
  261. for ($i = 0; $i < count($PAGE_SOURCE_2); $i++)
  262. {
  263. if ($i == 0)
  264. {
  265. if ($PAGE_TYPE == "NONKXSTUDIO")
  266. {
  267. echo $PAGE_SOURCE_2[$i];
  268. continue;
  269. }
  270. echo "KXStudio";
  271. }
  272. echo "&nbsp;: " . $PAGE_SOURCE_2[$i];
  273. }
  274. ?> </span></h1>
  275. <?php } ?>
  276. <?php if ($PAGE_TYPE != "PASTE" && $SHOW_NOTE) { ?>
  277. <p style="color:#fa3a3a;">
  278. NOTE: Parts of this website are currently being rewritten, some links might not work at the moment.
  279. </p>
  280. <?php } ?>
  281. <!-- - - - - - - - Begin Content Area - - - - - - - -->