X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=index.php;h=e86854cea5addfe466f243cd0d628f4f337af8ac;hp=99ef80560c89f40acc78e60c71bd6a7f9352ebe7;hb=d0237ebe9fa2aa6916b644766d97ff43ac4b945e;hpb=141a47a3f1a6ffa0eb48c6664c3d17eb0abaf1ad diff --git a/index.php b/index.php index 99ef805..e86854c 100644 --- a/index.php +++ b/index.php @@ -3,24 +3,250 @@ "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
-no game in progress, please input 4 names and email addresses, please make sure that the addresses are correct!
\n"; } } - /* *** * * * * *** @@ -481,56 +646,59 @@ if(sizeof($lines)<2) */ if(isset($_REQUEST["b"])) { - $b=$_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"]) ) - { + 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 "
\n";
+ display_card($card);
+ echo "
aehm... at the moment please just answer everything with no, still need to implement this
+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
+ +=0) + { + $message = "Please try this link: ".$host."?me=".$hash[$ok]."\n". + "\n if this doesn't work, contact the admin.error4\n"; + mymail($recovery,"[DoKo-Debug] recovery ",$message); + echo "An email with the game information has been sent.
\n"; + } + else + { + echo "can't find this email address, sorry.
\n"; + }; + } /* end recovery */ + } else - { + { /* $me is set */ $me = $_REQUEST["me"]; - - echo "game in progress and you are in it