X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=functions.php;h=29ca96de0891b206ecdec7ca1b07cd7bf6a42b94;hp=a52ad7a86cca139b4660d31f34c75b9ab4230977;hb=4d12bf8c86b466aff0ba2252ecb42830478a1a8a;hpb=987f4b37750c1c4c6d414a3cb8ae5e7b798fe41a diff --git a/functions.php b/functions.php index a52ad7a..29ca96d 100644 --- a/functions.php +++ b/functions.php @@ -1,21 +1,5 @@ \n"; - else - echo "\"".card_to_name($card-1)."\"\n"; - - return; -} - -function display_link_card($card) -{ - if( $card/2 - (int)($card/2) == 0.5) - echo "\"\"\n"; - else - echo "\"\"\n"; - return; -} function create_array_of_random_numbers() { @@ -323,112 +286,32 @@ function create_array_of_random_numbers() return $r; } -function check_want_to_play($me) -{ - ?> -
- Do you want to play a game of DoKo? - yes - no
- Do you want to get an email for every card played or only if it your move? - every card - only on my turn
-\n"; - echo "\n"; - echo "\n"; - echo "
\n"; - return; -} -function check_for_sickness($me,$mycards) +function display_cards($me,$myturn) { - ?> -

nothing implemented so far, but give it a try anyway ;)

- -
- - do you want to play solo? - -
- - "; - echo " no
\n"; - } - else - { - echo " no
\n"; - }; - - echo "do you have poverty?"; - if(count_trump($mycards)<4) - { - echo " yes"; - echo " no
\n"; - } - else - { - echo " no
\n"; - }; - - echo "do you have too many nines?"; - if(count_nines($mycards)>4) - { - echo " yes"; - echo " no
\n"; - } - else - { - echo " no
\n"; - }; - - echo "\n"; - echo "\n"; - - echo "
\n"; - return; } -function display_status() +function return_timezone($offset) { - echo "
"; - echo " is someone playing solo, etc?"; - echo "
"; + switch($offset) + { + case '1': + $zone = "Europe/Berlin"; + break; + case '-8': + $zone = "America/Vancouver"; + break; + case '13': + $zone = "Pacific/Auckland"; + break; + default: + $zone = "Europe/London"; + } - return; -} - -function display_news() -{ - global $wiki; - echo "
". - "Please hit shift+reload.

". - "New Database backend, lost a few features on the way.

". - "If you find more bugs, please list them in the wiki.
\n"; - return; -} - -function display_cards($me,$myturn) -{ - return; + return $zone; } ?> \ No newline at end of file