0, 'message' => '', 'content' => ''); if(!$word_com || strlen($word_com) > 30) { $result_com['error'] = 1; die($json_com->encode($result_com)); } $word_com = str_replace(array(' ','*', "\'"), array('', '', ''), $word_com); $email_name_arr = explode("@", $word_com); $email_name = $email_name_arr[0]; $_CFG['email_domain'] =str_replace(" ", "",$_CFG['email_domain']); $email_domain_arr = explode(",", str_replace(",",",",$_CFG['email_domain'])); $logdb=array(); foreach($email_domain_arr AS $key=>$edomain) { $email_domain_arr[$key] = $email_name.'@'.$edomain; } foreach($email_domain_arr AS $email_domain) { if (stristr($email_domain, $word_com)) { $logdb[] = $email_domain; } } $smarty->assign('logdb', $logdb); if(count($logdb)==0) { $result_com['content'] = ''; } else { $result_com['content'] = $smarty->fetch('library/email_tip.lbi'); } die($json_com->encode($result_com)); } ?>