X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=index.php;h=ab4ff12828abe66e8a617e7d53ca6055ebf2f2cc;hb=5b50b2d1e2eb222ddc6000d68ec612a76347ded9;hp=afb5de1948b2b80b062c3e0b209ca680f6bf3011;hpb=2fa97de2329f977e9570192538f084476acff687;p=contractor-progress.git diff --git a/index.php b/index.php index afb5de1..ab4ff12 100644 --- a/index.php +++ b/index.php @@ -118,12 +118,12 @@ function _index_main() { # make sure they've filled out the tiny user agreement $tiny_agreement = db_get_value('people', 'tiny_agreement', 'where id=%i', $client_id); - if($tiny_agreement < 30) { + if($tiny_agreement < 30 || $tiny_agreement > 999) { return './tiny_agreement'; } if(logged_in_as_contractor()) { - tem_show('su_link'); + tem_show('contractor_links'); tem_show('needs_attention_header'); $GLOBALS['unpaid_totals'] = array(); @@ -138,6 +138,7 @@ function _index_main() { totals_summary($GLOBALS['unpaid_totals']); task_summary('finished_paid', 'where state=%i && paid = 1 order by finished_at desc limit 20', TASK_FINISHED); } else { + tem_show('not_contractor_links'); if(db_count('tasks', 'where client_id=%i && (state=%i || state=%i || state=%i || state=%i)', $client_id, TASK_DRAFT, TASK_NEEDS_CLARIFICATION, TASK_NEEDS_GO_AHEAD, TASK_NEEDS_TESTING)) { tem_show('needs_attention_header'); task_summary('needs_approval', 'where client_id=%i && (state=%i || state=%i) order by id', $client_id, TASK_NEEDS_GO_AHEAD, TASK_NEEDS_TESTING);