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.

381 lines
14KB

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