summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2007-11-03 13:39:56 +0100
committerArun Persaud <arun@nubati.net>2007-11-08 13:03:07 +0100
commita5684ef10fbd20dd335b99a0d53555498842268a (patch)
treea42ed1f1434980f0a47f4183a10c667f2f1811b6 /index.php
parent19f70fcd8c26c4a6279addcf8c29fba8f21e13da (diff)
downloade-DoKo-a5684ef10fbd20dd335b99a0d53555498842268a.tar.gz
e-DoKo-a5684ef10fbd20dd335b99a0d53555498842268a.tar.bz2
e-DoKo-a5684ef10fbd20dd335b99a0d53555498842268a.zip
NEW FEATURE: statistics page, version1
added a few statistics to an extra page, still not completely done, but already working
Diffstat (limited to 'index.php')
-rw-r--r--index.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/index.php b/index.php
index 77c2c22..cf14fbd 100644
--- a/index.php
+++ b/index.php
@@ -1547,7 +1547,7 @@ else if(myisset("me"))
if($re>$p-$offset)
mysql_query("INSERT INTO Score".
- " VALUES( NULL,NULL,$gameid,'re',NULL,NULL,'$p')");
+ " VALUES( NULL,NULL,$gameid,'re',NULL,NULL,'".(240-$p)."')");
}
/* re called something and won */
@@ -1574,11 +1574,11 @@ else if(myisset("me"))
if($re>$p-$offset)
mysql_query("INSERT INTO Score".
- " VALUES( NULL,NULL,$gameid,'contra',NULL,NULL,'$p')");
+ " VALUES( NULL,NULL,$gameid,'contra',NULL,NULL,'".(240-$p)."')");
}
- /* re called something and won */
- if($call_re!=NULL)
+ /* contra called something and won */
+ if($call_contra!=NULL)
foreach(array(0,30,60,90,120) as $p)
{
if($call_contra<$p+1)