forked from weah/Raspcontrol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
38 lines (30 loc) · 1.23 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
session_start();
if($_SESSION['username'] != ""){
require('main.php');
die;
}
require('app/classes/_login.php');
require('app/includes/_header.php');
?>
<div id="firstBlockContainer">
<div class="firstBlockWrapper">
<div style="padding-top: 20px;">
<center>
Please login to Raspcontrol!<br/><br/>
<form method="post" action="index.php">
<input type="text" name="username" class="loginForm" onfocus="if(this.value == 'Username') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Username';}" value="Username">
<input type="password" name="password" class="loginForm" onfocus="if(this.value == 'Password') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Password';}" value="Password"><br/>
<input type="submit" value="Login" name="login" class="minimal">
<br/><br/>
<?php if($wrong == 1){
echo "<font color='red'>Incorrect Username/Password</font>";
}
?>
</form>
</center>
</div>
</div>
<br/><br/><br/>
</div>
<?php require('app/includes/_footer.php'); ?>