-
Notifications
You must be signed in to change notification settings - Fork 0
/
drmx_index.php
64 lines (58 loc) · 2.36 KB
/
drmx_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
<?php
session_start();
require '../../../wp-load.php';
$_SESSION['ProfileID'] = $_REQUEST["profileid"];
$_SESSION['ClientInfo'] = $_REQUEST["clientinfo"];
$_SESSION['Platform'] = $_REQUEST["platform"];
$_SESSION['ContentType'] = $_REQUEST["contenttype"];
$_SESSION['ProductID'] = $_REQUEST["yourproductid"];
$_SESSION['RightsID'] = $_REQUEST["rightsid"];
$_SESSION['Version'] = $_REQUEST["version"];
$_SESSION['Return_URL'] = $_REQUEST["return_url"];
if (is_user_logged_in()){
echo "<SCRIPT language=JavaScript>location='drmx_login.php';</SCRIPT>";
}
/*When the user opens your protected content, DRM-X will provide the above value.*/
?>
<!DOCTYPE>
<HTML>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Login and obtain license</title>
<link rel="stylesheet" type="text/css" href="public/css/login-style.css" />
</head>
<body>
<div class="login-wrap">
<div class="login-head">
<div align="center"><img src="public/images/logo.png" alt=""></div>
</div>
<form name="postForm" action="drmx_login.php" method="post">
<div class="login-cont">
<!-- <div id="btl-login-error" class="btl-error" style="display:none;"></div> -->
<ul>
<li class="login-item">
<div class="login-ipt">
<span class="icon-user-name"><b></b></span>
<input type="text" name="username" id="btl-input-username" placeholder="Username">
</div>
</li>
<li class="login-item">
<div class="login-ipt">
<span class="icon-password"><b></b></span>
<input type="password" name="password" id="btl-input-password" placeholder="Password">
</div>
</li>
<li class="login-item">
<input class="btn-login" type="submit" value="Login">
</li>
</ul>
<div class="login-foot">
<div class="foot-acts">
Please login to your account and get a license. If you do not buy a course, please visit our website. <a href="<?php echo site_url() ?>" target="_blank"><?php echo site_url() ?></a>
</div>
</div>
</div>
</form>
</div>
</body>
</html>