-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
77 lines (65 loc) · 1.75 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<?php
error_reporting(0);
session_start();
if(!$_SESSION['logged'])
{
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>EMuseum</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script>
$(function(){
var $form_inputs = $('form input');
var $rainbow_and_border = $('.rain, .border');
/* Used to provide loping animations in fallback mode */
$form_inputs.bind('focus', function(){
$rainbow_and_border.addClass('end').removeClass('unfocus start');
});
$form_inputs.bind('blur', function(){
$rainbow_and_border.addClass('unfocus start').removeClass('end');
});
$form_inputs.first().delay(800).queue(function() {
$(this).focus();
});
});
</script>
</head>
<body id="home">
<center>
<h1>EMuseum </h1>
<?php
if(isset($_GET["err"])){
$err = $_GET["err"];
if($err == "22"){
echo "<font color=\"red\"> LOGIN INVÀLID </font>";
}
}
?>
<div class="rain">
<div class="border start">
<form action="php/serv_login.php" method = "post" class = "login">
<label for="email">Username</label>
<input name="username" type="text" placeholder="username"/>
<label for="pass">Password</label>
<input name="pass" type="password" placeholder="Password"/>
<input type="submit" value="LOG IN"/>
</form>
</div>
</div>
<div id="footer">
Projecte Integrat de Software 2013-2014 <br>
Grup: PIS_12 <br>
Universitat de Barcelona
</div>
</center>
</body>
</html>
<?php
} else {
header("Location: panellAdmin.php");
}
?>