X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=include%2Fcancelgame.php;h=df6e98da4309a2e4d0730e14bff044902d6e9c03;hp=98cbca2d351da10ebcebadf8c1c9d118a6c80cf7;hb=059f17ad6897e250b2bdfdc9837a39af62859d7e;hpb=6e7ed2d202da016b9a74256371369cc41201df2e diff --git a/include/cancelgame.php b/include/cancelgame.php index 98cbca2..df6e98d 100644 --- a/include/cancelgame.php +++ b/include/cancelgame.php @@ -1,5 +1,5 @@ +/* Copyright 2006, 2007, 2008, 2009, 2010, 2011, 2012 Arun Persaud * * This file is part of e-DoKo. * @@ -24,9 +24,6 @@ if(!isset($HOST)) exit; -/* display the menu */ -output_status(); - /* you should only get here from a game page, so $me should be set */ if(!myisset("me")) { @@ -62,8 +59,7 @@ if(time()-strtotime($r[0]) > 60*60*24*30) /* = 1 month */ $userids = DB_get_all_userid_by_gameid($gameid); foreach($userids as $user) { - $subject = "Game ".DB_format_gameid($gameid)." canceled (timed out)"; - mymail($user,$subject,$message); + mymail($user,$gameid, GAME_CANCELED_TIMEOUT, $message); } /* set gamestatus to canceled */