X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=functions.php;h=a9ea34bc9570e9efee9bc50ee96a799a0b040c54;hp=a52ad7a86cca139b4660d31f34c75b9ab4230977;hb=5db5f9e9ee3544b1a2b82ad1dc4e250530dd8e64;hpb=987f4b37750c1c4c6d414a3cb8ae5e7b798fe41a diff --git a/functions.php b/functions.php index a52ad7a..a9ea34b 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"; + } + $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