-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
executable file
·51 lines (35 loc) · 1.2 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
<?php
if (isset($_POST['email'])) {
shell_exec("./script/scan.sh " . $_POST['email']);
}
?>
<!DOCTYPE html>
<html>
<head>
<style>
body { padding-top:70px; font-family:verdana; }
p { text-align:center; font-size:50px; }
form { text-align:center; }
input { width:400px; height:50px; padding:10px; font-size:20px; border:1px solid #aaa; }
input:hover { border:1px solid #bb1042; }
img { width:96px; }
</style>
<script type="text/javascript" src="lib/jquery.js"></script>
<script type="text/javascript">
function scan() {
$('#email').fadeOut(500, function(){});
setTimeout(function() { $('#scanning').fadeIn(500, function(){}); }, 1000);
}
</script>
</head>
<body onload="init()">
<p><img src="img/pi.png" title="raspberry pi" /> + <img src="img/scanner.png" title="your scanner" /> = <img src="img/email.jpg" title="straight to your inbox!" /></p>
<p></p>
<p id="scanning" style="display:none;">Scanning... please wait.</p>
<div>
<form method="post" action="" onsubmit="return scan()">
<input id="email" name="email" type="text" required pattern="^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$" title="email address"></input>
</form>
</div>
<body>
</html>