-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhackermailbox.php
More file actions
54 lines (50 loc) · 1.26 KB
/
hackermailbox.php
File metadata and controls
54 lines (50 loc) · 1.26 KB
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
<?php
if (isset($_POST['login']) && isset($_POST['password'])) {
include('php/config.php');
$login = $_POST['login'];
$pass = $_POST['password'];
if ($login !== $good_login && $pass !== $good_pwd) {
header('location:hackermail.php');
exit;
}
} else {
header('location:hackermail.php');
exit;
}
include ('header.php');
?>
<div style="z-index:1 ;" class="fixed-top nav2 text-center nav-green pr-1"> Boite de réception<span
class="float-right"><img
src="img/newmsg.svg"
width="15"></span></div>
<main class="text-center" style="margin-top: 75px">
</main>
<?php include ('footer.php'); ?>
<script src="js/jquery-3.3.1.min.js"></script>
<script>
function getMail() {
$.get( "getmail.php", function( data ) {
$( "main" ).html( data );
});
}
$(function () {
getMail();
setInterval(function () { getMail() }, 10000);
});
</script>
<script src="js/bootstrap.min.js"></script>
<script>
function getMail() {
$.get("php/gethackermail.php", function (data) {
$("main").html(data);
});
}
$(function () {
getMail();
setInterval(function () {
getMail()
}, 10000);
});
</script>
</body>
</html>