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.

306 lines
14KB

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