-
Notifications
You must be signed in to change notification settings - Fork 0
/
your_account.php
104 lines (75 loc) · 3.54 KB
/
your_account.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
<?php
include_once('app/init.php');
global $user;
if(isset($_GET['activate']) && isset($_GET['user']) ){
$can_connect = true;
$activate = htmlspecialchars($_GET['activate']);
$email = htmlspecialchars($_GET['user']);
$send_to_api = "http://whistleblower.ng/api/activation.php?activate=$activate"."&"."user=$email"."";
$response = file_get_contents($send_to_api);
$json_response = json_decode($response,true);
$status = $json_response['status'];
$message = $json_response['details'];
}else{
$can_connect = false;
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="apple-touch-icon" sizes="76x76" href="assets/img/apple-icon.png">
<link rel="icon" type="image/png" sizes="96x96" href="assets/img/favicon.png">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>WhistleBlower.ng | Report Anything corrupt practice that we encounter in our daily lives, business, and community</title>
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport' />
<link href="assets/css/bootstrap.css" rel="stylesheet" />
<link href="assets/css/gaia.css" rel="stylesheet"/>
<!-- Fonts and icons -->
<link href='https://fonts.googleapis.com/css?family=Cambo|Poppins:400,600' rel='stylesheet' type='text/css'>
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css" rel="stylesheet">
<link href="assets/css/fonts/pe-icon-7-stroke.css" rel="stylesheet">
</head>
<body>
<div class="section section-header section-header-small">
<div class="parallax filter filter-color-black">
<div class="image"
style="background-image:url('assets/img/whistles.png')">
</div>
<div class="container">
<div class="content">
<h1>Blow Whistle</h1>
<h3 class="subtitle">Here's how we start to kick out corruption from our nation</h3>
</div>
</div>
</div>
</div>
<?php
load_template('not_user_nav');
?>
<div class="section" style="margin-bottom:15em;">
<div class="container">
<div class="row">
<div class="col-lg-7 col-lg-offset-2">
<?php
if($can_connect == true){
if($status == 1){
$string = "Your activation is successful, you can <a href='login.php'>login here </a>";
// $string = "Your activation is successful, <a href='login.php'>Click here to login here </a>";
echo "<div class='alert alert-success'>".$string."<strong></strong></div>";
}else{
$string = "$message you can <a href='login.php'> signup here </a>";
echo "<div class='alert alert-danger'>".$string."<strong></strong></div>";
}
}else{
$string = "You are not authorised to access this page, You can <a href='login.php'> login or signup here </a>";
echo "<div class='alert alert-danger'>".$string."<strong></strong></div>";
}
?>
</div>
</div>
</div>
</div>
<?php
load_template('footer');
?>