table('sessions') . " WHERE sesskey = '" . $session_id . "' "; $sesskey = $db->getOne($sql); if ($sesskey != '') { exit('{"res":"succ","msg":"","info":""}'); } else { exit('{"res":"fail","msg":"error:000002","info":""}'); } } else { exit('{"res":"fail","msg":"error:000001","info":""}'); } ?>