|
- <?php
- $SHOW_NOTE = FALSE;
- $ROOT = FALSE;
-
- if (file_exists("/home/falktx/.jackdrc") || file_exists("/home/daeavelwyn/public_html/kxstudio/"))
- {
- $ROOT = "/kxstudio";
- $SHOW_NOTE = FALSE;
- }
-
- if ($PAGE_TYPE != "PASTE" && $PAGE_TYPE != "DONATIONS" && $PAGE_TYPE != "NAMESPACE") {
- require "donate/config.php";
- require "donate/connect.php";
-
- $cur_amount = 0.0;
- $cur_percent = 0.0;
-
- if ($db_link) {
- $sql_donations = mysqli_query($db_link, "SELECT * FROM donations WHERE MONTH(dt) = MONTH(NOW()) AND YEAR(dt) = YEAR(NOW())");
-
- if (mysqli_num_rows($sql_donations)) {
- while ($sql_row = mysqli_fetch_assoc($sql_donations)) {
- $cur_amount += $sql_row["amount"];
- }
- }
-
- $cur_percent = $cur_amount / 500.0 * 100.0;
- $cur_amount = intval($cur_amount);
-
- if ($cur_percent > 100.0) {
- $cur_percent = 100.0;
- }
- }
- }
- ?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <!--[if lt IE 7]>
- <meta http-equiv="imagetoolbar" content="no" />
- <![endif]-->
-
- <title><?php echo $PAGE_TITLE; ?></title>
-
- <link rel="copyright" href="http://creativecommons.org/licenses/publicdomain/" />
- <link rel="stylesheet" href="<?php echo $ROOT; ?>/css/style.fluid.css" type="text/css" media="screen" />
- <link rel="stylesheet" href="<?php echo $ROOT; ?>/css/style.css" type="text/css" media="screen" />
- <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Raleway:200,700,800,400" type="text/css" media="screen" />
- <link rel="icon" type="image/png" href="<?php echo $ROOT; ?>/images/ico_kxstudio.png" />
- <link rel="shortcut icon" href="<?php echo $ROOT; ?>/favicon.ico" />
- <?php if ($PAGE_TYPE == "HOME") { ?>
- <script type="text/javascript" src="includes/jquery-1.4.2.min.js"></script>
- <script type="text/javascript" src="includes/responsiveslides.min.js"></script>
- <?php } ?>
- <script type="text/javascript">
- <?php if ($PAGE_TYPE == "HOME") { ?>
- $(window).load(function(){
- $(".rslides").responsiveSlides({
- auto: true,
- nav: true,
- pager: false,
- speed: 1000,
- timeout: 7500,
- namespace: "large-btns"
- });
- });
- <?php } ?>
- function closeAllMenus(){
- var objSoftwareMenu = document.getElementById("div_menuSoftware");
- var objRepositoriesMenu = document.getElementById("div_menuRepositories");
- var objCommunityMenu = document.getElementById("div_menuCommunity");
-
- if (objSoftwareMenu.style.visibility == "visible")
- objSoftwareMenu.style.visibility = "hidden";
-
- if (objRepositoriesMenu.style.visibility == "visible")
- objRepositoriesMenu.style.visibility = "hidden";
-
- if (objCommunityMenu.style.visibility == "visible")
- objCommunityMenu.style.visibility = "hidden";
- };
-
- function menuItemClicked(event, menu, itemName){
- event.stopPropagation();
-
- closeAllMenus();
-
- //if (menu.style.visibility != "visible")
- {
- var leftPos = document.getElementById(itemName).getBoundingClientRect().left - 1;
- menu.style.left = "" + leftPos + "px";
- menu.style.visibility = "visible";
- }
- //else
- //{
- // menu.style.visibility = "hidden";
- //}
-
- return false;
- };
-
- function bodyClicked(){
- closeAllMenus();
- return true;
- };
-
- function itemSoftwareClicked(event) { return menuItemClicked(event, document.getElementById("div_menuSoftware"), "item-soft"); };
- function itemRepositoriesClicked(event){ return menuItemClicked(event, document.getElementById("div_menuRepositories"), "item-repos"); };
- function itemCommunityClicked(event) { return menuItemClicked(event, document.getElementById("div_menuCommunity"), "item-community"); };
-
- </script>
- <?php if ($PAGE_TYPE == "DONATIONS") { ?>
- <script type="text/javascript">
- /* <![CDATA[ */
- (function() {
- var s = document.createElement('script'), t = document.getElementsByTagName('script')[0];
- s.type = 'text/javascript';
- s.async = true;
- s.src = 'https://api.flattr.com/js/0.6/load.js?mode=auto';
- t.parentNode.insertBefore(s, t);
- })();
- /* ]]> */
- </script>
- <style type="text/css">
- html > body .liberapay-btn {
- background-color: #f6c915;
- border-radius: 4px;
- color: #1a171b;
- display: inline-block;
- font-family: Helvetica Neue, Helvetica, sans-serif;
- font-size: 14px;
- font-weight: 700;
- line-height: 22px;
- padding: 5px 7px 3px;
- position: relative;
- text-decoration: none;
- }
- html > body .liberapay-btn:hover {
- background-color: #fbce1a;
- color: #444;
- }
- .liberapay-btn > svg {
- position: absolute;
- left: 7px;
- top: 7px;
- }
- .liberapay-btn > span {
- margin-left: 19px;
- }
- </style>
- <?php } else if ($PAGE_TYPE == "PASTE") { ?>
- <link rel="stylesheet" href="<?php echo $ROOT; ?>/paste/kxstudio.css" type="text/css" media="screen" />
- <!-- Special Paste CSS -->
- <style type="text/css">
- html, body {
- color: white;
- }
- .paste_textarea_border {
- height: 300px;
- border: 1px solid gray;
- }
- <?php if ($show_paste) { ?>
- div .paste_canvas_area {
- font-family: monospace;
- }
- <?php } ?>
- <?php if ($show_numbers) { ?>
- div .paste_canvas_area {
- padding-left: 10px;
- }
- <?php } ?>
- textarea {
- width: 100%;
- height: 100%;
- margin: 0;
- padding: 0;
- border-width: 0;
- resize: none;
- }
- </style>
- <?php } ?>
- </head>
-
- <body class="mediawiki ltr ns-0 ns-subject skin-bentofluid" onClick="return bodyClicked();">
- <!-- Software sub menu -->
- <div id="div_menuSoftware" class="div_menuDropdown">
- <p><a href="<?php echo $ROOT; ?>/Applications"><img src="<?php echo $ROOT; ?>/images/ico_cadence.png" alt=""/> Applications</a></p>
- <p><a href="<?php echo $ROOT; ?>/Plugins"><img src="<?php echo $ROOT; ?>/images/ico_distrho.png" alt=""/> Plugins</a></p>
- </div>
- <!-- Repositories sub menu -->
- <div id="div_menuRepositories" class="div_menuDropdown">
- <p><a href="<?php echo $ROOT; ?>/Repositories">About</a></p>
- <p><a href="<?php echo $ROOT; ?>/Repositories:Applications">Applications (in Repo)</a></p>
- <p><a href="<?php echo $ROOT; ?>/Repositories:Plugins">Plugins (in Repo)</a></p>
- </div>
- <!-- Community sub menu -->
- <div id="div_menuCommunity" class="div_menuDropdown">
- <p><a href="https://discord.gg/GHuycpX" class="external" rel="nofollow" target="_blank"><img src="<?php echo $ROOT; ?>/images/ico_discord.png" alt=""/> Discord Server</a></p>
- <p><a href="http://webchat.freenode.net/?channels=#kxstudio,#opensourcemusicians" class="external" rel="nofollow" target="_blank"><img src="<?php echo $ROOT; ?>/images/ico_chat.png" alt=""/> IRC Channel</a></p>
- <p><a href="http://linuxmusicians.com/viewforum.php?f=47" class="external" rel="nofollow" target="_blank"><img src="<?php echo $ROOT; ?>/images/ico_forum.png" alt=""/> Web Forums</a></p>
- <p><a href="https://soundcloud.com/search/sounds?q=kxstudio" class="external" rel="nofollow" target="_blank"><img src="<?php echo $ROOT; ?>/images/ico_soundcloud.png" alt=""/> Songs</a></p>
- </div>
-
- <!-- Top link -->
- <a name="Top" id="Top"></a>
-
- <!-- Start: Header -->
- <div id="header">
- <div id="header-content" class="container_12">
- <a id="header-logo" href="<?php echo $ROOT; ?>/">
- <img src="<?php echo $ROOT; ?>/images/header-logo_mod.png" width="46" height="26" alt="Header Logo"/>
- </a>
- <a id="header-home" href="<?php echo $ROOT; ?>/" style="font-size:1.2em">Home</a>
- <ul id="global-navigation">
- <li id="item-news"><a href="<?php echo $ROOT; ?>/News">News</a></li>
- <li id="item-soft"><a href="<?php echo $ROOT; ?>/Applications" onClick="return itemSoftwareClicked(event);">Software ▼</a></li>
- <li id="item-repos"><a href="<?php echo $ROOT; ?>/Repositories" onClick="return itemRepositoriesClicked(event);">Repositories ▼</a></li>
- <li id="item-community"><a href="<?php echo $ROOT; ?>/Documentation" onClick="return itemCommunityClicked(event);">Community ▼</a></li>
- <li id="item-documentation"><a href="<?php echo $ROOT; ?>/Documentation">Documentation</a></li>
- <li id="item-donate"><a href="<?php echo $ROOT; ?>/Donations">Donations</a></li>
- <li id="item-downloads"><a href="<?php echo $ROOT; ?>/Downloads">Downloads</a></li>
- <li id="item-paste"><a href="<?php echo $ROOT; ?>/Paste">Paste</a></li>
- </ul>
- </div>
- </div>
- <!-- End: Header -->
-
- <?php if ($PAGE_TYPE == "HOME") { ?>
- <div id="rslides_container">
- <ul class="rslides" id="slider1">
- <li><a href="<?php echo $ROOT; ?>/Repositories:Applications"><img src="<?php echo $ROOT; ?>/images/slider-applications.jpg" alt=""/></a></li>
- <li><a href="<?php echo $ROOT; ?>/Documentation:KXStudio14042:About"><img src="<?php echo $ROOT; ?>/images/slider-distribution.jpg" alt=""/></a></li>
- <li><a href="<?php echo $ROOT; ?>/Plugins"><img src="<?php echo $ROOT; ?>/images/slider-plugins.jpg" alt=""/></a></li>
- </ul>
- </div>
- <?php } else { ?>
- <?php if ($PAGE_TYPE != "DONATIONS" && $db_link) { ?>
- <div id="donations_container" style="position:absolute; top:40px; right:5%; width: 250px; height: 10px; font-size: 0.8em;">
- <div id="donations_bar"><div style="width:<?php print_r($cur_percent); ?>%"></div></div>
- </div>
- <div style="position:absolute; top:44px; right:5%; width: 270px; height: 10px; font-size: 0.8em; text-align: center;">
- This month donations: <?php print_r($cur_amount); ?> / 500 €
- </div>
- <?php } ?>
-
- <div id="subheader" class="container_16">
- <div id="breadcrump" class="grid_12 alpha">
- <a href="<?php echo $ROOT; ?>/" title="Home"><img src="<?php echo $ROOT; ?>/images/home_grey.png" width="16" height="16" alt="Home" /> KXStudio </a>
- <?php for ($i = 0; $i < count($PAGE_SOURCE_1); $i++) { ?>
- > <a href="<?php echo $ROOT . $PAGE_SOURCE_1[$i]; ?>"><?php echo $PAGE_SOURCE_2[$i]; ?></a>
- <?php } ?>
- </div>
- </div>
- <?php } ?>
-
- <!-- Start: Main Content Area -->
- <div id="content" class="container_16 content-wrapper">
- <?php if ($PAGE_TYPE == "HOME") { ?>
- <div id="some-content" class="box box-shadow grid_13 clearfix">
- <?php } else { ?>
- <div id="some-content" class="box box-shadow grid_77 clearfix">
- <?php } ?>
- <!-- Start: Box header -->
- <div class="box-header header-tabs">
- <ul>
- <li><a href="#Top">Top</a></li>
- <?php if ($PAGE_TYPE == "APPLICATION") { ?>
- <li><a href="#Interface">Interface</a></li>
- <li><a href="#Usage">Usage</a></li>
- <li><a href="#Download">Download</a></li>
- <?php } else if ($PAGE_TYPE == "APPLICATION_NU") { ?>
- <li><a href="#Interface">Interface</a></li>
- <li><a href="#Download">Download</a></li>
- <?php } else if ($PAGE_TYPE == "DOWNLOADS") { ?>
- <li><a href="#LiveDVD">Live-DVD</a></li>
- <li><a href="#Binaries">Binaries</a></li>
- <li><a href="#SourceCode">Source Code</a></li>
- <li><a href="#Artwork">Artwork</a></li>
- <?php } else if ($PAGE_TYPE == "PASTE") { ?>
- <li><a href="<?php echo $ROOT; ?>/Paste" title="Create new paste">New Paste</a></li>
- <?php if ($show_paste && ! $is_error) { ?>
- <li><a href="<?php echo $ROOT; ?>/Paste/raw/<?php echo $paste_id; ?>" target="blank" title="View RAW">View RAW</a></li>
- <li><a href="<?php echo $ROOT; ?>/Paste/download.php?id=<?php echo $paste_id; ?>" title="Download">Download</a></li>
- <?php } ?>
- <?php } ?>
- </ul>
- </div>
- <div id="contentSub"></div>
- <!-- End: Box header -->
- <div class="alpha omega paste_canvas_area">
- <?php if ($PAGE_TYPE == "HOME") { ?>
- <h1><span class="mw-headline"> About KXStudio </span></h1>
- <?php } else if ($PAGE_TYPE != "PASTE") { ?>
- <h1><span class="mw-headline"> <?php
- for ($i = 0; $i < count($PAGE_SOURCE_2); $i++)
- {
- if ($i == 0)
- {
- if ($PAGE_TYPE == "NONKXSTUDIO")
- {
- echo $PAGE_SOURCE_2[$i];
- continue;
- }
- echo "KXStudio";
- }
-
- echo " : " . $PAGE_SOURCE_2[$i];
- }
- ?> </span></h1>
- <?php } ?>
- <?php if ($PAGE_TYPE != "PASTE" && $SHOW_NOTE) { ?>
- <p style="color:#fa3a3a;">
- NOTE: Parts of this website are currently being rewritten, some links might not work at the moment.
- </p>
- <?php } ?>
- <!-- - - - - - - - Begin Content Area - - - - - - - -->
|