<html>
<head>
<meta charset="UTF-8">
<link rel='stylesheet prefetch' href='http://dimsemenov-static.s3.amazonaws.com/dist/magnific-popup.css'>
<link rel="stylesheet" type="text/css" href="css/white.css" />
<link rel="alternate stylesheet" type="text/css" media="screen" title="black" href="css/black.css" />
<link rel="alternate stylesheet" type="text/css" media="screen" title="white" href="css/white.css" />
<link rel="alternate stylesheet" type="text/css" media="screen" title="blue" href="css/blue.css" />
<link rel="alternate stylesheet" type="text/css" media="screen" title="red" href="css/red.css" />
<link rel="alternate stylesheet" type="text/css" media="screen" title="custom" href="css/custom.php" />
<link rel="stylesheet" type="text/css" media="screen" href="css/converse.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="builds/converse.min.js"></script>
<script type="text/javascript">
window.onload=function(){
var formref=document.getElementById("switchform")
indicateSelected(formref.switchcontrol)
}
</script>
<!--This script should appear below your LINK stylesheet tags -->

<script src="styleswitch.js" type="text/javascript">

/***********************************************
* Style Sheet Switcher v1.1- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/

</script>


</head>
<script>
$(document).ready(function() {	

var id = '#dialog';
	
//Get the screen height and width
var maskHeight = $(document).height();
var maskWidth = $(window).width();
	
//Set heigth and width to mask to fill up the whole screen
$('#mask').css({'width':maskWidth,'height':maskHeight});

//transition effect
$('#mask').fadeIn(500);	
$('#mask').fadeTo("slow",0.9);	
	
//Get the window height and width
var winH = $(window).height();
var winW = $(window).width();
              
//Set the popup window to center
$(id).css('top',  winH/2-$(id).height()/2);
$(id).css('left', winW/2-$(id).width()/2);
	
//transition effect
$(id).fadeIn(2000); 	
	
//if close button is clicked
$('.window .close').click(function (e) {
//Cancel the link behavior
e.preventDefault();

$('#mask').hide();
$('.window').hide();
});

//if mask is clicked
$('#mask').click(function () {
$(this).hide();
$('.window').hide();
});
	
});
</script>
<body>
<div id="style">
<div class="innertube">

<?php include 'config.php';?>
<?php include 'http://home.k-world.me.uk/version.txt';?>

<?php
if ($localversion != $remoteversion) {
    require "updatenotify.php";
 }
?>

<div class="head">
<?php echo "<p style=\" text-align: center;\">$yourname's Server Access</p>";?>
</div>

<p style="text-align: center;">
<?php echo "<a href=\"#test-popup2\" class=\"open-popup-link\"><img src=\"$myurl/Pic/KWorld.png\"/></a>"; ?> 
</p> 
  
<p style="text-align: center;"> 
<?php
if ($jdownloadervisible > "0") {
    require "links/jdownloader.php";
 }
?>
<?php
if ($torrentvisible > "0") {
    require "links/torrent.php";
 }
?>

<?php
if ($sabvisible > "0") {
    require "links/sab.php";
 }
?>

<p style="text-align: center;"> 
<?php
if ($sickvisible > "0") {
    require "links/sicktype.php";
 }
?>
<?php
if ($couchvisible > "0") {
    require "links/couch.php";
 }
?>
<?php
if ($kodivisible > "0") {
    require "links/kodi.php";
} else {
    require "links/ftp.php";
}
?>

<p style="text-align: center;"> 
<?php
if ($madsonicvisible > "0") {
    require "links/madsonic.php";
 }
?>
<?php
if ($plexvisible > "0") {
    require "links/plex.php";
 }
?>
<?php
if ($squeezevisible > "0") {
    require "links/squeeze.php";
 }
?>
<div class="version">
<?php
if ($showversion > "0") {
    echo "<p style=\" text-align: center;\">Version - $localversion</p>";
 }
?>
	</div>
<div id="test-popup" class="white-popup mfp-hide">
<p style="text-align: center;">
<?php echo "<a href=\"$myurl:$cpadults\" target=\"_blank\">Adults</a>"; ?> - <?php echo "<a href=\"$myurl:$cpkids\" target=\"_blank\">Kids</a>"; ?> 
</p> 
</div>
<div id="test-popup2" class="white-popup mfp-hide">
<div style="text-align: center;">
<?php echo "<a href=\"$kknowledge\" target=\"_blank\"><img src=\"$myurl/Pic/KKnowledge.png\" style=\"width: 200px; height: 40px;\"/></a>"; ?> 
<?php echo "</p>"; ?> 
<?php echo "<a href=\"$knews\" target=\"_blank\"><img src=\"$myurl/Pic/KNews.png\" style=\"width: 200px; height: 40px;\"/></a>"; ?> 
<?php echo "</p>"; ?> 
<?php echo "<a href=\"$kloud\" target=\"_blank\"><img src=\"$myurl/Pic/Kloud.png\" style=\"width: 200px; height: 40px;\"/></a>"; ?> 
<?php echo "</p>"; ?> 
<?php echo "<a href=\"$konvos\" target=\"_blank\"><img src=\"$myurl/Pic/Konvos.png\" style=\"width: 200px; height: 40px;\"/></a>"; ?> 
<?php echo "</p>"; ?> 
<?php echo "<a href=\"$kspot\" target=\"_blank\"><img src=\"$myurl/Pic/spotweb.png\" style=\"width: 200px; height: 40px;\"/></a>"; ?> 
<?php echo "</p>"; ?> 
<?php echo "<a href=\"$webclip\" target=\"_blank\"><img src=\"$myurl/Pic/WebClip.png\" style=\"width: 200px; height: 40px;\"/></a>"; ?> 
</div>

		  <script src='http://codepen.io/assets/libs/fullpage/jquery.js'></script>
  <script src='http://dimsemenov-static.s3.amazonaws.com/dist/jquery.magnific-popup.min.js'></script>

  <script src="js/index.js"></script>
</div>
</div>
</body>
<?php
if ($konvoschat > "0") {
    require "konvoschat.php";
 }
?>

</html>