<?php require_once('includes/requirecompere.inc.php'); require_once('includes/memberinfo.inc.php'); require_once('includes/compere.info.inc.php'); $mb_id=current_mb_id(); $dataset['CONFIRM']=array(0); $DBConn->connect(true); member_refresh_login($DBConn); clear_compere_limits(); $dataset+=prepare_compere_info_dataset($DBConn,$mb_id); $emails=db_load_member_emails($DBConn,$mb_id,false); $notifiable=false; foreach ($emails as $e) if ($e['me_notify']) { $notifiable=true; break; } $qualified=db_is_compere_qualified($DBConn,$mb_id); $empty_classroom_count=db_count_empty_classroom($DBConn,$mb_id); $dataset['WARNING-CONTENT-NOT-RESERVABLE']=$qualified?array():array(0); $dataset['empty_classroom_count']=$empty_classroom_count; $dataset['NOT-QUALIFIED']=$qualified?array():array(0); $dataset['NOT-NOTIFIABLE']=$notifiable?array():array(0); $dataset['NO-EMAIL']=$emails?array():array(0); $dataset['LEFT-SUBMENU']=array(0); $dataset['VERSION-AVAIL']=$Config->VERSION?array(0):array(); $dataset['VERSION']=$Config->VERSION; ?>