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.

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