InitGP(array("action", "remark", "gid", "num", "gids", "cityid")); //初始化变量全局返回 include INC_PATH . "/member.class.php"; $m = new memberclass(); AjaxHead(); if ($action == 'checkemail') { $jsondata = json_decode(str_replace("'", '"', file_get_contents('php://input'))); $email = $jsondata->email; $info = $m->checkemail($email, true); echo json_encode($info); exit; } else { if ($action == 'checkuname') { $jsondata = json_decode(str_replace("'", '"', file_get_contents('php://input'))); $username = $jsondata->username; $info = $m->checkuname($username, true); echo json_encode($info); exit; } elseif ($action == 'checkcode') { InitGP(array("code")); //初始化变量全局返回 include INC_PATH . "/code/securimage.php"; $img = new Securimage(); $valid = $img->check($code); if ($valid != true) { exit('0'); } else { exit('1'); } } else { if ($action == 'resendemail') {