custom backgroud

This commit is contained in:
Karl Hudgell 2016-01-12 10:24:57 +00:00
parent 820c3d5045
commit 4b50cc842a
2 changed files with 78 additions and 11 deletions

View File

@ -1,8 +1,43 @@
<!DOCTYPE html> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<title>KLanding Config</title> <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" />
<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>
<?php include '../config.php';?>
<?php echo "<title>$yourname's Server Access</title>";?>
</head> </head>
<?php
$username = "$user";
$password = "$pass";
$nonsense = "superkey2";
if (isset($_COOKIE['PrivatePageLogin'])) {
if ($_COOKIE['PrivatePageLogin'] == md5($password.$nonsense)) {
?>
<frameset rows="10%,80%,10%"> <frameset rows="10%,80%,10%">
<frame name="top" frameborder="0" src="menu.php" /> <frame name="top" frameborder="0" src="menu.php" />
<frame name="main" frameborder="0" src="default.php" /> <frame name="main" frameborder="0" src="default.php" />
@ -13,4 +48,36 @@
</body> </body>
</noframes> </noframes>
</frameset> </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> </html>

View File

@ -112,13 +112,13 @@ if ($customfeed3visible > "0") {
<td bgcolor="#0066FF">&nbsp;</td> <td bgcolor="#0066FF">&nbsp;</td>
</tr> </tr>
</thead> </thead>
<tbody style= 'display:none'> <tbody style= 'display:none' border="1">
<tr> <tr style="outline: thin solid">
<td bgcolor="#ffffff"><a checked="checked" href="javascript:chooseStyle('white', 60)" onclick="parent.left.location.reload(); parent.main.location.reload()">White</a></td> <td width="55" height="20" bgcolor="#ffffff" a checked="checked" onclick="javascript:chooseStyle('white', 60) ; parent.left.location.reload(); parent.main.location.reload()"></td>
<td bgcolor="#ffffff"><a href="javascript:chooseStyle('black', 60)" onclick="parent.left.location.reload(); parent.main.location.reload()">Black</a></td> <td width="55" height="20" bgcolor="black" onclick="javascript:chooseStyle('black', 60) ; parent.left.location.reload(); parent.main.location.reload()"></td>
<td bgcolor="#ffffff"><a href="javascript:chooseStyle('blue', 60)" onclick="parent.left.location.reload(); parent.main.location.reload()">Blue</a></td> <td width="55" height="20" bgcolor="blue" onclick="javascript:chooseStyle('blue', 60) ; parent.left.location.reload(); parent.main.location.reload()"></td>
<td bgcolor="#ffffff"><a href="javascript:chooseStyle('red', 60)" onclick="parent.left.location.reload(); parent.main.location.reload()">Red</a></td> <td width="55" height="20" bgcolor="red" onclick="javascript:chooseStyle('red', 60) ; parent.left.location.reload(); parent.main.location.reload()"></td>
<td bgcolor="#ffffff"><a href="javascript:chooseStyle('custom', 60)" onclick="parent.left.location.reload(); parent.main.location.reload()">Custom</a></td> <td width="55" height="20" bgcolor="<?php echo $custombackground; ?>" onclick="javascript:chooseStyle('custom', 60) ; parent.left.location.reload(); parent.main.location.reload()"></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>