X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=include%2Fuser.php;h=0273183d0ba5a99b909f8319362ac91c82881527;hp=6cc96370bac78718f1e1a8510cecd5be7213e339;hb=6206ef89ad9a9a1a541ecb67971815d11f12199b;hpb=c1585e23cb3ea757674c234c9193889b4f2f2090 diff --git a/include/user.php b/include/user.php index 6cc9637..0273183 100644 --- a/include/user.php +++ b/include/user.php @@ -53,8 +53,9 @@ if(myisset("forgot")) " $newpw \n". "to log into the server. The new password is valid for 24h, so make\n". "sure you reset your password to something new. Your old password will\n". - " also still be valid until you set a new one\n"; - mymail($email,$EmailName."recovery ",$message); + "also still be valid until you set a new one.\n"; + $subject = $EmailName.' Recovery'; + sendmail($email,$subject,$message); /* we save these in the database */ DB_set_recovery_password($myid,md5($newpw)); @@ -153,7 +154,7 @@ else $Multi = ($r[5]>1) ? "multi" : ""; if($r[4]=='pre') echo " p \n"; - else if ($r[4]=='gameover') + else if (in_array($r[4],array('gameover','cancel-timedout','cancel-nines','cancel-noplay','cancel-trump'))) { echo " "; if($r[5]<2) @@ -164,7 +165,7 @@ else } else echo " P \n"; - if($r[4] != 'gameover') + if($r[4] == 'pre' || $r[4] == 'play') { echo "\n\n "; if($r[3]==$myid || !$r[3]) @@ -189,8 +190,7 @@ else echo "(it's $name's turn)\n"; }; if(time()-strtotime($r[2]) > 60*60*24*30) - echo "Cancel?". - " (clicking here is final and can't be restored)"; + echo "Cancel? "; } } echo "\n\n";