First Push

This commit is contained in:
Karl Hudgell 2015-07-02 19:33:06 +01:00
commit aa99db3335
56 changed files with 931 additions and 0 deletions

BIN
Pic/Feedly.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

BIN
Pic/KKnowledge.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

BIN
Pic/LMS.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

BIN
Pic/Raspberry-Pi-logo.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 133 KiB

BIN
Pic/RaspberryPi_Logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 183 KiB

BIN
Pic/Thumbs.db Normal file

Binary file not shown.

BIN
Pic/WebClip.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

BIN
Pic/XBMC_Logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

BIN
Pic/ajax2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

BIN
Pic/android-community.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

BIN
Pic/androidpolice.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 MiB

BIN
Pic/babycam.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

BIN
Pic/calibre.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

BIN
Pic/calibre.png3 Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

BIN
Pic/cnet.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

BIN
Pic/couch.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
Pic/cutmypic.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

BIN
Pic/dropbox.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

BIN
Pic/ftp.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

BIN
Pic/headphones.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

BIN
Pic/jdownloader.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

BIN
Pic/jdownloader.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 292 KiB

BIN
Pic/keepvid.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
Pic/lifehacker.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

BIN
Pic/madsonic.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 KiB

BIN
Pic/maraschino_logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 KiB

BIN
Pic/newznab.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

BIN
Pic/plex.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 KiB

BIN
Pic/sab.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
Pic/sick.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

BIN
Pic/sickrage.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 114 KiB

BIN
Pic/spotweb.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

BIN
Pic/squeeze.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 170 KiB

BIN
Pic/uTorrent.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

BIN
Pic/webmail.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

51
Servers.php Normal file
View File

@ -0,0 +1,51 @@
<!--Force IE6 into quirks mode with this comment tag-->
<!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" lang="en" xml:lang="en">
<head>
<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" />
<!--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>
<script type="text/javascript">
window.onload=function(){
var formref=document.getElementById("switchform")
indicateSelected(formref.switchcontrol)
}
</script>
</head>
<body>
<div id="style">
<div class="innertube">
<?php
/*
* Script: Server Status
* Author: Martin Dixon
* From: Tutorial-Resource.com
* URL: www.tutorial-resource.com
* Version: 1.0
* License: Free
*/
# Get our Bootstrap file.
require "ss_bootstrap_servers.php";
# Print our Server Status.
echo $serverStatus
?>
</div>
</div>
</body>

83
bootstrap_services.php Normal file
View File

@ -0,0 +1,83 @@
<?php
/*
* Script: Server Status
* Author: Martin Dixon
* From: Tutorial-Resource.com
* URL: www.tutorial-resource.com
* Version: 1.0
* License: Free
*/
# Load the configurations.
require "configs_services.php";
# Start a variable to contain Service Status.
$serverStatus = "<table border='0' cellspacing='0' cellpadding='1'><tr BGCOLOR='#0066FF'><th style='text-align: left;'><font color='white'>Service</font></th><th style='text-align: left;'><font color='white'>Status</font></th></tr>";
# Process all services montiored.
foreach( $configs['servicesKloud'] as $serviceName => $servicePort )
{
# Determine Port Status.
$status = @fsockopen($configs['server_ip2'], $servicePort, $errno, $errstr, 5);
# What is the result.
if( !$status )
{
$statusText = "<font color='red'>Down</font>";
}
else
{
$statusText = "<font color='green'>Up</font>";
}
# Set the status Row.
$serverStatus .= "<td BGCOLOR='#FFFFFF'><font color='#0066FF'>{$serviceName}</font></td><td BGCOLOR='#FFFFFF'><font color='white'>{$statusText}</font></td></tr>";
}
# Process all services montiored.
foreach( $configs['servicesSpot'] as $serviceName => $servicePort )
{
# Determine Port Status.
$status = @fsockopen($configs['server_ip3'], $servicePort, $errno, $errstr, 5);
# What is the result.
if( !$status )
{
$statusText = "<font color='red'>Down</font>";
}
else
{
$statusText = "<font color='green'>Up</font>";
}
# Set the status Row.
$serverStatus .= "<td BGCOLOR='#FFFFFF'><font color='#0066FF'>{$serviceName}</font></td><td BGCOLOR='#FFFFFF'><font color='white'>{$statusText}</font></td></tr>";
}
# Process all services montiored.
foreach( $configs['services'] as $serviceName => $servicePort )
{
# Determine Port Status.
$status = @fsockopen($configs['server_ip'], $servicePort, $errno, $errstr, 5);
# What is the result.
if( !$status )
{
$statusText = "<font color='red'>Down</font>";
}
else
{
$statusText = "<font color='green'>Up</font>";
}
# Set the status Row.
$serverStatus .= "<td BGCOLOR='#FFFFFF'><font color='#0066FF'>{$serviceName}</font></td><td BGCOLOR='#FFFFFF'><font color='white'>{$statusText}</font></td></tr>";
}
# Finish service status table.
$serverStatus .= "</table>";
# File Complete.
?>

