X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=index.php;h=bae38d4c778adcc6bc72563167053b79cb9a5042;hp=c93b18f9031723bd46c46ee459a8bfc75ed4fed5;hb=1332ef44c9587295fe054c73415d405247fb297d;hpb=d4a85c497c76daa0c5d6481ffe2239590bf0c401 diff --git a/index.php b/index.php index c93b18f..bae38d4 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...