This repository has been archived by the owner on Jan 9, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
verifyemail.php
76 lines (64 loc) · 2.15 KB
/
verifyemail.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
<?php
/**
* Verify Email
*
* @package Verify Email
* @author Rishabh Jain <[email protected]>
* @copyright Copyright (c) JNEX Software Solutions 2016-2017
* @license MIT
* @version 1.1
* @link http://www.jnexsoft.com/
*/
define("CLIENTAREA", true);
require "init.php";
if(isset($_GET['action']) && count($_GET) < 2) exit("This file is not accessable.");
require_once __DIR__.'/modules/addons/verifyemail/includes.php';
use JNEX\Handel;
$data = Handel::Request($_GET);
if($data === true){
header("Location: /login.php");
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Verify Email</title>
<link rel='stylesheet' type='text/css' href="<?=JNEX_URL;?>assets/css/bootstrap.min.css" />
</head>
<body>
<div class="container text-center">
<h1 class="lead">Verify Email</h1>
<?php if(!empty($data)){ ?>
<p class="col-sm-6 col-sm-offset-3 lead bg-<?=($_GET['status'] == 'true') ? 'success': 'danger'; ?>">
<strong>
<span aria-hidden="true" class="icon icon-<?=($_GET['status'] == 'true') ? 'circle': 'ban'; ?>"></span>
<?=($_GET['status'] == 'true') ? 'Success!': 'Warning!'; ?>
</strong>
<br>
<?=$data?>
</p>
<?php } ?>
<div class="col-sm-6 col-sm-offset-3">
<form>
<div class="form-group">
<div class="input-group input-group-lg">
<span class="input-group-addon">
<span aria-hidden="false" class="icon icon-envelope">@</span>
</span>
<input type="hidden" class="form-control" name="action" value="resend">
<input class="form-control" name="userid" id="email" value="<?=htmlentities(htmlspecialchars(urldecode($_GET['userid'])));?>" type="email" placeholder="Email Address"/>
</div>
</div>
<div class="row">
<div class="col-md-12">
<p><input type="submit" class="btn btn-primary" value="Submit" /></p>
</div>
</div>
</form>
</div>
</div>
</body>
</html>