36
config.php Normal file
View File

@ -0,0 +1,36 @@
<?php
$yourname = "Duly"; // Set this to your name
$base = "duly.ml"; //Set this to your url (without HTTP)
$user = "martin"; // Username for logging on
$pass = "marsdrinks21"; // Password for logging on
$sabport = "9090"; // Set the ports for your services
$sickport = "8081";
$cpadults = "5050";
$cpkids = "5051";
$utorrentport = "86";
$ftpport = "21";
$madsonicport = "8087";
$plexport = "32400";
$squeezeport = "9000";
$drive1 = "c:"; // Set the hard drives to display
$drive2 = "d:";
$drive3 = "e:";
$drive4 = "f:";
$drive5 = "g:";
$drive6 = "h:";
$drive7 = "j:";
// do not edit past here
$local = "1";
$ftp = "ftp://$base";
$myurl = "http://$base";
$webclip = "http://webclip.ml";
$kknowledge = "http://kknowledge.tk";
$kspot = "http://spot.k-world.me.uk";
?>

37
configs_services.php Normal file
View File

@ -0,0 +1,37 @@
<?php include 'config.php';?>
<?php
/*
* Script: Server Status
* Author: Martin Dixon
* From: Tutorial-Resource.com
* URL: www.tutorial-resource.com
* Version: 1.0
* License: Free
*/
/********
DO NOT EDIT THESE CONFIG LINES.
*/
$configs = array();
$configs['services'] = array();
/********
DO NOT EDIT THESE CONFIG LINES.
********/
# You may edit these configs.
$configs['server_ip'] = "$base"; // The Servers URL or IP to check.
# For services simply add new lines with the Name and port number.
$configs['services']['uTorrent'] = $utorrentport;
$configs['services']['SABNZBD'] = $sabport;
$configs['services']['SickBeard'] = $sickport;
$configs['services']['CPAdults'] = $cpadults;
$configs['services']['CPKids'] = $cpkids;
$configs['services']['FTP'] = $ftpport;
$configs['services']['MadSonic'] = $madsonicport;
$configs['services']['Plex'] = $plexport;
?>

54
css/black.css Normal file
View File

@ -0,0 +1,54 @@
<style type="text/css">
#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: black;
color: white;
}
#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: #000000;
}
.innertube{
margin: 15px; /*Margins for inner DIV inside each DIV (to provide padding)*/
}
* 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;
}
</style>

54
css/blue.css Normal file
View File

@ -0,0 +1,54 @@
<style type="text/css">
#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: #021AB0;
color: white;
}
#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: #000000;
}
.innertube{
margin: 15px; /*Margins for inner DIV inside each DIV (to provide padding)*/
}
* 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;
}
</style>

51
css/white.css Normal file
View File

@ -0,0 +1,51 @@
<style type="text/css">
#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: white;
color: black;
}
#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: #fff;
}
.innertube{
margin: 15px; /*Margins for inner DIV inside each DIV (to provide padding)*/
}
* 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;
}
</style>

11
feeds.php Normal file
View File

