X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=functions.php;h=69e208c0e7d1b1deb328d819ff1e15d76a0a9288;hp=1c7b29b6f239a7d9e592868f861a3a71d6d925ac;hb=014c31b6a22d4ab2f43eb58ed2acde02042c402b;hpb=e70edfecc1252420ceb06f55a97e1f14f76a767a diff --git a/functions.php b/functions.php index 1c7b29b..69e208c 100644 --- a/functions.php +++ b/functions.php @@ -1,100 +1,282 @@ Setup not completed"; + echo "You need to set \$ADMIN_NAME in config.php."; + output_footer(); + exit(); + } + if(!isset($ADMIN_EMAIL)) + { + output_header(); + echo "
nothing implemented so far, but give it a try anyway ;)
- - \n"; + if( 12 <= ($NRcards + $offset)) + { + return 1; + } + else if ( 9 <= ($NRcards + $offset)) + { + if( ($mincall>=0 && $mincall==120) ) + return 1; + } + else if ( 6 <= ($NRcards + $offset)) + { + if( ($mincall>=0 && $mincall<=90 && $what<=60 ) ) + return 1; + } + else if ( 3 <= ($NRcards + $offset)) + { + if( ($mincall>=0 && $mincall<=60 && $what<=30 ) ) + return 1; + } + else if ( 0 <= ($NRcards + $offset)) + { + if( ($mincall>=0 && $mincall<=30 && $what==0 ) ) + return 1; + }; + break; + } - return; + return 0; } -function display_status() +function display_table () { - echo "".substr($r[1],0,2)." | \n"; } - - return $zone; + $output.="P | \n
".$player[$key]['points']." | \n"; + } + $output.="".abs($re_score); + + /* check for solo */ + if(DB_get_gametype_by_gameid($gameid)=="solo") + $output.= " S"; + $output.=" | \n