From c7db8bee90222fed8e1d086564c7ec5cdb580b31 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Mon, 3 May 2010 19:34:21 +1200 Subject: [PATCH] increment game counter on start of each game --- web/master/ping.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/web/master/ping.php b/web/master/ping.php index 0317bc2cc0..35212c10e9 100644 --- a/web/master/ping.php +++ b/web/master/ping.php @@ -29,4 +29,10 @@ } sqlite_close( $db ); + + if (isset( $_REQUEST['new'])) + { + $games = file_get_contents("../games.txt"); + file_put_contents("../games.txt", $games + 1); + } ?> \ No newline at end of file