@ -0,0 +1,11 @@
<html>
<head>
</head>
</p>
<!-- start feedwind code --><script type="text/javascript">document.write('\x3Cscript type="text/javascript" src="' + ('https:' == document.location.protocol ? 'https://' : 'http://') + 'feed.mikle.com/js/rssmikle.js">\x3C/script>');</script><script type="text/javascript">(function() {var params = {rssmikle_url: "http://kknowledge.tk/rss.php?mode=recent",rssmikle_frame_width: "275",rssmikle_frame_height: "400",frame_height_by_article: "5",rssmikle_target: "_blank",rssmikle_font: "Arial, Helvetica, sans-serif",rssmikle_font_size: "12",rssmikle_border: "off",responsive: "off",rssmikle_css_url: "",text_align: "left",text_align2: "left",corner: "off",scrollbar: "on",autoscroll: "on",scrolldirection: "up",scrollstep: "3",mcspeed: "20",sort: "Off",rssmikle_title: "on",rssmikle_title_sentence: "KKnowledge Articles",rssmikle_title_link: "http://kknowledge.tk",rssmikle_title_bgcolor: "#0066FF",rssmikle_title_color: "#FFFFFF",rssmikle_title_bgimage: "",rssmikle_item_bgcolor: "#FFFFFF",rssmikle_item_bgimage: "",rssmikle_item_title_length: "55",rssmikle_item_title_color: "#0066FF",rssmikle_item_border_bottom: "on",rssmikle_item_description: "on",item_link: "off",rssmikle_item_description_length: "150",rssmikle_item_description_color: "#666666",rssmikle_item_date: "gl1",rssmikle_timezone: "Etc/GMT",datetime_format: "%b %e, %Y %l:%M:%S %p",item_description_style: "text+tn",item_thumbnail: "full",item_thumbnail_selection: "auto",article_num: "15",rssmikle_item_podcast: "off",keyword_inc: "",keyword_exc: ""};feedwind_show_widget_iframe(params);})();</script><!-- end feedwind code -->
</p>
<!-- start feedwind code --><script type="text/javascript">document.write('\x3Cscript type="text/javascript" src="' + ('https:' == document.location.protocol ? 'https://' : 'http://') + 'feed.mikle.com/js/rssmikle.js">\x3C/script>');</script><script type="text/javascript">(function() {var params = {rssmikle_url: "http://www.webclip.ml/rss.php?sort=date_desc",rssmikle_frame_width: "275",rssmikle_frame_height: "400",frame_height_by_article: "5",rssmikle_target: "_blank",rssmikle_font: "Arial, Helvetica, sans-serif",rssmikle_font_size: "12",rssmikle_border: "off",responsive: "off",rssmikle_css_url: "",text_align: "left",text_align2: "left",corner: "off",scrollbar: "on",autoscroll: "on",scrolldirection: "up",scrollstep: "3",mcspeed: "20",sort: "Off",rssmikle_title: "on",rssmikle_title_sentence: "WebClips",rssmikle_title_link: "http://www.webclip.ml",rssmikle_title_bgcolor: "#0066FF",rssmikle_title_color: "#FFFFFF",rssmikle_title_bgimage: "",rssmikle_item_bgcolor: "#FFFFFF",rssmikle_item_bgimage: "",rssmikle_item_title_length: "55",rssmikle_item_title_color: "#0066FF",rssmikle_item_border_bottom: "on",rssmikle_item_description: "on",item_link: "off",rssmikle_item_description_length: "150",rssmikle_item_description_color: "#666666",rssmikle_item_date: "gl1",rssmikle_timezone: "Etc/GMT",datetime_format: "%b %e, %Y %l:%M:%S %p",item_description_style: "text+tn",item_thumbnail: "full",item_thumbnail_selection: "auto",article_num: "15",rssmikle_item_podcast: "off",keyword_inc: "",keyword_exc: ""};feedwind_show_widget_iframe(params);})();</script><!-- end feedwind code -->
</body>
</html>

79
index.php Normal file
View File

