bhq@iemsoft.cn
2018-11-27 3e083bc512141a008fecae0c6cfe3e6e9b9e2c3d
commit | author | age
3e083b 1 <?php
B 2
3 /**
4  *  证书反查文件
5 */
6
7 define('IN_ECS', true);
8
9 require(dirname(__FILE__) . '/includes/init.php');
10
11 /*------------------------------------------------------ */
12 //-- 证书反查
13 /*------------------------------------------------------ */
14 $session_id = empty($_POST['session_id']) ? '' : trim($_POST['session_id']);
15
16 if (!empty($session_id))
17 {
18
19     $sql = "SELECT sesskey FROM " . $ecs->table('sessions') . " WHERE sesskey = '" . $session_id . "' ";
20     $sesskey = $db->getOne($sql);
21     if ($sesskey != '')
22     {
23         exit('{"res":"succ","msg":"","info":""}');
24     }
25     else
26     {
27         exit('{"res":"fail","msg":"error:000002","info":""}');
28     }
29 }
30 else
31 {
32     exit('{"res":"fail","msg":"error:000001","info":""}');
33 }
34
35 ?>