X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=index.php;h=a4ace5cffb42b107dafd8996d2e0065d34b11ce1;hp=e86854cea5addfe466f243cd0d628f4f337af8ac;hb=ee59b6b39abc3691431b027785341aa308d1313c;hpb=d0237ebe9fa2aa6916b644766d97ff43ac4b945e diff --git a/index.php b/index.php index e86854c..a4ace5c 100644 --- a/index.php +++ b/index.php @@ -1,520 +1,133 @@ - - -
-Game $gameid has been cancled.
You need to wait longer before you can cancle a game...
\n"; + } +else if(myisset("me")) { -?> -no game in progress, please input 4 names and email addresses, please make sure that the addresses are correct!
- \n"; - } - } -/* *** - * * * - * *** - * * * - * *** - * yes? email him his hand, ask for solo, poverty, email every move or every card? - */ - if(isset($_REQUEST["b"])) - { - $b = $_REQUEST["b"]; - - if( ereg("s",$player[$b]["option"]) && $game["init"]<4) - { /* the player already filled out everything */ - echo "just wait for the game to start"; - } - else if( (!isset($_REQUEST["in"])|| !isset($_REQUEST["update"])) && !ereg("i",$player[$b]["option"])) - { /* the player didn't fill out the form at "a" correctly */ - echo "go back to "; - echo " here and fill out the formyour cards are:
\n";
- foreach($mycards as $card)
- display_card($card);
- echo "
aehm... at the moment poverty is not implented. so I guess you need to play a normal game, even if you have less than 3 trump :(...sorry
+ if($ok) + { + echo "Everyone has finished checking their cards, let's see what they said...An email with the game information has been sent.
\n"; - } - else - { - echo "can't find this email address, sorry.
\n"; - }; - } /* end recovery */ - } + if($r) + echo " added you to the database"; else - { /* $me is set */ - $me = $_REQUEST["me"]; - - /* show history */ - /* old tricks as list */ - echo "