@ -0,0 +1,79 @@
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<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" />
<!--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>
<script type="text/javascript">
window.onload=function(){
var formref=document.getElementById("switchform")
indicateSelected(formref.switchcontrol)
}
</script>
<?php include 'config.php';?>
<?php echo "<title>$yourname's Server Access</title>";?>
</head>
<?php
$username = "$user";
$password = "$pass";
$nonsense = "superkey";
if (isset($_COOKIE['PrivatePageLogin'])) {
if ($_COOKIE['PrivatePageLogin'] == md5($password.$nonsense)) {
?>
<frameset cols="200,*,300" frameborder="0" border="0" framespacing="0">
<frame src="left.php" name="left" >
<frame src="main.php" name="main" >
<frame src="right.php" name="right" >
</frameset>
<?php
exit;
} else {
echo "Bad Cookie.";
exit;
}
}
if (isset($_GET['p']) && $_GET['p'] == "login") {
if ($_POST['user'] != $username) {
echo "Sorry, that username does not match.";
exit;
} else if ($_POST['keypass'] != $password) {
echo "Sorry, that password does not match.";
exit;
} else if ($_POST['user'] == $username && $_POST['keypass'] == $password) {
setcookie('PrivatePageLogin', md5($_POST['keypass'].$nonsense));
header("Location: $_SERVER[PHP_SELF]");
} else {
echo "Sorry, you could not be logged in at this time.";
}
}
?>
Home Server Logon.
<form action="<?php echo $_SERVER['PHP_SELF']; ?>?p=login" method="post">
<label><input type="text" name="user" id="user" /> Name</label><br />
<label><input type="password" name="keypass" id="keypass" /> Password</label><br />
<input type="submit" id="submit" value="Login" />
</form>
<body>
</body>
</html>

15
js/index.js Normal file
View File

@ -0,0 +1,15 @@
// Example 1: From an element in DOM
$('.open-popup-link').magnificPopup({
type:'inline',
midClick: true // allow opening popup on middle mouse click. Always set it to true if you don't provide alternative source.
});
// Example: 2 Dynamically created
$('button').magnificPopup({
items: {
src: '<div class="white-popup">Dynamically created popup</div>',
type: 'inline'
},
closeBtnInside: true
});

36
left.php Normal file
View File

@ -0,0 +1,36 @@
<!--Force IE6 into quirks mode with this comment tag-->
<!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" lang="en" xml:lang="en">
<head>
<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" />
<!--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>
<script type="text/javascript">
window.onload=function(){
var formref=document.getElementById("switchform")
indicateSelected(formref.switchcontrol)
}
</script>
</head>
<html>
<frameset rows="110,*" frameborder="0" border="0" framespacing="0">
<frame src="Servers.php">
<frame src="services.php">
</frameset>
</html>

75
main.php Normal file
View File

@ -0,0 +1,75 @@
<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" />
<!--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>
<script type="text/javascript">
window.onload=function(){
var formref=document.getElementById("switchform")
indicateSelected(formref.switchcontrol)
}
</script>
</head>
<body>
<div id="style">
<div class="innertube">
<?php include 'config.php';?>
<div id="header">
<?php echo "<p style=\"font-size=20px; text-align: center;\">$yourname's Server Access</p>";?>
</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>"; ?>
</p>
<p style="text-align: center;">
<a href="http://my.jdownloader.org/" target="_blank"><img src="http://duly.ml/Pic/jdownloader.png" style="width: 140px; height: 140px;" /></a>
<?php echo "<a href=\"$myurl:$utorrentport/gui\" target=\"_blank\"><img src=\"$myurl/Pic/uTorrent.png\" style=\"width: 140px; height: 140px;\"/></a>"; ?>
<?php echo "<a href=\"$myurl:$sabport\" target=\"_blank\"><img src=\"$myurl/Pic/sab.png\" style=\"width: 140px; height: 140px;\"/></a>"; ?>
<p style="text-align: center;">
<?php echo "<a href=\"$myurl:$sickport\" target=\"_blank\"><img src=\"$myurl/Pic/sick.png\" style=\"width: 140px; height: 140px;\"/></a>"; ?>
<?php echo "<a href=\"#test-popup\" class=\"open-popup-link\"><img src=\"$myurl/Pic/couch.png\" style=\"width: 140px; height: 140px;\"/></a>"; ?>
<?php echo "<a href=\"$ftp\" target=\"_blank\"><img src=\"$myurl/Pic/ftp.png\" style=\"width: 140px; height: 140px;\"/></a>"; ?>
<p style="text-align: center;">
<?php echo "<a href=\"$myurl:$madsonicport\" target=\"_blank\"><img src=\"$myurl/Pic/madsonic.png\" style=\"width: 140px; height: 140px;\"/></a>"; ?>
<?php echo "<a href=\"$myurl:$plexport/web\" target=\"_blank\"><img src=\"$myurl/Pic/plex.png\" style=\"width: 140px; height: 140px;\"/></a>"; ?>
<?php echo "<a href=\"$myurl:$squeezeport/web\" target=\"_blank\"><img src=\"$myurl/Pic/squeeze.png\" style=\"width: 140px; height: 140px;\"/></a>"; ?>
<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>
<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>
</html>

