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.

301 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. tr {
  122. vertical-align: top;
  123. }
  124. tr > td:first-child {
  125. font-weight: lighter;
  126. white-space: nowrap;
  127. }
  128. tbody > tr:first-child > td:last-child {
  129. font-weight: bold;
  130. }
  131. .img_clickable:hover {
  132. cursor: pointer;
  133. }
  134. .img_clickable:active > .img_clickable_overlay {
  135. display: block;
  136. }
  137. .img_clickable_overlay {
  138. position: fixed;
  139. top: 0px;
  140. left: 0px;
  141. width: 100%;
  142. min-height: 100%;
  143. background-color: black;
  144. background-color: rgba(11, 11, 11, 0.75);
  145. z-index: 1;
  146. display: none;
  147. }
  148. .img_clickable_overlay:active {
  149. display: none !important;
  150. }
  151. .img_clickable_overlay:hover {
  152. cursor: initial;
  153. display: block;
  154. }
  155. .img_clickable_overlay > img {
  156. /*
  157. display: block;
  158. margin: 0 auto;
  159. */
  160. margin: auto;
  161. position: absolute;
  162. top: 0;
  163. bottom: 0;
  164. left: 0;
  165. right: 0;
  166. max-width: 100%;
  167. max-height: 100%;
  168. }
  169. </style>
  170. <?php } ?>
  171. </head>
  172. <body class="mediawiki ltr ns-0 ns-subject skin-bentofluid">
  173. <!-- Top link -->
  174. <a name="Top" id="Top"></a>
  175. <!-- Start: Header -->
  176. <div id="header">
  177. <div id="header-content">
  178. <a id="header-logo" href="<?php echo $ROOT; ?>/">
  179. <img src="<?php echo $ROOT; ?>/images/header-logo_mod.png" width="46" height="26" alt="Header Logo"/>
  180. </a>
  181. <a id="header-home" href="<?php echo $ROOT; ?>/">Home</a>
  182. <ul id="global-navigation">
  183. <li id="item-news"><a href="<?php echo $ROOT; ?>/News">News</a></li>
  184. <li id="item-soft" class="item-menu">
  185. <a href="<?php echo $ROOT; ?>/Applications">Software &#9660;</a>
  186. <div class="item-menu-children">
  187. <p><a href="<?php echo $ROOT; ?>/Applications"><img src="<?php echo $ROOT; ?>/images/ico_cadence.png" alt=""/> &nbsp; Applications</a></p>
  188. <p><a href="<?php echo $ROOT; ?>/Plugins"><img src="<?php echo $ROOT; ?>/images/ico_distrho.png" alt=""/> &nbsp; Plugins</a></p>
  189. </div>
  190. </li>
  191. <li id="item-repos" class="item-menu">
  192. <a href="<?php echo $ROOT; ?>/Repositories">Repositories &#9660;</a>
  193. <div class="item-menu-children">
  194. <p><a href="<?php echo $ROOT; ?>/Repositories">About / How-to</a></p>
  195. <p><a href="<?php echo $ROOT; ?>/Repositories:Applications">Applications (in Repo)</a></p>
  196. <p><a href="<?php echo $ROOT; ?>/Repositories:Plugins">Plugins (in Repo)</a></p>
  197. <p><a href="<?php echo $ROOT; ?>/Repositories:FAQ">FAQ</a></p>
  198. <p><a href="<?php echo $ROOT; ?>/Repositories:Extras">Extras</a></p>
  199. </div>
  200. </li>
  201. <li id="item-documentation"><a href="<?php echo $ROOT; ?>/Documentation">Documentation</a></li>
  202. <li id="item-downloads"><a href="<?php echo $ROOT; ?>/Downloads">Downloads</a></li>
  203. <li id="item-donate"><a href="<?php echo $ROOT; ?>/Donations">Donations</a></li>
  204. </ul>
  205. </div>
  206. </div>
  207. <!-- End: Header -->
  208. <?php if (false && $PAGE_TYPE != "DONATIONS" && $db_link) { ?>
  209. <div id="donations_container" style="position:absolute; top:40px; right:5%; width: 250px; height: 10px; font-size: 0.8em;">
  210. <div id="donations_bar"><div style="width:<?php print_r($cur_percent); ?>%"></div></div>
  211. </div>
  212. <div style="position:absolute; top:44px; right:5%; width: 270px; height: 10px; font-size: 0.8em; text-align: center;">
  213. This month donations: <?php print_r($cur_amount); ?> / 500 &euro;
  214. </div>
  215. <?php } ?>
  216. <div id="subheader" class="container_16">
  217. <div id="breadcrump" class="grid_12 alpha">
  218. <a href="<?php echo $ROOT; ?>/" title="Home"><img src="<?php echo $ROOT; ?>/images/home_grey.png" width="16" height="16" alt="Home" /> KXStudio </a>
  219. <?php for ($i = 0; $i < count($PAGE_SOURCE_1); $i++) { ?>
  220. &gt; <a href="<?php echo $ROOT . $PAGE_SOURCE_1[$i]; ?>"><?php echo $PAGE_SOURCE_2[$i]; ?></a>
  221. <?php } ?>
  222. </div>
  223. </div>
  224. <!-- Start: Main Content Area -->
  225. <div id="content" class="container_16 content-wrapper">
  226. <div id="some-content" class="box box-shadow grid_77 clearfix">
  227. <!-- Start: Box header -->
  228. <div class="box-header header-tabs">
  229. <ul>
  230. <li><a href="#Top">Top</a></li>
  231. <?php if ($PAGE_TYPE == "APPLICATION") { ?>
  232. <li><a href="#Interface">Interface</a></li>
  233. <li><a href="#Usage">Usage</a></li>
  234. <li><a href="#Download">Download</a></li>
  235. <?php } else if ($PAGE_TYPE == "APPLICATION_NU") { ?>
  236. <li><a href="#Interface">Interface</a></li>
  237. <li><a href="#Download">Download</a></li>
  238. <?php } else if ($PAGE_TYPE == "DOWNLOADS") { ?>
  239. <li><a href="#Binaries">Binaries</a></li>
  240. <li><a href="#SourceCode">Source Code</a></li>
  241. <li><a href="#Artwork">Artwork</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/raw/<?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 == "NEWS") { ?>
  257. <div style="float: right; padding-right: 16px;">
  258. <a href="/News/?action=feed"><img src="images/rss.png" alt="RSS"/></a>
  259. </div>
  260. <h1 style="margin-top: 0px"><span class="mw-headline"> KXStudio&nbsp;: News </span></h1>
  261. <?php } else if ($PAGE_TYPE != "PASTE") { ?>
  262. <h1><span class="mw-headline"> <?php
  263. for ($i = 0; $i < count($PAGE_SOURCE_2); $i++)
  264. {
  265. if ($i == 0)
  266. {
  267. if ($PAGE_TYPE == "NONKXSTUDIO")
  268. {
  269. echo $PAGE_SOURCE_2[$i];
  270. continue;
  271. }
  272. echo "KXStudio";
  273. }
  274. echo "&nbsp;: " . $PAGE_SOURCE_2[$i];
  275. }
  276. ?> </span></h1>
  277. <?php } ?>
  278. <?php if ($PAGE_TYPE != "PASTE" && $SHOW_NOTE) { ?>
  279. <p style="color:#fa3a3a;">
  280. NOTE: The KXStudio project is currently on a break, regular development is expected to return later in 2019.
  281. Thanks for understanding.
  282. </p>
  283. <?php } ?>
  284. <!-- - - - - - - - Begin Content Area - - - - - - - -->