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.

297 lines
13KB

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