60
right.php Normal file
View File

@ -0,0 +1,60 @@
<!--Force IE6 into quirks mode with this comment tag-->
<!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" lang="en" xml:lang="en">
<head>
<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" />
<!--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>
<script type="text/javascript">
window.onload=function(){
var formref=document.getElementById("switchform")
indicateSelected(formref.switchcontrol)
}
</script>
</head>
<div id="style">
<div class="innertube">
<?php
if (isset($_POST['color'])) {$color = $_POST['color'];}
else {$color = '#021AB0';}
require "feeds.php";
?>
</p>
<table border='0' cellspacing='0' cellpadding='1'>
<tr BGCOLOR='#0066FF'>
<th style='text-align: left;'><font color='white'>Theme</font></th>
</tr>
<tr>
<td>
<form id="switchform">
<select name="switchcontrol" size="1" onChange="chooseStyle(this.options[this.selectedIndex].value, 60); parent.left.location.reload(); parent.main.location.reload() ">
<option value="white">White Theme</option>
<option value="black">Black Theme</option>
<option value="blue">Blue Theme</option>
</select>
</form>
</td>
</table>
</div>
</div>
</body>
</html>

56
services.php Normal file
View File

@ -0,0 +1,56 @@
<!--Force IE6 into quirks mode with this comment tag-->
<!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" lang="en" xml:lang="en">
<head>
<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" />
<!--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>
<script type="text/javascript">
window.onload=function(){
var formref=document.getElementById("switchform")
indicateSelected(formref.switchcontrol)
}
</script>
</head>
<body>
<div id="style">
<div class="innertube">
<?php
/*
* Script: Server Status
* Author: Martin Dixon
* From: Tutorial-Resource.com
* URL: www.tutorial-resource.com
* Version: 1.0
* License: Free
*/
# Get our Bootstrap file.
require "bootstrap_services.php";
# Produce our heading for our Server Status.
# echo "<strong>Server Status";
# Print our Server Status.
echo $serverStatus;
?>
</div>
</div>
</body>

102
ss_bootstrap_servers.php Normal file
View File

