X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=include%2Ffunctions.php;h=191823d6de6f45db89e3c144ea307c8522dcbdac;hp=a332347d38213a4c93c6756061d48e8ce6adbf6d;hb=64586775883969c933517edc541b6f5a0878bd7d;hpb=2a529cf743274f63cd15f7f33b58b943338e1049 diff --git a/include/functions.php b/include/functions.php index a332347..191823d 100644 --- a/include/functions.php +++ b/include/functions.php @@ -218,6 +218,10 @@ function sendmail($To,$Subject,$message) if(isset($EMAIL_REPLY)) $header .= "From: e-DoKo daemon <$EMAIL_REPLY>\r\n"; + $header .= "Content-Type: text/plain; charset = \"UTF-8\";\r\n"; + $header .= "Content-Transfer-Encoding: 8bit\r\n"; + $header .= "\r\n"; + if($debug) { /* display email on screen, @@ -228,15 +232,12 @@ function sendmail($To,$Subject,$message) "$1", $message); echo "
To: $To
"; - if($header != "") - echo $header."
"; + echo $header."
"; echo "Subject: $Subject
$message
\n"; } else - if($header != "") - mail($To,$Subject,$message,$header); - else - mail($To,$Subject,$message); + mail($To,$Subject,$message,$header); + return; } @@ -1086,8 +1087,8 @@ function display_single_user($r,$start=0) $stop = substr($vacation[1],0,10); $comment = $vacation[2]; - $title = "begin: $start end: $stop $comment"; - echo " $gravatar (on vacation until $stop) \n"; + $title = _("begin:")." $start "._("end:")." $stop $comment"; + echo " $gravatar "._("(on vacation until $stop)")." \n"; } else echo " $gravatar \n"; @@ -1449,7 +1450,7 @@ function format_score_table_ascii($score) /* truncate table if we have too many games */ $max = sizeof($score); - if($max>6) $output.=" (table truncated to last 6 games)\n"; + if($max>6) $output.=" "._("(table truncated to last 6 games)")."\n"; /* output header */ foreach($score[0]['players'] as $id=>$points)