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.

437 lines
16KB

  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. function isMobile() {
  29. return preg_match("/(android|avantgo|blackberry|bolt|boost|cricket|docomo|fone|hiptop|mini|mobi|palm|phone|pie|tablet|up\.browser|up\.link|webos|wos)/i",
  30. $_SERVER["HTTP_USER_AGENT"]);
  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. <meta name="description" content="<?php echo $PAGE_TITLE; ?>" />
  42. <meta name="theme-color" content="#111111">
  43. <meta name="viewport" content="width=device-width">
  44. <meta property="og:site_name" content="KXStudio" />
  45. <meta property="og:title" content="<?php echo $PAGE_TITLE; ?>" />
  46. <meta property="og:type" content="website" />
  47. <link rel="copyright" href="https://creativecommons.org/publicdomain/zero/1.0/" />
  48. <link rel="stylesheet" href="<?php echo $ROOT; ?>/css/style.fluid.css" type="text/css" media="screen" />
  49. <link rel="stylesheet" href="<?php echo $ROOT; ?>/css/style.css" type="text/css" media="screen" />
  50. <link rel="icon" type="image/png" href="<?php echo $ROOT; ?>/images/ico_kxstudio.png" />
  51. <link rel="shortcut icon" href="<?php echo $ROOT; ?>/favicon.ico" />
  52. <?php if ($PAGE_TYPE == "BOARD") { ?>
  53. <!-- Special Board CSS -->
  54. <style type="text/css">
  55. #board-colors {
  56. display: flex;
  57. flex-direction: row;
  58. margin-bottom: 20px;
  59. }
  60. #board-colors p,
  61. #board-colors ul {
  62. line-height: unset;
  63. margin: 0;
  64. padding: 0;
  65. }
  66. #board-colors p,
  67. #board-colors span {
  68. margin: auto;
  69. }
  70. #board-colors p {
  71. margin-left: 8px;
  72. }
  73. #board-colors ul {
  74. display: inline-flex;
  75. flex-wrap: wrap;
  76. flex: 1;
  77. list-style: none inside;
  78. margin-right: 8px;
  79. overflow: hidden;
  80. }
  81. #board-colors li {
  82. display: inline-flex;
  83. margin: 0px 4px;
  84. }
  85. .board-color > div {
  86. display: inline-block;
  87. width: 16px;
  88. height: 16px;
  89. margin: 4px;
  90. }
  91. @media only screen and (max-width: 1000px) {
  92. #board-colors p {
  93. display: none;
  94. }
  95. }
  96. @media only screen and (min-width: 1200px) {
  97. .omega {
  98. position: relative;
  99. }
  100. #board-colors {
  101. position: absolute;
  102. top: 0px;
  103. right: 0px;
  104. margin-bottom: 0px;
  105. }
  106. }
  107. </style>
  108. <?php } else if ($PAGE_TYPE == "DEVELOPMENT") { ?>
  109. <!-- Special Development CSS -->
  110. <style type="text/css">
  111. h3 > a {
  112. color: #F0F0F0 !important;
  113. }
  114. .changeset p {
  115. margin: 0.25em 15px !important;
  116. font-weight: lighter;
  117. }
  118. .changeset a {
  119. font-weight: normal;
  120. }
  121. .changeset b {
  122. font-weight: bold;
  123. }
  124. .changeset b > a {
  125. color: #F0F0F0 !important;
  126. }
  127. .changeset pre {
  128. font-size: 1.4em !important;
  129. background-color: unset;
  130. border: none;
  131. margin: 0.5em 1em;
  132. }
  133. </style>
  134. <?php } else if ($PAGE_TYPE == "DONATIONS") { ?>
  135. <style type="text/css">
  136. html > body .liberapay-btn {
  137. background-color: #f6c915;
  138. border-radius: 4px;
  139. color: #1a171b;
  140. display: inline-block;
  141. font-family: Helvetica Neue, Helvetica, sans-serif;
  142. font-size: 14px;
  143. font-weight: 700;
  144. line-height: 22px;
  145. padding: 5px 7px 3px;
  146. position: relative;
  147. text-decoration: none;
  148. }
  149. html > body .liberapay-btn:hover {
  150. background-color: #fbce1a;
  151. color: #444;
  152. }
  153. .liberapay-btn > svg {
  154. position: absolute;
  155. left: 7px;
  156. top: 7px;
  157. }
  158. .liberapay-btn > span {
  159. margin-left: 19px;
  160. }
  161. </style>
  162. <?php } else if ($PAGE_TYPE == "PASTE") { ?>
  163. <link rel="stylesheet" href="<?php echo $ROOT; ?>/paste/kxstudio.css" type="text/css" media="screen" />
  164. <!-- Special Paste CSS -->
  165. <style type="text/css">
  166. html, body {
  167. color: white;
  168. }
  169. .paste_textarea_border {
  170. height: 300px;
  171. border: 1px solid gray;
  172. }
  173. <?php if ($show_paste) { ?>
  174. div .paste_canvas_area {
  175. font-family: monospace;
  176. }
  177. <?php } ?>
  178. <?php if ($show_numbers) { ?>
  179. div .paste_canvas_area {
  180. padding-left: 10px;
  181. }
  182. <?php } ?>
  183. textarea {
  184. width: 100%;
  185. height: 100%;
  186. margin: 0;
  187. padding: 0;
  188. border-width: 0;
  189. resize: none;
  190. }
  191. </style>
  192. <?php } else if ($PAGE_TYPE == "REPOSITORY_PACKAGES") { ?>
  193. <!-- Special Repository Packages CSS -->
  194. <style type="text/css">
  195. .repository-package-list {
  196. display: flex;
  197. flex-direction: row;
  198. flex-wrap: wrap;
  199. }
  200. .repository-package {
  201. display: flex;
  202. flex-direction: row;
  203. margin: 15px;
  204. width: 485px;
  205. line-height: 1.25em;
  206. /* max-width: calc(92% / 3 - 32px); */
  207. }
  208. .repository-package > div:first-child {
  209. padding-top: calc(0.5em + 0.5px);
  210. }
  211. @media only screen and (max-width: 540px) {
  212. .repository-package {
  213. flex-direction: column;
  214. width: 100%;
  215. }
  216. .repository-package > div:first-child {
  217. padding-top: 0;
  218. text-align: center;
  219. }
  220. .repository-package table {
  221. width: 100%;
  222. margin-left: 10%;
  223. }
  224. .repository-package tr > td:first-child {
  225. width: 100px;
  226. }
  227. .img_clickable {
  228. margin-bottom: 5px;
  229. }
  230. }
  231. @media only screen and (max-width: 380px) {
  232. .repository-package table {
  233. margin-left: 5%;
  234. }
  235. }
  236. tr {
  237. vertical-align: top;
  238. }
  239. tr > td:first-child {
  240. font-weight: lighter;
  241. white-space: nowrap;
  242. }
  243. tbody > tr:first-child > td:last-child {
  244. font-weight: bold;
  245. }
  246. .img_clickable:hover {
  247. cursor: pointer;
  248. }
  249. .img_clickable:active > .img_clickable_overlay {
  250. display: block;
  251. }
  252. .img_clickable_overlay {
  253. position: fixed;
  254. top: 0px;
  255. left: 0px;
  256. width: 100%;
  257. min-height: 100%;
  258. background-color: black;
  259. background-color: rgba(11, 11, 11, 0.75);
  260. z-index: 1;
  261. display: none;
  262. }
  263. .img_clickable_overlay:active {
  264. display: none !important;
  265. }
  266. .img_clickable_overlay:hover {
  267. cursor: initial;
  268. display: block;
  269. }
  270. .img_clickable_overlay > img {
  271. /*
  272. display: block;
  273. margin: 0 auto;
  274. */
  275. margin: auto;
  276. position: absolute;
  277. top: 0;
  278. bottom: 0;
  279. left: 0;
  280. right: 0;
  281. max-width: 100%;
  282. max-height: 100%;
  283. }
  284. </style>
  285. <?php } ?>
  286. </head>
  287. <body class="mediawiki ltr ns-0 ns-subject skin-bentofluid">
  288. <!-- Top link -->
  289. <a name="Top" id="Top"></a>
  290. <!-- Start: Header -->
  291. <div id="header">
  292. <div id="header-content">
  293. <a id="header-logo" href="<?php echo $ROOT; ?>/">
  294. <img src="<?php echo $ROOT; ?>/images/header-logo_mod.png" width="46" height="26" alt="Header Logo"/>
  295. </a>
  296. <a id="header-home" href="<?php echo $ROOT; ?>/">Home</a>
  297. <ul id="global-navigation">
  298. <li id="item-news"><a href="<?php echo $ROOT; ?>/News">News</a></li>
  299. <li id="item-soft" class="item-menu<?php if ($PAGE_SOURCE_1[0] == "/Applications" || $PAGE_SOURCE_1[0] == "/Plugins") { ?> selected<?php } ?>">
  300. <?php if (isMobile()) { ?>
  301. <span>Software &#9660;</span>
  302. <?php } else { ?>
  303. <a href="<?php echo $ROOT; ?>/Applications">Software &#9660;</a>
  304. <?php } ?>
  305. <div class="item-menu-children">
  306. <p><a href="<?php echo $ROOT; ?>/Applications"><img src="<?php echo $ROOT; ?>/images/ico_cadence.png" alt=""/> &nbsp; Applications</a></p>
  307. <p><a href="<?php echo $ROOT; ?>/Plugins"><img src="<?php echo $ROOT; ?>/images/ico_distrho.png" alt=""/> &nbsp; Plugins</a></p>
  308. </div>
  309. </li>
  310. <li id="item-repos" class="item-menu<?php if ($PAGE_SOURCE_1[0] == "/Repositories") { ?> selected<?php } ?>">
  311. <?php if (isMobile()) { ?>
  312. <span>Repositories &#9660;</span>
  313. <?php } else { ?>
  314. <a href="<?php echo $ROOT; ?>/Repositories">Repositories &#9660;</a>
  315. <?php } ?>
  316. <div class="item-menu-children">
  317. <p><a href="<?php echo $ROOT; ?>/Repositories">About / How-to</a></p>
  318. <p><a href="<?php echo $ROOT; ?>/Repositories:Applications">Applications (in Repo)</a></p>
  319. <p><a href="<?php echo $ROOT; ?>/Repositories:Plugins">Plugins (in Repo)</a></p>
  320. <p><a href="<?php echo $ROOT; ?>/Repositories:FAQ">FAQ</a></p>
  321. </div>
  322. </li>
  323. <li id="item-board" class="<?php if ($PAGE_SOURCE_1[0] == "/Board") { ?>selected<?php } ?>">
  324. <a href="<?php echo $ROOT; ?>/Board">Board</a>
  325. </li>
  326. <li id="item-development" class="<?php if ($PAGE_SOURCE_1[0] == "/Development") { ?>selected<?php } ?>">
  327. <a href="<?php echo $ROOT; ?>/Development">Development</a>
  328. </li>
  329. <li id="item-documentation" class="<?php if ($PAGE_SOURCE_1[0] == "/Documentation") { ?>selected<?php } ?>">
  330. <a href="<?php echo $ROOT; ?>/Documentation">Documentation</a>
  331. </li>
  332. <li id="item-downloads" class="<?php if ($PAGE_SOURCE_1[0] == "/Downloads") { ?>selected<?php } ?>">
  333. <a href="<?php echo $ROOT; ?>/Downloads">Downloads</a>
  334. </li>
  335. <li id="item-donate" class="<?php if ($PAGE_SOURCE_1[0] == "/Donations") { ?>selected<?php } ?>">
  336. <a href="<?php echo $ROOT; ?>/Donations">Donations</a>
  337. </li>
  338. </ul>
  339. </div>
  340. </div>
  341. <!-- End: Header -->
  342. <?php if (false && $PAGE_TYPE != "DONATIONS" && $db_link) { ?>
  343. <div id="donations_container" style="position:absolute; top:40px; right:5%; width: 250px; height: 10px; font-size: 0.8em;">
  344. <div id="donations_bar"><div style="width:<?php print_r($cur_percent); ?>%"></div></div>
  345. </div>
  346. <div style="position:absolute; top:44px; right:5%; width: 270px; height: 10px; font-size: 0.8em; text-align: center;">
  347. This month donations: <?php print_r($cur_amount); ?> / 500 &euro;
  348. </div>
  349. <?php } ?>
  350. <div id="subheader" class="container_16">
  351. <div id="breadcrump" class="grid_12 alpha">
  352. <a href="<?php echo $ROOT; ?>/" title="Home"><img src="<?php echo $ROOT; ?>/images/home_grey.png" width="16" height="16" alt="Home" /> KXStudio </a>
  353. <?php for ($i = 0; $i < count($PAGE_SOURCE_1); $i++) { ?>
  354. &gt; <a href="<?php echo $ROOT . $PAGE_SOURCE_1[$i]; ?>"><?php echo $PAGE_SOURCE_2[$i]; ?></a>
  355. <?php } ?>
  356. </div>
  357. </div>
  358. <!-- Start: Main Content Area -->
  359. <div id="content" class="container_16 content-wrapper">
  360. <div id="some-content" class="box box-shadow grid_77 clearfix">
  361. <!-- Start: Box header -->
  362. <div class="box-header header-tabs">
  363. <ul>
  364. <li><a href="#Top">Top</a></li>
  365. <?php /* */ if ($PAGE_TYPE == "APPLICATION") { ?>
  366. <li><a href="#Interface">Interface</a></li>
  367. <li><a href="#Usage">Usage</a></li>
  368. <li><a href="#Download">Download</a></li>
  369. <?php } else if ($PAGE_TYPE == "APPLICATION_NU") { ?>
  370. <li><a href="#Interface">Interface</a></li>
  371. <li><a href="#Download">Download</a></li>
  372. <?php } else if ($PAGE_TYPE == "DOWNLOADS") { ?>
  373. <li><a href="#Binaries">Binaries</a></li>
  374. <li><a href="#SourceCode">Source Code</a></li>
  375. <li><a href="#Repositories">Repositories</a></li>
  376. <?php } else if ($PAGE_TYPE == "PASTE") { ?>
  377. <li><a href="<?php echo $ROOT; ?>/Paste" title="Create new paste">New Paste</a></li>
  378. <?php if ($show_paste && ! $is_error) { ?>
  379. <li><a href="<?php echo $ROOT; ?>/Paste/raw/<?php echo $paste_id; ?>" target="blank" title="View RAW">View RAW</a></li>
  380. <li><a href="<?php echo $ROOT; ?>/Paste/download.php?id=<?php echo $paste_id; ?>" title="Download">Download</a></li>
  381. <?php } ?>
  382. <?php } ?>
  383. </ul>
  384. </div>
  385. <div id="contentSub"></div>
  386. <!-- End: Box header -->
  387. <div class="alpha omega paste_canvas_area">
  388. <?php /* */ if ($PAGE_TYPE == "HOME") { ?>
  389. <h1><span class="mw-headline"> About KXStudio </span></h1>
  390. <?php } else if ($PAGE_TYPE == "NEWS") { ?>
  391. <div style="float: right; padding-right: 16px;">
  392. <a href="/News/?action=feed"><img src="images/rss.png" alt="RSS"/></a>
  393. </div>
  394. <h1 style="margin-top: 0px"><span class="mw-headline"> KXStudio&nbsp;: News </span></h1>
  395. <?php } else if ($PAGE_TYPE != "PASTE") { ?>
  396. <h1><span class="mw-headline"> <?php
  397. for ($i = 0; $i < count($PAGE_SOURCE_2); $i++)
  398. {
  399. if ($i == 0)
  400. {
  401. if ($PAGE_TYPE == "NONKXSTUDIO")
  402. {
  403. echo $PAGE_SOURCE_2[$i];
  404. continue;
  405. }
  406. echo "KXStudio";
  407. }
  408. echo "&nbsp;: " . $PAGE_SOURCE_2[$i];
  409. }
  410. ?> </span></h1>
  411. <?php } ?>
  412. <?php if ($PAGE_TYPE != "PASTE" && $SHOW_NOTE) { ?>
  413. <p style="color:#fa3a3a;">
  414. NOTE: The KXStudio project is currently on a break, regular development is expected to return later in 2019.
  415. Thanks for understanding.
  416. </p>
  417. <?php } ?>
  418. <!-- - - - - - - - Begin Content Area - - - - - - - -->