@ -0,0 +1,102 @@
<?php
/*
* Script: Server Status
* Author: Martin Dixon
* From: Tutorial-Resource.com
* URL: www.tutorial-resource.com
* Version: 1.0
* License: Free
*/
# Load the configurations.
require "ss_configs_servers.php";
# Start a variable to contain Service Status.
$serverStatus = "<table border='0' cellspacing='0' cellpadding='1'><tr BGCOLOR='#0066FF'><th style='text-align: left;'><font color='white'>Server</font></th><th style='text-align: left;'><font color='white'>Status</font></th></tr>";
# Process all services montiored.
foreach( $configs['services'] as $serviceName => $servicePort )
{
# Determine Port Status.
$status = @fsockopen($configs['server_ip'], $servicePort, $errno, $errstr, 5);
# What is the result.
if( !$status )
{
$statusText = "<font color='red'>Down</font>";
}
else
{
$statusText = "<font color='green'>Up</font>";
}
# Set the status Row.
$serverStatus .= "<td BGCOLOR='#FFFFFF'>{$serviceName}</td><td BGCOLOR='#FFFFFF'>{$statusText}</td></tr>";
}
# Process all services montiored.
foreach( $configs['servicesKloud'] as $serviceName => $servicePort )
{
# Determine Port Status.
$status = @fsockopen($configs['server_ip2'], $servicePort, $errno, $errstr, 5);
# What is the result.
if( !$status )
{
$statusText = "<font color='red'>Down</font>";
}
else
{
$statusText = "<font color='green'>Up</font>";
}
# Set the status Row.
$serverStatus .= "<td BGCOLOR='#FFFFFF'>{$serviceName}</td><td BGCOLOR='#FFFFFF'>{$statusText}</td></tr>";
}
# Process all services montiored.
foreach( $configs['servicesSpot'] as $serviceName => $servicePort )
{
# Determine Port Status.
$status = @fsockopen($configs['server_ip3'], $servicePort, $errno, $errstr, 5);
# What is the result.
if( !$status )
{
$statusText = "<font color='red'>Down</font>";
}
else
{
$statusText = "<font color='green'>Up</font>";
}
# Set the status Row.
$serverStatus .= "<td BGCOLOR='#FFFFFF'>{$serviceName}</td><td BGCOLOR='#FFFFFF'>{$statusText}</td></tr>";
}
# Process all services montiored.
foreach( $configs['servicesKris'] as $serviceName => $servicePort )
{
# Determine Port Status.
$status = @fsockopen($configs['server_ip4'], $servicePort, $errno, $errstr, 5);
# What is the result.
if( !$status )
{
$statusText = "<font color='red'>Down</font>";
}
else
{
$statusText = "<font color='green'>Up</font>";
}
# Set the status Row.
$serverStatus .= "<td BGCOLOR='#FFFFFF'>{$serviceName}</td><td BGCOLOR='#FFFFFF'>{$statusText}</td></tr>";
}
# Finish service status table.
$serverStatus .= "</table>";
# File Complete.
?>

41
ss_configs_servers.php Normal file
View File

@ -0,0 +1,41 @@
<?php
/*
* Script: Server Status
* Author: Martin Dixon
* From: Tutorial-Resource.com
* URL: www.tutorial-resource.com
* Version: 1.0
* License: Free
*/
/********
DO NOT EDIT THESE CONFIG LINES.
*/
$configs = array();
$configs['services'] = array();
$configs['servicesKloud'] = array();
$configs['servicesSpot'] = array();
$configs['servicesKris'] = array();
/********
DO NOT EDIT THESE CONFIG LINES.
********/
# You may edit these configs.
$configs['server_ip'] = "home.k-world.me.uk"; // The Servers URL or IP to check.
$configs['server_ip2'] = "duly.ml"; // The Servers URL or IP to check.
$configs['server_ip3'] = "gowing.ga"; // The Servers URL or IP to check.
$configs['server_ip4'] = "smiffster.tk"; // The Servers URL or IP to check.
# For services simply add new lines with the Name and port number.
$configs['servicesKloud']['<a href="http://www.duly.ml" target="_blank">Duly Server</a>'] = 80;
#$configs['servicesSpot']['<a href="http://www.gowing.ga" target="_blank">Darren Server</a>'] = 80;
$configs['services']['<a href="http://home.k-world.me.uk" target="_blank">Karl Server</a>'] = 80;
$configs['servicesKris']['<a href="http://smiffster.tk" target="_blank">Kris Server</a>'] = 80;
?>

90
styleswitch.js Normal file
View File

