X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=rss.php;h=006daa22396c766a4f5cfff20411a4eab8089acb;hp=7d408605b27f27412f4f8adec609802128b7ae0f;hb=HEAD;hpb=6e7ed2d202da016b9a74256371369cc41201df2e diff --git a/rss.php b/rss.php index 7d40860..006daa2 100644 --- a/rss.php +++ b/rss.php @@ -1,5 +1,5 @@ +/* Copyright 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 Arun Persaud * * This file is part of e-DoKo. * @@ -72,9 +72,13 @@ header("Content-Type: text/xml"); ?> E-DoKo Feed -Know when it is your turn '._('Know when it is your turn')."\n"; + global $WIKI,$INDEX, $HOST; /* output last creation date */ @@ -96,15 +100,15 @@ echo "\n\n"; $result = DB_query("SELECT Hand.hash,Hand.game_id,Game.player from Hand". " LEFT JOIN Game On Hand.game_id=Game.id". - " WHERE Hand.user_id='$id'". - " AND ( Game.player='$id' OR ISNULL(Game.player) )". + " WHERE Hand.user_id=".DB_quote_smart($id). + " AND ( Game.player=".DB_quote_smart($id)." OR ISNULL(Game.player) )". " AND ( Game.status='pre' OR Game.status='play' )". " ORDER BY Game.session" ); while( $r = DB_fetch_array($result)) { echo "\n"; - echo "game ".DB_format_gameid($r[1])."\n"; + echo ""._('game').' '.DB_format_gameid($r[1])."\n"; $url=$INDEX."?action=game&me=".$r[0]; echo "\n"; $date = DB_get_game_timestamp($r[1]); @@ -112,7 +116,7 @@ echo "\n\n"; $date = date("Y-m-d",$timestamp); echo "tag:doko.nubati.net,$date:$url\n"; echo "".date(DATE_ATOM,$timestamp)."\n"; - echo "Please use the link to access the game.\n"; + echo ''._('Please use the link to access the game.')."\n"; echo "\n\n"; }