-
Notifications
You must be signed in to change notification settings - Fork 0
/
activate.php
153 lines (142 loc) · 3.86 KB
/
activate.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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<?
require_once('config/config.php');
$where_clause="email ='".$_REQUEST['email']."'";
$obj=Select_Qry("*",USER,$where_clause,"","","","");
if($obj != '')
{
if($obj['activation'] != '')
{
$set_value="status='1', activation=''";
$where_clause="WHERE user_id='".$obj['user_id']."'";
Update_Qry(USER,$set_value,$where_clause);
$mail_From = ADMIN_EMAIL;
$name = $obj['username'];
$mail_To = $obj['email'];
$mail_subject="Account Activation At ".WEB_ADDRESS;
$mail_Body='<html>
<head>
<title></title>
<style type="text/css">
.font
{
FONT-FAMILY:tahoma, helvetica, sans-serif;
FONT-SIZE:10pt;
FONT-WEIGHT:normal;
COLOR:black;
}
</style>
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="80%" class="font">
<tr><td width="100%"> </td></tr>
<tr>
<td width="100%">Dear '.$obj['first_name'].' '.$obj['last_name'].',</td>
</tr>
<tr>
<td width="100%">Thank you for registering at '.WEB_ADDRESS.'.</td>
</tr>
<tr>
<td width="100%">Your account has been successfully activated.</td>
</tr>
<tr>
<td width="100%">Your login information is.</td>
</tr>
<tr>
<td width="100%">Username : '.$obj['username'].'</td>
</tr>
<tr>
<td width="100%">Password : '.$obj['password'].'</td>
</tr>
<tr>
<td width="100%">You can access your account in '.WEB_ADDRESS.'. <a href="http://'.WEB_ADDRESS.'/login.php" target="_blank" style="text-decoration:none">Click here</a> to login to your account.</td>
</tr>
<tr>
<td width="100%">
Thank You,
</td>
</tr>
<tr>
<td width="100%">'.WEB_ADDRESS.'</td>
</tr>
</table>
</body>
</html>';
Send_HTML_Mail($mail_To,$mail_From, '', $mail_subject, $mail_Body);
//print $mail_Body;
/*Global_Mail($obj["email"],$obj["username"],'25',$obj["password"],"activation",$obj["username"]);*/
$msg = successfulMessage('Your account has been successfully created. You may now <a href="http://'.WEB_ADDRESS.'/login.php">login</a> using your username and password.');
}
else
{
$msg = errorMessage('This account has already been activated. Please <a href="http://'.WEB_ADDRESS.'/login.php">login</a>.');
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?=TITLE?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="keywords" content="<?=META_KEYWORDS?>"/>
<meta name="description" content="<?=META_CONTENT?>"/>
<link href="css/fresh-auction.css" rel="stylesheet" type="text/css" />
</head>
<body>
<? include_once("toppage1.php");?>
<div id="container" >
<? include_once("left-menu.php");?>
<div id="content" >
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/lbd_24.jpg" width="742" height="10" /></td>
</tr>
<tr>
<td>
<div class="header_top">
<? include_once("cart-info.php");?>
</div>
<div class="clear"></div>
<!--div class="menu_top">
<? include_once("top-menu.php")?>
</div-->
<p><span class="header_text_h"> </span>
</p>
<p align="center">
<table width="100%" border="0" cellspacing="3" cellpadding="4" align="center">
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td colspan="3" align="center"><?=$msg?></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</p>
<div class="sidebar_sep"></div>
</td>
</tr>
<tr>
<td><img src="images/lbd_24a.jpg" width="742" height="10" /></td>
</tr>
</table>
</div></div></div>
<? require_once("upper-footer.php"); ?>
<? require_once("footer.php");?>
</body>
</html>