X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=index.php;h=e86854cea5addfe466f243cd0d628f4f337af8ac;hp=de9d3820179a8ab386ab40ae11bc5bb35171f716;hb=d0237ebe9fa2aa6916b644766d97ff43ac4b945e;hpb=2ff9f520289139181145fccd952800ec18cee9e5 diff --git a/index.php b/index.php index de9d382..e86854c 100644 --- a/index.php +++ b/index.php @@ -3,26 +3,58 @@ "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
-If you find bugs, please list them in the wiki.
\n"; - -echo "Names that are underlined have a comment, which you can access by hovering over the name with your mouse ;)
\n"; +/***************** M A I N **************************/ $history=array(); @@ -402,8 +486,8 @@ $history=array(); if(file_exists("status.txt")) $lines = file("status.txt"); - else - die("no file"); +else + die("no file"); /* check if we want to start a new game */ if( isset($_REQUEST["PlayerA"]) && @@ -454,7 +538,7 @@ if( isset($_REQUEST["PlayerA"]) && else die("no random file"); - $randomNR = explode( ":", $random[2] ); + $randomNR = explode( ":", $random[4] ); /* write initial status into file */ $output = fopen("status.txt","w"); @@ -517,9 +601,9 @@ if(sizeof($lines)<2) \n"; } } - /* *** * * * * *** @@ -565,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"])) && !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 poverty is not implented. so I guess you need to play a normal game, even if you have less than 3 turmp :(...sorry
+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
+