Subversion Repositories php-qbpwcf

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
14 liveuser 1
<?php
2
 
3
#揭密資料
4
$post=json_decode(urldecode(base64_decode($_POST["formData"])));
5
 
6
#驗證密碼通過
7
if($_SESSION["authenticate.verifyCodeAndFormData.randomCode"]===$post->randomCode){
8
 
9
	#加上狀態識別碼
10
	$post->status="true";
11
 
12
	#msg
13
	$post->msg="send mail successfully";
14
 
15
	#redirection
16
	$post->href="https://www.qbpwcf.org";
17
 
18
	#refresh
19
	$post->refresh="true";
20
 
21
	}#if end
22
 
23
#反之驗證密碼失敗
24
else{
25
 
26
	$post->status="false";
27
 
28
	#error
29
	$post->error="send mail failed";
30
 
31
	}#else end
32
 
33
#迴應json
34
echo json_encode($post);
35
 
36
?>