} break; case "checkemail": if (isset($_GET['email'])) { $result = call_user_func_array($action, array($_GET['email'])); if ($result) { $return["isError"] = 1; } else { if (!pb_check_email($_GET['email'])) { $return["isError"] = 2; } else { $return["isError"] = 0; } } } ajax_exit($return); break; } } function checkusername($input_username) { global $member; return $member->checkUserExist($input_username, false); } function checkemail($email) { global $member; return $member->checkUserExistsByEmail($email); } function checkcompanyname($company_name) {
} else { ajax_exit('error'); } } } else { if ($m == 'new') { if ($_POST) { if ($obj->add($_POST)) { ajax_exit($db->insert_id()); } } ajax_exit('error'); } else { if ($m == 'update_password') { if ($id && $value) { $password = end_encode($value); if ($obj->update($id, array('password' => $password))) { ajax_exit('success'); } else { ajax_exit('error'); } } } } } } function ajax_exit($s) { echo $s; die; }