<?php require_once('includes/requirelogin.inc.php'); $mb_id=current_mb_id(); $authcode=TGET('authcode'); $invitecode=TGET('invitecode'); $dataset['authcode']=$authcode; $dataset['invitecode']=$invitecode; $inviteinfostr=base64_decode($invitecode); $inviteinfo=unserialize($inviteinfostr); if ($inviteinfo['mb_id']!=$mb_id) { redirect("qx-cmd-team.invite.authenticate.failure.html"); return; } $DBConn->connect(true); $course=db_load_course_by_id($DBConn,$inviteinfo['cs_id']); $compere=db_load_compere($DBConn,$course['mb_id_owner']); $dataset['cp_name']=$compere['cp_name']; $dataset['cs_name']=$course['cs_name']; $dataset['mb_id_compere']=$course['mb_id_owner']; $IDR_fields=db_get_course_info_requests($DBConn,$course['cs_id']); $IDFmap=loadInfoDisclosureFields(); $dataset['IDR-FIELD']=array(); foreach ($IDR_fields as $field) array_push($dataset['IDR-FIELD'],array('text'=>$IDFmap[$field['id_field']])); $dataset['IDR-REQUIRED']=$dataset['IDR-FIELD']?array(0):array(); $dataset['IDR-NONE']=$dataset['IDR-FIELD']?array():array(0); ?>