-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinput.php
More file actions
143 lines (127 loc) · 4.1 KB
/
Copy pathinput.php
File metadata and controls
143 lines (127 loc) · 4.1 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Proxy Configuration</title>
<style>
body {
font-family: 'Arial', sans-serif;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background: #1f1f1f;
overflow: hidden;
}
.container {
padding: 30px;
border-radius: 20px;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
width: 320px;
text-align: center;
background: linear-gradient(45deg, #ff6ec7, #ff9a8b, #fecfef, #ff7eb3);
background-size: 400% 400%;
animation: gradientAnimation 5s ease infinite;
transition: transform 0.3s ease-in-out;
}
.container:hover {
transform: scale(1.05);
}
h1 {
font-size: 1.8em;
margin-bottom: 20px;
color: #fff;
}
label {
display: block;
margin-bottom: 8px;
font-weight: bold;
color: #fff;
}
input[type="text"], input[type="number"] {
width: calc(100% - 20px);
padding: 12px;
margin-bottom: 15px;
border: 2px solid #fff;
border-radius: 8px;
background-color: rgba(255, 255, 255, 0.2);
color: #fff;
font-size: 1em;
outline: none;
transition: all 0.3s ease;
text-align: center;
}
input[type="text"]:focus, input[type="number"]:focus {
border-color: #0072ff;
box-shadow: 0 0 8px rgba(0, 114, 255, 0.6);
background-color: rgba(255, 255, 255, 0.3);
}
.options {
margin: 15px 0;
color: #fff;
text-align: left;
}
label input {
margin-right: 8px;
}
button {
background-color: #0072ff;
color: white;
border: none;
padding: 12px 20px;
border-radius: 8px;
cursor: pointer;
font-size: 1.1em;
width: 100%;
transition: background-color 0.3s ease, transform 0.2s ease;
}
button:hover {
background-color: #0056b3;
transform: translateY(-2px);
}
button:active {
transform: translateY(0);
}
/* Faster animation for background gradient */
@keyframes gradientAnimation {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
</style>
</head>
<body>
<div class="container">
<h1>Proxy Configuration</h1>
<form id="proxyForm">
<label for="ip">IP Address</label>
<input type="text" id="ip" name="ip" value="127.0.0.1" placeholder="Enter IP Address" required>
<label for="port">Port</label>
<input type="number" id="port" name="port" value="8080" placeholder="Enter Port" required>
<div class="options">
<label>
<input type="radio" name="proxy_type" value="SOCKS4" required>
SOCKS4
</label>
<label>
<input type="radio" name="proxy_type" value="SOCKS5" required checked>
SOCKS5
</label>
</div>
<button type="button" onclick="submitForm()">Submit</button>
</form>
</div>
<script>
function submitForm() {
const ip = document.getElementById('ip').value;
const port = document.getElementById('port').value;
const proxyType = document.querySelector('input[name="proxy_type"]:checked').value;
const url = `/proxy.php?ip=${ip}:${port}-${proxyType}`;
window.location.href = url;
}
</script>
</body>
</html>