Entrenamiento | VATCA - spanish

Vaya al Contenido

Menu Principal:

Entrenamiento | VATCA

Entrenamiento



Piloto/OBS
STU1
STU2
STU3
CTR1
CTR3
INS1
INS3
SUP
ADM



$value){ // all ATC if( preg_match ("/\batc\b/i",$value)) // All VATSUR's ATC Position. example: SAAR_APP; SCEL_TWR if ( preg_match ("/^s/i",$value)&&! preg_match ("/^sb_/i",$value)) // Clear Observers and ATIS Positions if (! preg_match ("/_obs/i",$value)&&! preg_match ("/_atis/i", $value)) $atc[$key]=$value; //Array with all VATSUR's ATC if(isset($atc)){ foreach($atc as $key=>$value2){ $description=explode(':',$value2); $atc_online[$key]=array( 'position'=>$description[0], 'ID'=>$description[1]); } } // all pilots if(preg_match("/\bpilot\b/i",$value)) { $pilot=explode(':',$value); /** insert here mysql and php instructions * compare ID member in table members with $pilot[1]. * replace if('member exist') **/ if ('member exist') $pilots_online[$key]=array('callsign'=>$pilot[0], 'ID'=>$pilot[1]); } //end pilot } // end search members /** ATC STATS * replace this lines by mysql and php instructions. * compare connected members with table ATC_now. * If member continue connected, add 10 minutes or time of cron job in field: 'minutes' in table stats_ATC. * if member isn't in table ATC_now, verify if exist in table stats_ATC. if not, insert into table stats_ATC. * Truncate table ATC_now * Insert array $atc_online into table ATC_now **/ echo'
'; 
					print_r($atc_online);
					 echo'
'; /** Pilots STATS * replace this lines by mysql and php instructions. * compare connected members with table pilots_now. * If member continue connected, add 10 minutes or time of cron job in field: 'minutes' in table stats_pilots. * if member isn't in table pilots_now, verify if exist in table stats_pilots. if not, insert into table stats_pilots. * Truncate table pilots_now * Insert array $pilots_online into table pilots_now **/ echo'
'; 
					print_r($pilots_online); 
					echo'
'; } } ?>
 
Regreso al contenido | Regreso al menu principal