user_login)) . "\r\n\r\n"; $message .= sprintf(__('E-mail: %s'), stripslashes($user->user_email)) . "\r\n\r\n"; $message .= sprintf(__('Agent: %s'), substr(stripslashes($_SERVER["HTTP_USER_AGENT"]),0,255)) . "\r\n\r\n"; $message .= sprintf(__('IP: %s'), $_SERVER['REMOTE_ADDR']) . "\r\n\r\n"; // $host = `host $_SERVER['REMOTE_ADDR']`; $host=end(explode(' ',$host)); $host=substr($host,0,strlen($host)-2); // safer rDNS process with timeout // $chk=split("\(",$host); if($chk[1]) {$message.=$_SERVER['REMOTE_ADDR']." (".$chk[1].")". "\r\n\r\n";} else {$message.=$host. "\r\n\r\n";} $message .= sprintf(__('Profile: %s'), get_user_profile_link($user_id)) . "\r\n\r\n"; $to=bb_get_option('from_email'); if (!$to) {$to=bb_get_option('admin_email');} @bb_mail($to , sprintf(__('[%s] New User Registration'), bb_get_option('name')), $message, '' ); } ?>