X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=functions.php;h=af0cc8eef61ddd92e314852421e3ec5a186ca4ed;hp=0ce10e29801ad8b75d484a71fce53eaae51ffd7e;hb=42aae8a38789ec102478db6dc58795c4b095546e;hpb=c997188d74716ef29f82da903435b95eec736d79 diff --git a/functions.php b/functions.php index 0ce10e2..af0cc8e 100644 --- a/functions.php +++ b/functions.php @@ -1,100 +1,290 @@ 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"; + } + $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