/
activation.php
61 lines (39 loc) · 1.13 KB
/
activation.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
<?php
include 'core/init.php';
include 'includes/overall/header.php';
//include sms activation
?>
<td>akash dwivedi</td>
<?php
include 'includes/aside.php';
?>
<?php include 'includes/overall/footer.php';?>
<?php
include 'core/init.php';
logged_in_redirect();
include 'includes/overall/header.php';
if(isset($_GET['success'])){
echo '<td valign="top" align="center"> <h2>
We have activated your account successfully</h2><br><h3>Now you can access freely</h3> </td>';
}
else if(isset($_GET['email'])&&isset($_GET['email_code'])){
echo $email = trim($_GET['email']);
echo $email_code = trim($_GET['email_code']);
if(email_exists($email)===false){$error[] ='You have entered a wrong email address';}
else if(activate($email,$email_code)===false){
$error[] = 'Oops somthing went wrong please try again';}
?>
<?php
if(empty($error)===false){
echo '<td>oops <br>'.output_errors($error).'</td>';
}
else{ //echo 'ok';
header('location:activation.php?success');
exit(0);
}
}
?>
<?php
include 'includes/aside.php';
?>
<?php include 'includes/overall/footer.php';?>