-
Notifications
You must be signed in to change notification settings - Fork 1
/
activate.php
97 lines (85 loc) · 2.32 KB
/
activate.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
<?php
require_once './activate_inc.php';
?>
<!DOCTYPE html>
<html>
<head>
<title>License Activation</title>
<link rel="stylesheet" type="text/css" href="./skins/css/button-alerts.css" />
<style>
/* Custom CSS styles */
body {
font-family: Arial, sans-serif;
background-color: #f7f7f7;
}
.container {
max-width: 400px;
margin: 0 auto;
padding: 20px;
background-color: #fff;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
h1 {
text-align: center;
}
.form-group {
margin-bottom: 15px;
}
label {
display: block;
margin-bottom: 5px;
font-weight: bold;
}
input[type="text"],
input[type="password"],
button {
width: 100%;
padding: 10px;
border: 1px solid #ccc;
border-radius: 4px;
}
button {
background-color: #4caf50;
color: #fff;
font-weight: bold;
cursor: pointer;
}
button:hover {
background-color: #45a049;
}
</style>
</head>
<body>
<div class="container">
<h1>License Activation</h1>
<?php
if (isset($_SESSION['success'])) {
?>
<div class="alert alert-success">
<?php echo $app->gets('success'); ?>
</div>
<?php
}
if (isset($_SESSION['error'])) {
?>
<div class="alert alert-danger">
<?php echo $app->gets('error'); ?>
</div>
<?php
}
?>
<form action="" method="post">
<div class="form-group">
<label for="license-key">License Key:</label>
<input type="text" id="license-key" name="license_key" placeholder="Enter your license key" required>
</div>
<div class="form-group">
<label for="email">Domain:</label>
<input type="text" id="email" name="license_domain" placeholder="Enter your domain url" required>
</div>
<button type="submit" name="submit">Activate License</button>
</form>
</div>
</body>
</html>