/
doAction.php
58 lines (48 loc) · 913 Bytes
/
doAction.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
<?php
/**
* Created by PhpStorm.
* User: administrator
* Date: 2015/7/17
* Time: 18:34
*/
require_once('include.php');
$action = $_GET['action'];
if($action == 'registerName'){
$message = registerName();
echo $message;
}elseif($action == 'registerEmail'){
$message = registerEmail();
echo $message;
}elseif($action == 'registerPwd'){
$message = registerPwd();
echo $message;
}elseif($action == 'confirmPwd'){
$message = confirmPwd();
echo $message;
}else{
}
if($action == 'register'){
echo register();
}
if($action == 'issue'){
echo issue();
}
if($action == 'userInfo'){
echo userInfo();
}
if($action == 'login'){
echo login();
}
if($action == 'logout'){
logout();
}
if($action == 'active'){
echo active();
}
if($action == 'forget'){
$toMail = $_POST['email'];
echo forgetPwd($toMail);
}
if($action == 'reset'){
echo resetPwd();
}