@ -0,0 +1,90 @@
//Style Sheet Switcher version 1.1 Oct 10th, 2006
//Author: Dynamic Drive: http://www.dynamicdrive.com
//Usage terms: http://www.dynamicdrive.com/notice.htm
var manual_or_random="manual" //"manual" or "random"
var randomsetting="3 days" //"eachtime", "sessiononly", or "x days (replace x with desired integer)". Only applicable if mode is random.
//////No need to edit beyond here//////////////
function getCookie(Name) {
var re=new RegExp(Name+"=[^;]+", "i"); //construct RE to search for target name/value pair
if (document.cookie.match(re)) //if cookie found
return document.cookie.match(re)[0].split("=")[1] //return its value
return null
}
function setCookie(name, value, days) {
var expireDate = new Date()
//set "expstring" to either future or past date, to set or delete cookie, respectively
var expstring=(typeof days!="undefined")? expireDate.setDate(expireDate.getDate()+parseInt(days)) : expireDate.setDate(expireDate.getDate()-5)
document.cookie = name+"="+value+"; expires="+expireDate.toGMTString()+"; path=/";
}
function deleteCookie(name){
setCookie(name, "moot")
}
function setStylesheet(title, randomize){ //Main stylesheet switcher function. Second parameter if defined causes a random alternate stylesheet (including none) to be enabled
var i, cacheobj, altsheets=[""]
for(i=0; (cacheobj=document.getElementsByTagName("link")[i]); i++) {
if(cacheobj.getAttribute("rel").toLowerCase()=="alternate stylesheet" && cacheobj.getAttribute("title")) { //if this is an alternate stylesheet with title
cacheobj.disabled = true
altsheets.push(cacheobj) //store reference to alt stylesheets inside array
if(cacheobj.getAttribute("title") == title) //enable alternate stylesheet with title that matches parameter
cacheobj.disabled = false //enable chosen style sheet
}
}
if (typeof randomize!="undefined"){ //if second paramter is defined, randomly enable an alt style sheet (includes non)
var randomnumber=Math.floor(Math.random()*altsheets.length)
altsheets[randomnumber].disabled=false
}
return (typeof randomize!="undefined" && altsheets[randomnumber]!="")? altsheets[randomnumber].getAttribute("title") : "" //if in "random" mode, return "title" of randomly enabled alt stylesheet
}
function chooseStyle(styletitle, days){ //Interface function to switch style sheets plus save "title" attr of selected stylesheet to cookie
if (document.getElementById){
setStylesheet(styletitle)
setCookie("mysheet", styletitle, days)
}
}
function indicateSelected(element){ //Optional function that shows which style sheet is currently selected within group of radio buttons or select menu
if (selectedtitle!=null && (element.type==undefined || element.type=="select-one")){ //if element is a radio button or select menu
var element=(element.type=="select-one") ? element.options : element
for (var i=0; i<element.length; i++){
if (element[i].value==selectedtitle){ //if match found between form element value and cookie value
if (element[i].tagName=="OPTION") //if this is a select menu
element[i].selected=true
else //else if it's a radio button
element[i].checked=true
break
}
}
}
}
if (manual_or_random=="manual"){ //IF MANUAL MODE
var selectedtitle=getCookie("mysheet")
if (document.getElementById && selectedtitle!=null) //load user chosen style sheet from cookie if there is one stored
setStylesheet(selectedtitle)
}
else if (manual_or_random=="random"){ //IF AUTO RANDOM MODE
if (randomsetting=="eachtime")
setStylesheet("", "random")
else if (randomsetting=="sessiononly"){ //if "sessiononly" setting
if (getCookie("mysheet_s")==null) //if "mysheet_s" session cookie is empty
document.cookie="mysheet_s="+setStylesheet("", "random")+"; path=/" //activate random alt stylesheet while remembering its "title" value
else
setStylesheet(getCookie("mysheet_s")) //just activate random alt stylesheet stored in cookie
}
else if (randomsetting.search(/^[1-9]+ days/i)!=-1){ //if "x days" setting
if (getCookie("mysheet_r")==null || parseInt(getCookie("mysheet_r_days"))!=parseInt(randomsetting)){ //if "mysheet_r" cookie is empty or admin has changed number of days to persist in "x days" variable
setCookie("mysheet_r", setStylesheet("", "random"), parseInt(randomsetting)) //activate random alt stylesheet while remembering its "title" value
setCookie("mysheet_r_days", randomsetting, parseInt(randomsetting)) //Also remember the number of days to persist per the "x days" variable
}
else
setStylesheet(getCookie("mysheet_r")) //just activate random alt stylesheet stored in cookie
}
}