Upload files to "install/html"
This commit is contained in:
95
install/html/index.php
Normal file
95
install/html/index.php
Normal file
@@ -0,0 +1,95 @@
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
|
||||
<title>Login</title>
|
||||
</head>
|
||||
<style>
|
||||
body {background-color: #ecefc4;}
|
||||
whit {color: blue;}
|
||||
whit {font-size: 130px;}
|
||||
www {color: blue;}
|
||||
www {font-size: 32px;}
|
||||
|
||||
#page-wrap {
|
||||
width: 50%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
|
||||
<html>
|
||||
<body bgcolor="#ecefc4">
|
||||
<div id="page-wrap">
|
||||
<whit><u>W.H.I.T.</u></whit><br>
|
||||
<www>Web Hosted Imaging Technology<br>www.thefinaldreams.com<br>nu-dawn.ca</www>
|
||||
|
||||
|
||||
|
||||
<table width="800px" border="0">
|
||||
<tr>
|
||||
<td width="50%">
|
||||
<form name="input" action="" method="post">
|
||||
<table>
|
||||
<tr>
|
||||
<td>Username :</td>
|
||||
<td><input type="text" value="<?= $_POST["username"] ?>" id="username" name="username" /></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> Password :</td>
|
||||
<td> <input type="password" value="<?= $_POST["password"] ?>" id="password" name="password" /></td>
|
||||
<td> <input type="submit" value="Login" name="sub" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
</td>
|
||||
<td Align="right" width="50%">
|
||||
<img src="/logo.png">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
session_start();
|
||||
$errorMsg = "";
|
||||
$validUser[1] = $_SESSION["login"] === true;
|
||||
$validUser[2] = $_SESSION["login"] === true;
|
||||
|
||||
if(isset($_POST["sub"])) {
|
||||
$validUser[1] = $_POST["username"] == "whit" && $_POST["password"] == "whit44";
|
||||
}
|
||||
|
||||
if(isset($_POST["sub"])) {
|
||||
$validUser[2] = $_POST["username"] == "admin" && $_POST["password"] == "password";}
|
||||
|
||||
if(isset($_POST["sub"])) {
|
||||
$validUser[3] = $_POST["username"] == "reboot" && $_POST["password"] == "reboot";
|
||||
}
|
||||
|
||||
if($validUser[1]) {
|
||||
echo '<iframe src="set1.php" name="main" width="800px" height="520px" name="iframe_a" frameBorder="0" scrolling="no"></iframe><br>';
|
||||
}
|
||||
if($validUser[2]) {
|
||||
echo '<iframe src="set1.php" name="main" width="800px" height="520px" name="iframe_a" frameBorder="0" scrolling="no"></iframe><br>';
|
||||
}
|
||||
|
||||
if($validUser[3]) {
|
||||
echo "Server is rebooting please wait";
|
||||
exec('sudo /sbin/reboot');
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<br>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user