diff --git a/Pic/KKnowledge.png b/Pic/KKnowledge.png index 5010ab7..b654fc3 100644 Binary files a/Pic/KKnowledge.png and b/Pic/KKnowledge.png differ diff --git a/Pic/KNews.png b/Pic/KNews.png new file mode 100644 index 0000000..b8188e9 Binary files /dev/null and b/Pic/KNews.png differ diff --git a/Pic/KWorld.png b/Pic/KWorld.png new file mode 100644 index 0000000..677d471 Binary files /dev/null and b/Pic/KWorld.png differ diff --git a/Pic/Kloud.png b/Pic/Kloud.png new file mode 100644 index 0000000..0c3317e Binary files /dev/null and b/Pic/Kloud.png differ diff --git a/Pic/Konvos.png b/Pic/Konvos.png new file mode 100644 index 0000000..a04e00a Binary files /dev/null and b/Pic/Konvos.png differ diff --git a/Pic/WebClip.png b/Pic/WebClip.png index 05040ec..233e813 100644 Binary files a/Pic/WebClip.png and b/Pic/WebClip.png differ diff --git a/Pic/spotweb.png b/Pic/spotweb.png index 4c4d3d8..7e7b82f 100644 Binary files a/Pic/spotweb.png and b/Pic/spotweb.png differ diff --git a/Update.bat b/Update.bat index 3f88dcd..ba38c62 100644 --- a/Update.bat +++ b/Update.bat @@ -1,3 +1,5 @@ git.exe pull -CACLS *.* /e /p everyone:f \ No newline at end of file +CACLS *.* /e /p everyone:f + +echo "$couchvisible2 = "";" >> config.php \ No newline at end of file diff --git a/clock.php b/clock.php index 94d1bd2..750f01f 100644 --- a/clock.php +++ b/clock.php @@ -48,11 +48,4 @@ setInterval(GetClock,1000); </select> </form> </td> -</table> -</p> -</body> -</html> - - - - +</table> \ No newline at end of file diff --git a/config.php.sample b/config.php.sample index b81d5c4..c3ffba8 100644 --- a/config.php.sample +++ b/config.php.sample @@ -148,6 +148,9 @@ $myurl = "http://$base"; $webclip = "http://webclip.ml"; $kknowledge = "http://kknowledge.tk"; $kspot = "http://spot.k-world.me.uk"; +$knews = "http://knews.cf"; +$kloud = "https://k-loud.cf"; +$konvos = "http://konvos.cf"; ?> <?php diff --git a/config/PicUpload.html b/config/PicUpload.html new file mode 100644 index 0000000..2bf873b --- /dev/null +++ b/config/PicUpload.html @@ -0,0 +1,49 @@ +<!DOCTYPE html> +<html> + + <head> + <meta charset="utf-8"/> + <title>KLanding Pic Uploader</title> + + <!-- Google web fonts --> + <link href="http://fonts.googleapis.com/css?family=PT+Sans+Narrow:400,700" rel='stylesheet' /> + + <!-- The main CSS file --> + <link href="/assets/css/style.css" rel="stylesheet" /> + </head> + + <body> + + <form id="upload" method="post" action="upload.php" enctype="multipart/form-data"> + <div id="drop"> + Drop Here + + <a>Browse</a> + <input type="file" name="upl" multiple /> + </div> + + <ul> + <!-- The file uploads will be shown here --> + </ul> + + </form> + + <footer> + + </footer> + + <!-- JavaScript Includes --> + <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> + <script src="/assets/js/jquery.knob.js"></script> + + <!-- jQuery File Upload Dependencies --> + <script src="/assets/js/jquery.ui.widget.js"></script> + <script src="/assets/js/jquery.iframe-transport.js"></script> + <script src="/assets/js/jquery.fileupload.js"></script> + + <!-- Our main JS file --> + <script src="/assets/js/script.js"></script> + + + </body> +</html> \ No newline at end of file diff --git a/config/upload.php b/config/upload.php new file mode 100644 index 0000000..4f7722a --- /dev/null +++ b/config/upload.php @@ -0,0 +1,22 @@ +<?php + +// A list of permitted file extensions +$allowed = array('png', 'jpg', 'gif','zip'); + +if(isset($_FILES['upl']) && $_FILES['upl']['error'] == 0){ + + $extension = pathinfo($_FILES['upl']['name'], PATHINFO_EXTENSION); + + if(!in_array(strtolower($extension), $allowed)){ + echo '{"status":"error"}'; + exit; + } + + if(move_uploaded_file($_FILES['upl']['tmp_name'], 'Pic/'.$_FILES['upl']['name'])){ + echo '{"status":"success"}'; + exit; + } +} + +echo '{"status":"error"}'; +exit; \ No newline at end of file diff --git a/css/custom.php b/css/custom.php new file mode 100644 index 0000000..5353311 --- /dev/null +++ b/css/custom.php @@ -0,0 +1,77 @@ +<?php + header("Content-type: text/css; charset: UTF-8"); +?> +<?php include '../config.php';?> + +#header { + color: white; +} + +#style{ +position: absolute; +top: 0; +left: 0; +width: 100%; /*Width of left frame div*/ +height: 100%; +overflow: hidden; /*Disable scrollbars. Set to "scroll" to enable*/ +background-color: <?php echo $CustBack; ?>; +color: white; #000000; +} + +#maincontent{ +position: fixed; +top: 40px; /*Set top value to HeightOfTopFrameDiv*/ +left: 0px; /*Set left value to WidthOfLeftFrameDiv*/ +right: 300px; /*Set right value to WidthOfRightFrameDiv*/ +bottom: 0; +overflow: auto; +background: +} + +.innertube{ +margin: 15px; /*Margins for inner DIV inside each DIV (to provide padding)*/ +color: black; +} + +* html body{ /*IE6 hack*/ +padding: 120px 150px 0 200px; /*Set value to (HeightOfTopFrameDiv WidthOfRightFrameDiv 0 WidthOfLeftFrameDiv)*/ +} + +* html #maincontent{ /*IE6 hack*/ +height: 100%; +width: 100%; +} + +* html #framecontentTop{ /*IE6 hack*/ +width: 100%; +} + +.white-popup { + position: relative; + background: #FFF; + padding: 20px; + width:auto; + max-width: 500px; + margin: 20px auto; +} + +.disktext{ +margin: 15px; /*Margins for inner DIV inside each DIV (to provide padding)*/ +color: black; +} + +.disk { + border: 1px solid black; + width: 150px; + padding: 0px; +} + +.used { + display block; + background: blue; + text-align: right; + padding: 0 0 0 0; + color: white; + } + +</style> \ No newline at end of file diff --git a/main.php b/main.php index 811e142..d9d75f8 100644 --- a/main.php +++ b/main.php @@ -37,11 +37,7 @@ indicateSelected(formref.switchcontrol) </div> <p style="text-align: center;"> -<?php echo "<a href=\"$kknowledge\" target=\"_blank\"><img src=\"$myurl/Pic/KKnowledge.png\" style=\"width: 200px; height: 40px;\"/></a>"; ?> -</p> -<p style="text-align: center;"> -<?php echo "<a href=\"$webclip\" target=\"_blank\"><img src=\"$myurl/Pic/WebClip.png\" style=\"width: 200px; height: 40px;\"/></a>"; ?> -<?php echo "<a href=\"$kspot\" target=\"_blank\"><img src=\"$myurl/Pic/spotweb.png\" style=\"width: 200px; height: 40px;\"/></a>"; ?> +<?php echo "<a href=\"#test-popup2\" class=\"open-popup-link\"><img src=\"$myurl/Pic/KWorld.png\"/></a>"; ?> </p> <p style="text-align: center;"> @@ -102,6 +98,20 @@ if ($squeezevisible > "0") { <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> diff --git a/right.php b/right.php index 1e886e0..1326773 100644 --- a/right.php +++ b/right.php @@ -8,6 +8,8 @@ <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" /> + <script type="text/javascript"> window.onload=function(){ var formref=document.getElementById("switchform") @@ -110,12 +112,15 @@ if ($customfeed3visible > "0") { <td bgcolor="#ffffff"><a href="javascript:chooseStyle('red', 60)" onclick="parent.left.location.reload(); parent.main.location.reload()">Red</a></td> </tr> <tr> - <td colspan="3" bgcolor="#ffffff"><script type="text/javascript" src="jscolor/jscolor.js"></script>Custom: <input class="color" onchange="document.getElementsByTagName('BODY')[0].style.backgroundColor = '#'+this.color"></td> - <td bgcolor="#ffffff"><a href="javascript:chooseStyle('red', 60)" onclick="document.getElementsByTagName('BODY')[0].style.backgroundColor = '#'+this.color">Set</a></td> - </tr> + <td colspan="3" bgcolor="#ffffff"><script type="text/javascript" src="jscolor/jscolor.js"></script>Change background: <input class="color" NAME="CustColor"</td> + <td bgcolor="#ffffff"><a href="right.php" onclick="parent.left.location.reload(); parent.main.location.reload()">Red</a></td> </tr> </tbody> </table> +<?php +$colour = $_POST['CustColor']; +echo $colour; +?> </div> </div> </body>