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.

298 lines
11KB

  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="<?php echo $ROOT; ?>/css/style.fluid.css" type="text/css" media="screen" />
  39. <link rel="stylesheet" href="<?php echo $ROOT; ?>/css/style.css" type="text/css" media="screen" />
  40. <link rel="icon" type="image/png" href="<?php echo $ROOT; ?>/images/ico_kxstudio.png" />
  41. <link rel="shortcut icon" href="<?php echo $ROOT; ?>/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="<?php echo $ROOT; ?>/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">
  176. <a id="header-logo" href="<?php echo $ROOT; ?>/">
  177. <img src="<?php echo $ROOT; ?>/images/header-logo_mod.png" width="46" height="26" alt="Header Logo"/>
  178. </a>
  179. <a id="header-home" href="<?php echo $ROOT; ?>/">Home</a>
  180. <ul id="global-navigation">
  181. <li id="item-news"><a href="<?php echo $ROOT; ?>/News">News</a></li>
  182. <li id="item-soft" class="item-menu">
  183. <a href="<?php echo $ROOT; ?>/Applications">Software &#9660;</a>
  184. <div class="item-menu-children">
  185. <p><a href="<?php echo $ROOT; ?>/Applications"><img src="<?php echo $ROOT; ?>/images/ico_cadence.png" alt=""/> &nbsp; Applications</a></p>
  186. <p><a href="<?php echo $ROOT; ?>/Plugins"><img src="<?php echo $ROOT; ?>/images/ico_distrho.png" alt=""/> &nbsp; Plugins</a></p>
  187. </div>
  188. </li>
  189. <li id="item-repos" class="item-menu">
  190. <a href="<?php echo $ROOT; ?>/Repositories">Repositories &#9660;</a>
  191. <div class="item-menu-children">
  192. <p><a href="<?php echo $ROOT; ?>/Repositories">About / How-to</a></p>
  193. <p><a href="<?php echo $ROOT; ?>/Repositories:Applications">Applications (in Repo)</a></p>
  194. <p><a href="<?php echo $ROOT; ?>/Repositories:Plugins">Plugins (in Repo)</a></p>
  195. <p><a href="<?php echo $ROOT; ?>/Repositories:FAQ">FAQ</a></p>
  196. <p><a href="<?php echo $ROOT; ?>/Repositories:Extras">Extras</a></p>
  197. </div>
  198. </li>
  199. <li id="item-documentation"><a href="<?php echo $ROOT; ?>/Documentation">Documentation</a></li>
  200. <li id="item-downloads"><a href="<?php echo $ROOT; ?>/Downloads">Downloads</a></li>
  201. <li id="item-donate"><a href="<?php echo $ROOT; ?>/Donations">Donations</a></li>
  202. </ul>
  203. </div>
  204. </div>
  205. <!-- End: Header -->
  206. <?php if (false && $PAGE_TYPE != "DONATIONS" && $db_link) { ?>
  207. <div id="donations_container" style="position:absolute; top:40px; right:5%; width: 250px; height: 10px; font-size: 0.8em;">
  208. <div id="donations_bar"><div style="width:<?php print_r($cur_percent); ?>%"></div></div>
  209. </div>
  210. <div style="position:absolute; top:44px; right:5%; width: 270px; height: 10px; font-size: 0.8em; text-align: center;">
  211. This month donations: <?php print_r($cur_amount); ?> / 500 &euro;
  212. </div>
  213. <?php } ?>
  214. <div id="subheader" class="container_16">
  215. <div id="breadcrump" class="grid_12 alpha">
  216. <a href="<?php echo $ROOT; ?>/" title="Home"><img src="<?php echo $ROOT; ?>/images/home_grey.png" width="16" height="16" alt="Home" /> KXStudio </a>
  217. <?php for ($i = 0; $i < count($PAGE_SOURCE_1); $i++) { ?>
  218. &gt; <a href="<?php echo $ROOT . $PAGE_SOURCE_1[$i]; ?>"><?php echo $PAGE_SOURCE_2[$i]; ?></a>
  219. <?php } ?>
  220. </div>
  221. </div>
  222. <!-- Start: Main Content Area -->
  223. <div id="content" class="container_16 content-wrapper">
  224. <div id="some-content" class="box box-shadow grid_77 clearfix">
  225. <!-- Start: Box header -->
  226. <div class="box-header header-tabs">
  227. <ul>
  228. <li><a href="#Top">Top</a></li>
  229. <?php if ($PAGE_TYPE == "APPLICATION") { ?>
  230. <li><a href="#Interface">Interface</a></li>
  231. <li><a href="#Usage">Usage</a></li>
  232. <li><a href="#Download">Download</a></li>
  233. <?php } else if ($PAGE_TYPE == "APPLICATION_NU") { ?>
  234. <li><a href="#Interface">Interface</a></li>
  235. <li><a href="#Download">Download</a></li>
  236. <?php } else if ($PAGE_TYPE == "DOWNLOADS") { ?>
  237. <li><a href="#Binaries">Binaries</a></li>
  238. <li><a href="#SourceCode">Source Code</a></li>
  239. <li><a href="#Artwork">Artwork</a></li>
  240. <?php } else if ($PAGE_TYPE == "PASTE") { ?>
  241. <li><a href="<?php echo $ROOT; ?>/Paste" title="Create new paste">New Paste</a></li>
  242. <?php if ($show_paste && ! $is_error) { ?>
  243. <li><a href="<?php echo $ROOT; ?>/Paste/raw/<?php echo $paste_id; ?>" target="blank" title="View RAW">View RAW</a></li>
  244. <li><a href="<?php echo $ROOT; ?>/Paste/download.php?id=<?php echo $paste_id; ?>" title="Download">Download</a></li>
  245. <?php } ?>
  246. <?php } ?>
  247. </ul>
  248. </div>
  249. <div id="contentSub"></div>
  250. <!-- End: Box header -->
  251. <div class="alpha omega paste_canvas_area">
  252. <?php if ($PAGE_TYPE == "HOME") { ?>
  253. <h1><span class="mw-headline"> About KXStudio </span></h1>
  254. <?php } else if ($PAGE_TYPE == "NEWS") { ?>
  255. <div style="float: right; padding-right: 16px;">
  256. <a href="/News/?action=feed"><img src="images/rss.png" alt="RSS"/></a>
  257. </div>
  258. <h1 style="margin-top: 0px"><span class="mw-headline"> KXStudio&nbsp;: News </span></h1>
  259. <?php } else if ($PAGE_TYPE != "PASTE") { ?>
  260. <h1><span class="mw-headline"> <?php
  261. for ($i = 0; $i < count($PAGE_SOURCE_2); $i++)
  262. {
  263. if ($i == 0)
  264. {
  265. if ($PAGE_TYPE == "NONKXSTUDIO")
  266. {
  267. echo $PAGE_SOURCE_2[$i];
  268. continue;
  269. }
  270. echo "KXStudio";
  271. }
  272. echo "&nbsp;: " . $PAGE_SOURCE_2[$i];
  273. }
  274. ?> </span></h1>
  275. <?php } ?>
  276. <?php if ($PAGE_TYPE != "PASTE" && $SHOW_NOTE) { ?>
  277. <p style="color:#fa3a3a;">
  278. NOTE: The KXStudio project is currently on a break, regular development is expected to return later in 2019.
  279. Thanks for understanding.
  280. </p>
  281. <?php } ?>
  282. <!-- - - - - - - - Begin Content Area - - - - - - - -->