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.

319 lines
12KB

  1. <?php
  2. $SHOW_NOTE = FALSE;
  3. $ROOT = "";
  4. if (file_exists("/home/falktx/.jackdrc") || file_exists("/home/daeavelwyn/public_html/kxstudio/"))
  5. {
  6. $ROOT = "/kxstudio";
  7. $SHOW_NOTE = FALSE;
  8. }
  9. if (false && $PAGE_TYPE != "PASTE" && $PAGE_TYPE != "DONATIONS" && $PAGE_TYPE != "NAMESPACE") {
  10. require "donate/config.php";
  11. require "donate/connect.php";
  12. $cur_amount = 0.0;
  13. $cur_percent = 0.0;
  14. if ($db_link) {
  15. $sql_donations = mysqli_query($db_link, "SELECT * FROM donations WHERE MONTH(dt) = MONTH(NOW()) AND YEAR(dt) = YEAR(NOW())");
  16. if (mysqli_num_rows($sql_donations)) {
  17. while ($sql_row = mysqli_fetch_assoc($sql_donations)) {
  18. $cur_amount += $sql_row["amount"];
  19. }
  20. }
  21. $cur_percent = $cur_amount / 500.0 * 100.0;
  22. $cur_amount = intval($cur_amount);
  23. if ($cur_percent > 100.0) {
  24. $cur_percent = 100.0;
  25. }
  26. }
  27. }
  28. ?>
  29. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  30. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
  31. <head>
  32. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  33. <!--[if lt IE 7]>
  34. <meta http-equiv="imagetoolbar" content="no" />
  35. <![endif]-->
  36. <title><?php echo $PAGE_TITLE; ?></title>
  37. <link rel="copyright" href="https://creativecommons.org/publicdomain/zero/1.0/" />
  38. <link rel="stylesheet" href="/css/style.fluid.css" type="text/css" media="screen" />
  39. <link rel="stylesheet" href="/css/style.css" type="text/css" media="screen" />
  40. <link rel="icon" type="image/png" href="/images/ico_kxstudio.png" />
  41. <link rel="shortcut icon" href="/favicon.ico" />
  42. <?php if ($PAGE_TYPE == "DONATIONS") { ?>
  43. <style type="text/css">
  44. html > body .liberapay-btn {
  45. background-color: #f6c915;
  46. border-radius: 4px;
  47. color: #1a171b;
  48. display: inline-block;
  49. font-family: Helvetica Neue, Helvetica, sans-serif;
  50. font-size: 14px;
  51. font-weight: 700;
  52. line-height: 22px;
  53. padding: 5px 7px 3px;
  54. position: relative;
  55. text-decoration: none;
  56. }
  57. html > body .liberapay-btn:hover {
  58. background-color: #fbce1a;
  59. color: #444;
  60. }
  61. .liberapay-btn > svg {
  62. position: absolute;
  63. left: 7px;
  64. top: 7px;
  65. }
  66. .liberapay-btn > span {
  67. margin-left: 19px;
  68. }
  69. </style>
  70. <?php } else if ($PAGE_TYPE == "PASTE") { ?>
  71. <link rel="stylesheet" href="/paste/kxstudio.css" type="text/css" media="screen" />
  72. <!-- Special Paste CSS -->
  73. <style type="text/css">
  74. html, body {
  75. color: white;
  76. }
  77. .paste_textarea_border {
  78. height: 300px;
  79. border: 1px solid gray;
  80. }
  81. <?php if ($show_paste) { ?>
  82. div .paste_canvas_area {
  83. font-family: monospace;
  84. }
  85. <?php } ?>
  86. <?php if ($show_numbers) { ?>
  87. div .paste_canvas_area {
  88. padding-left: 10px;
  89. }
  90. <?php } ?>
  91. textarea {
  92. width: 100%;
  93. height: 100%;
  94. margin: 0;
  95. padding: 0;
  96. border-width: 0;
  97. resize: none;
  98. }
  99. </style>
  100. <?php } else if ($PAGE_TYPE == "REPOSITORY_PACKAGES") { ?>
  101. <!-- Special Repository Packages CSS -->
  102. <style type="text/css">
  103. .repository-package-list {
  104. display: flex;
  105. flex-direction: row;
  106. flex-wrap: wrap;
  107. }
  108. .repository-package {
  109. display: flex;
  110. flex-direction: row;
  111. margin: 15px;
  112. width: 485px;
  113. line-height: 1.25em;
  114. /* max-width: calc(92% / 3 - 32px); */
  115. }
  116. .repository-package > div:first-child {
  117. padding-top: calc(0.5em + 0.5px);
  118. }
  119. tr {
  120. vertical-align: top;
  121. }
  122. tr > td:first-child {
  123. font-weight: lighter;
  124. white-space: nowrap;
  125. }
  126. tbody > tr:first-child > td:last-child {
  127. font-weight: bold;
  128. }
  129. .img_clickable:hover {
  130. cursor: pointer;
  131. }
  132. .img_clickable:active > .img_clickable_overlay {
  133. display: block;
  134. }
  135. .img_clickable_overlay {
  136. position: fixed;
  137. top: 0px;
  138. left: 0px;
  139. width: 100%;
  140. min-height: 100%;
  141. background-color: black;
  142. background-color: rgba(11, 11, 11, 0.75);
  143. z-index: 1;
  144. display: none;
  145. }
  146. .img_clickable_overlay:active {
  147. display: none !important;
  148. }
  149. .img_clickable_overlay:hover {
  150. cursor: initial;
  151. display: block;
  152. }
  153. .img_clickable_overlay > img {
  154. /*
  155. display: block;
  156. margin: 0 auto;
  157. */
  158. margin: auto;
  159. position: absolute;
  160. top: 0;
  161. bottom: 0;
  162. left: 0;
  163. right: 0;
  164. max-width: 100%;
  165. max-height: 100%;
  166. }
  167. </style>
  168. <?php } ?>
  169. </head>
  170. <body class="mediawiki ltr ns-0 ns-subject skin-bentofluid">
  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="/">
  177. <img src="/images/header-logo_mod.png" width="46" height="26" alt="Header Logo"/>
  178. </a>
  179. <a id="header-home" href="/">Home</a>
  180. <ul id="global-navigation">
  181. <li id="item-news"><a href="/News">News</a></li>
  182. <li id="item-soft" class="item-menu">
  183. <a href="/Applications">Software &#9660;</a>
  184. <div class="item-menu-children">
  185. <p><a href="/Applications"><img src="/images/ico_cadence.png" alt=""/> &nbsp; Applications</a></p>
  186. <p><a href="/Plugins"><img src="/images/ico_distrho.png" alt=""/> &nbsp; Plugins</a></p>
  187. </div>
  188. </li>
  189. <li id="item-repos" class="item-menu">
  190. <a href="/Repositories">Repositories &#9660;</a>
  191. <div class="item-menu-children">
  192. <p><a href="/Repositories">About / How-to</a></p>
  193. <p><a href="/Repositories:Applications">Applications (in Repo)</a></p>
  194. <p><a href="/Repositories:Plugins">Plugins (in Repo)</a></p>
  195. <p><a href="/Repositories:FAQ">FAQ</a></p>
  196. <p><a href="/Repositories:Extras">Extras</a></p>
  197. </div>
  198. </li>
  199. <li id="item-community" class="item-menu">
  200. <a href="/Documentation">Community &#9660;</a>
  201. <div class="item-menu-children">
  202. <p>
  203. <a href="https://webchat.freenode.net/?channels=#kxstudio,#opensourcemusicians" class="external" rel="nofollow" target="_blank">
  204. <img src="/images/ico_chat.png" width="16px" height="16px" alt=""/> &nbsp; IRC Channel
  205. </a>
  206. </p>
  207. <p>
  208. <a href="https://chat.kx.studio/" class="external" rel="nofollow" target="_blank">
  209. <img src="/images/ico_rocketchat.png" width="16px" height="16px" alt=""/> &nbsp; Rocket Chat
  210. </a>
  211. </p>
  212. <p>
  213. <a href="https://soundcloud.com/search/sounds?q=kxstudio" class="external" rel="nofollow" target="_blank">
  214. <img src="/images/ico_soundcloud.png" width="16px" height="16px" alt=""/> &nbsp; Songs
  215. </a>
  216. </p>
  217. </div>
  218. </li>
  219. <li id="item-documentation"><a href="/Documentation">Documentation</a></li>
  220. <li id="item-donate"><a href="/Donations">Donations</a></li>
  221. <li id="item-downloads"><a href="/Downloads">Downloads</a></li>
  222. <li id="item-paste"><a href="/Paste">Paste</a></li>
  223. </ul>
  224. </div>
  225. </div>
  226. <!-- End: Header -->
  227. <?php if (false && $PAGE_TYPE != "DONATIONS" && $db_link) { ?>
  228. <div id="donations_container" style="position:absolute; top:40px; right:5%; width: 250px; height: 10px; font-size: 0.8em;">
  229. <div id="donations_bar"><div style="width:<?php print_r($cur_percent); ?>%"></div></div>
  230. </div>
  231. <div style="position:absolute; top:44px; right:5%; width: 270px; height: 10px; font-size: 0.8em; text-align: center;">
  232. This month donations: <?php print_r($cur_amount); ?> / 500 &euro;
  233. </div>
  234. <?php } ?>
  235. <div id="subheader" class="container_16">
  236. <div id="breadcrump" class="grid_12 alpha">
  237. <a href="/" title="Home"><img src="/images/home_grey.png" width="16" height="16" alt="Home" /> KXStudio </a>
  238. <?php for ($i = 0; $i < count($PAGE_SOURCE_1); $i++) { ?>
  239. &gt; <a href="<?php echo $ROOT . $PAGE_SOURCE_1[$i]; ?>"><?php echo $PAGE_SOURCE_2[$i]; ?></a>
  240. <?php } ?>
  241. </div>
  242. </div>
  243. <!-- Start: Main Content Area -->
  244. <div id="content" class="container_16 content-wrapper">
  245. <div id="some-content" class="box box-shadow grid_77 clearfix">
  246. <!-- Start: Box header -->
  247. <div class="box-header header-tabs">
  248. <ul>
  249. <li><a href="#Top">Top</a></li>
  250. <?php if ($PAGE_TYPE == "APPLICATION") { ?>
  251. <li><a href="#Interface">Interface</a></li>
  252. <li><a href="#Usage">Usage</a></li>
  253. <li><a href="#Download">Download</a></li>
  254. <?php } else if ($PAGE_TYPE == "APPLICATION_NU") { ?>
  255. <li><a href="#Interface">Interface</a></li>
  256. <li><a href="#Download">Download</a></li>
  257. <?php } else if ($PAGE_TYPE == "DOWNLOADS") { ?>
  258. <li><a href="#Binaries">Binaries</a></li>
  259. <li><a href="#SourceCode">Source Code</a></li>
  260. <li><a href="#Artwork">Artwork</a></li>
  261. <?php } else if ($PAGE_TYPE == "PASTE") { ?>
  262. <li><a href="/Paste" title="Create new paste">New Paste</a></li>
  263. <?php if ($show_paste && ! $is_error) { ?>
  264. <li><a href="/Paste/raw/<?php echo $paste_id; ?>" target="blank" title="View RAW">View RAW</a></li>
  265. <li><a href="/Paste/download.php?id=<?php echo $paste_id; ?>" title="Download">Download</a></li>
  266. <?php } ?>
  267. <?php } ?>
  268. </ul>
  269. </div>
  270. <div id="contentSub"></div>
  271. <!-- End: Box header -->
  272. <div class="alpha omega paste_canvas_area">
  273. <?php if ($PAGE_TYPE == "HOME") { ?>
  274. <h1><span class="mw-headline"> About KXStudio </span></h1>
  275. <?php } else if ($PAGE_TYPE == "NEWS") { ?>
  276. <div style="float: right; padding-right: 16px;">
  277. <a href="/News/?action=feed"><img src="images/rss.png" alt="RSS"/></a>
  278. </div>
  279. <h1 style="margin-top: 0px"><span class="mw-headline"> KXStudio&nbsp;: News </span></h1>
  280. <?php } else if ($PAGE_TYPE != "PASTE") { ?>
  281. <h1><span class="mw-headline"> <?php
  282. for ($i = 0; $i < count($PAGE_SOURCE_2); $i++)
  283. {
  284. if ($i == 0)
  285. {
  286. if ($PAGE_TYPE == "NONKXSTUDIO")
  287. {
  288. echo $PAGE_SOURCE_2[$i];
  289. continue;
  290. }
  291. echo "KXStudio";
  292. }
  293. echo "&nbsp;: " . $PAGE_SOURCE_2[$i];
  294. }
  295. ?> </span></h1>
  296. <?php } ?>
  297. <?php if ($PAGE_TYPE != "PASTE" && $SHOW_NOTE) { ?>
  298. <p style="color:#fa3a3a;">
  299. NOTE: The KXStudio project is currently on a break, regular development is expected to return later in 2019.
  300. Thanks for understanding.
  301. </p>
  302. <?php } ?>
  303. <!-- - - - - - - - Begin Content Area - - - - - - - -->