X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=index.php;h=cd03f579b3e5ea746c606efc0b0645e72a6d7a36;hp=687f15dc5b58d86a6ee218cb4f720b2b1c1135f8;hb=90c9f0ee729d1960df96989b2b38d77f16ec1284;hpb=a7119a6c9ee1ecbc43edb4164b03b1d8a97fd107 diff --git a/index.php b/index.php index 687f15d..cd03f57 100644 --- a/index.php +++ b/index.php @@ -1,9 +1,6 @@ Setup not completed"; + echo "You need to set \$ADMIN_NAME in config.php."; + output_footer(); + exit(); + } +if(!isset($ADMIN_EMAIL)) + { + output_header(); + echo "
you need to answer the question.
"; + echo "You need to answer the question.
"; DB_set_hand_status_by_hash($me,'start'); } else { if($_REQUEST["in"] == "no") { - /* cancle the game */ + /* cancel the game */ $message = "Hello, \n\n". "the game has been canceled due to the request of one of the players.\n"; @@ -325,7 +370,7 @@ else if(myisset("me")) foreach($userids as $user) { $To = DB_get_email_by_userid($user); - mymail($To,$EmailName."game canceled",$message); + mymail($To,$EmailName."game $gameid canceled",$message); } /* delete everything from the dB */ @@ -333,7 +378,7 @@ else if(myisset("me")) } else { - echo "thanks for joining the game..."; + echo "Thanks for joining the game..."; $mycards = DB_get_hand($me); sort($mycards); @@ -342,7 +387,7 @@ else if(myisset("me")) display_card($card,$PREF["cardset"]); echo "\n"; - check_for_sickness($me,$mycards); + output_check_for_sickness($me,$mycards); /* move on to the next stage*/ DB_set_hand_status_by_hash($me,'check'); @@ -354,17 +399,20 @@ else if(myisset("me")) /* ok, user is in the game, saw his cards and selected his vorbehalt * so first we check what he selected */ - echo "Processing what you selected in the last step...You need to answer the questions.
"; + DB_set_hand_status_by_hash($me,'init'); } else { + echo "Processing what you selected in the last step...