-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlicense.deactivated.php
More file actions
52 lines (45 loc) · 1.94 KB
/
license.deactivated.php
File metadata and controls
52 lines (45 loc) · 1.94 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
<?php
session_start();
#################### Login & License Validation ####################
require("temp/validate.login.temp.php"); #
$license_path = "license/".$_SESSION['license_username']."/license.json"; #
require("auth/license.validate.functions.php"); #
#################### Login & License Validation ####################
$license_json = json_decode(file_get_contents($license_path), true);
$title = "License | Deactivated";
if (validateLicenseKey($license_json['key'], $license_json['product']) != "inactive" || $license_json['status'] != "0") {
header("Location: index.php");
exit();
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<?php include('temp/head.temp.php'); ?>
</head>
<body>
<div class="row vh-100 justify-content-center align-items-center">
<div class="col-xl-5 col-lg-7 col-md-10 col-12 px-5">
<div class="card">
<div class="card-body">
<div class="text-center">
<img class="img-fluid" src="assets/img/deactivated-license.png" alt="" />
</div>
<div class="mb-3 input-group">
<span class="input-group-text text-gray-900">License Key</span>
<input type="text" class="form-control" value="<?= $license_json['key'] ?>" disabled />
</div>
<div class="mb-3 input-group">
<span class="input-group-text text-gray-900">Registered Date</span>
<input type="text" class="form-control" value="<?= $license_json['registered_date'] ?>"
disabled />
</div>
<div class="mb-3 text-center">
<a href="auth/logout.php" class="btn btn-primary fs-5">Logout</a>
</div>
</div>
</div>
</div>
</div>
</body>
</html>