-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaccount-confirm-ok.php
75 lines (67 loc) · 2.08 KB
/
account-confirm-ok.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
<?php
//
// TorrentTrader v2.x
// $LastChangedDate: 2011-11-17 10:28:48 +0000 (Thu, 17 Nov 2011) $
// $LastChangedBy: dj-howarth1 $
//
// http://www.torrenttrader.org
//
//
// Confirm account OK!
require_once("backend/functions.php");
dbconn();
$type = $_GET["type"];
$email = $_GET["email"];
if (!$type)
die;
if ($type =="noconf"){//email conf is disabled?
stdhead(T_("ACCOUNT_ALREADY_CONFIRMED"));
begin_frame(T_("PLEASE_NOW_LOGIN"));
print(T_("PLEASE_NOW_LOGIN_REST"));
end_frame();
stdfoot();
die();
}
if ($type == "signup" && validemail($email)) {
stdhead(T_("ACCOUNT_USER_SIGNUP"));
begin_frame(T_("ACCOUNT_SIGNUP_SUCCESS"));
if (!$site_config["ACONFIRM"]) {
print(T_("EMAIL_CHANGE_SEND"). " (" . htmlspecialchars($email) . "). " .T_("ACCOUNT_CONFIRM_SENT_TO_ADDY_REST"). " <br/ >");
} else {
print(T_("EMAIL_CHANGE_SEND"). " (" . htmlspecialchars($email) . "). " .T_("ACCOUNT_CONFIRM_SENT_TO_ADDY_ADMIN"). " <br/ >");
}
end_frame();
}
elseif ($type == "confirmed") {
stdhead(T_("ACCOUNT_ALREADY_CONFIRMED"));
begin_frame(T_("ACCOUNT_ALREADY_CONFIRMED"));
print(T_("ACCOUNT_ALREADY_CONFIRMED"). "\n");
end_frame();
}
//invite code
elseif ($type == "invite" && $_GET["email"]) {
stdhead(T_("INVITE_USER"));
begin_frame();
Print("<center>".T_("INVITE_SUCCESSFUL")."!</center><br /><br />".T_("A_CONFIRMATION_EMAIL_HAS_BEEN_SENT")." (" . htmlspecialchars($email) . "). ".T_("THEY_NEED_TO_READ_AND_RESPOND_TO_THIS_EMAIL")."");
end_frame();
stdfoot();
}//end invite code
elseif ($type == "confirm") {
if (isset($CURUSER)) {
stdhead(T_("ACCOUNT_SIGNUP_CONFIRMATION"));
begin_frame(T_("ACCOUNT_SUCCESS_CONFIRMED"));
print(T_("ACCOUNT_ACTIVATED"). " <a href='". $site_config["SITEURL"] ."/index.php'>" .T_("ACCOUNT_ACTIVATED_REST"). "\n");
print(T_("ACCOUNT_BEFOR_USING"). " " . $site_config["SITENAME"] . " " .T_("ACCOUNT_BEFOR_USING_REST")."\n");
end_frame();
}
else {
stdhead(T_("ACCOUNT_SIGNUP_CONFIRMATION"));
begin_frame(T_("ACCOUNT_SUCCESS_CONFIRMED"));
print(T_("ACCOUNT_ACTIVATED"));
end_frame();
}
}
else
die();
stdfoot();
?>