X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=functions.php;h=3726cf115f00888f37fbdc6aafe98d72a368c066;hp=1c7b29b6f239a7d9e592868f861a3a71d6d925ac;hb=01e982e40cc5679cdb4647aec7c37d3d789eeb4b;hpb=e70edfecc1252420ceb06f55a97e1f14f76a767a diff --git a/functions.php b/functions.php index 1c7b29b..3726cf1 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 "