메일보내기 메일주소를 도메인과 동일하게 권장하는 문구 추가

This commit is contained in:
thisgun
2022-08-25 10:10:29 +09:00
parent 0d02afd712
commit 5ad2307175
3 changed files with 18 additions and 0 deletions

View File

@ -421,6 +421,16 @@ function get_sanitize_input($s, $is_html = false)
return $s;
}
function domain_mail_host($is_at=true){
list($domain_host,) = explode(':', $_SERVER['HTTP_HOST']);
if ('www.' === substr($domain_host, 0, 4)) {
$domain_host = substr($domain_host, 4);
}
return $is_at ? '@'.$domain_host : $domain_host;
}
function check_log_folder($log_path, $is_delete = true)
{