This repository has been archived by the owner on May 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
submit-url.php
145 lines (131 loc) · 5.02 KB
/
submit-url.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Submit Url</title>
<link rel="shortcut icon" href="assets/images/mrfoxie.png" type="image/x-icon">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<style>
body {
background-color: #ffffff;
background-image: url('assets/images/hacked.jpg');
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}
.card {
position: fixed;
top: 0%;
bottom: 0%;
left: 0%;
right: 0%;
margin: auto;
width: 350px;
height: 490px;
background-color: #ffffff;
border: none;
box-shadow: 2px 2px 10px #333333;
}
.input-group-text {
background-color: transparent;
border-color: #f42b03;
}
input {
color: #ffffff;
}
input.form-control {
background-color: transparent;
color: #f42b03;
border-color: #f42b03;
}
input[type="url"]:focus {
background-color: transparent;
border-color: #f42b03;
color: #F42B03;
box-shadow: 0px 0px 10px #f42b03;
}
input[type="url"]::placeholder {
color: #f42b03;
}
.btn {
color: #ffffff;
background-color: #f42b03;
border: none;
box-shadow: 2px 2px 10px #f42b03;
}
.btn:hover {
transition: 0.5s;
color: #ffffff;
text-shadow: 1px 1px 2px #ffffff;
}
.alert {
margin-top: 10px;
text-align: center;
background: #ffffff;
background-size: 200% auto;
color: #000;
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
animation: shine 1.6s linear infinite;
}
@keyframes shine {
0% {
text-shadow: 0px 0px 10px #f42b03, 0px 0px 20px #f42b03;
}
50% {
text-shadow: 0px 0px 0px #f42b03;
}
100% {
text-shadow: 0px 0px 10px #f42b03, 0px 0px 20px #f42b03;
}
}
</style>
</head>
<body>
<div class="alert textGradient fixed-bottom" role="alert">
<strong></strong>
</div>
<div class="container">
<div class="row">
<div class="col-md-4">
<div class="card text-light">
<a href="#"><img class="card-img-top" src="assets/images/mrfoxie.png" alt="logo" /></a>
<form method="post" id="formSubmitUrl">
<div class="card-body">
<div class="input-group mb-3">
<div class="input-group-prepend"><span class="input-group-text" id="basic-addon1" style="color: #f42b03;">@</span></div>
<input type="url" class="form-control" name="url" placeholder="Submit URL here..." required aria-label="Search" aria-describedby="basic-addon1" name="url" required />
</div>
<input style="width: 100%;" id="buttonSubmit" class="btn btn-lg" type="submit" value="Submit" />
</div>
</form>
</div>
</div>
</div>
</div>
<script>
$(document).ready(function() {
$("#formSubmitUrl").submit(function(e) {
e.preventDefault();
$(".textGradient").text("Processing Please wait...");
$("#buttonSubmit").prop('disabled', true);
$.ajax({
type: 'post',
url: 'crawl.php',
data: $('form').serialize(),
success: function() {
$("#buttonSubmit").text('disabled', false);
$(".textGradient").html("The system has received the url. Please refresh this page to submit more URL.");
}
});
})
})
</script>
</body>
</html>