-
Posts
240 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Everything posted by bass
-
This is for real aircraft)Here I'm doing now Board the flight schedules of the API the departure-arrival.
-
I found only XML pilot status.Started to do code for a website that displayed a "passport pilot to vatsim"This is what I get: (pilot name) ( surname ) Pilot/Observer - rating 2013-05-05 12:48:16 - date of registration in vatsim P0 - the designation of the rating UA - country Europe - region Russia - division 0 - ATC time 283.551 - flight hours
-
Real flight Yandex API
-
There is a module (API phpvms) but I was not able to get to work on the site. Nopishite may TOM respond.
-
Hi.I was never able to get anything via the APITOM you can do one page with code (example) how to request a list of pilots and bring to the page?
-
Who is using this script at all? There is a ready example? There are difficulties with the transfer and do not quite understand that you want to add to the site head)))
-
The answer I have just the number "1" You can show an example of an authorization code that must be on the pages?
-
I want to get through the API pireps/view shedules pilots The statistics of the company. I tried a request in this form: (does not work) <?php $a = trim(strip_tags($_GET["a"])); ?> <?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://my.site.ru/action.php/api/pilots/$a"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($ch, CURLOPT_HEADER, FALSE); $response = curl_exec($ch); curl_close($ch); $json=json_decode($response,true); echo'<pre>',print_r($json),'</pre>'; ?>
-
Hi, trying to get the data from database through your module, but I can't. Make a request like this: my.site.ru/index.php/api/pilots not working my.site.ru/api/pilots not working <?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://my.site.ru/api/pilots"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($ch, CURLOPT_HEADER, FALSE); $response = curl_exec($ch); curl_close($ch); $json=json_decode($response,true); echo'<pre>',print_r($json),'</pre>'; ?>
-
Prompt and you can display the data in a json API?
-
You have the free version of the template.Can help him to finish)
-
No, it only shows those who are online right now.
-
http://api.vateud.net/ Look at this site, if you find the right data, I will help them to display)
-
In this topic, I wrote this code.
-
All that could be done. It shows the ATC online at the airport
-
There is a link to the data API Vatsim and I will.
-
Help bring the search form airports in frontpage_mainI put this code, but the data from the database are not displayed. <select type="text" name="a" class="input-text full-width" placeholder="Введите код годода отправления" /> <option value="">ИКАО вылета</option> <?php if(!$depairports) $depairports = array(); foreach($depairports as $airport) { echo '<option value="'.$airport->icao.'">'.$airport->icao .' ('.$airport->name.')</option>'; } ?> </select>
-
A small Supplement.Now also shows online vatsim ATC at airports . <div class="col-md-3"> <div class="panel panel-primary"> <div class="panel-heading"> <h3 class="panel-title">ATC в сети</h3> </div> <div class="panel-body"> <?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://api.vateud.net/online/atc/$name->icao.json"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($ch, CURLOPT_HEADER, FALSE); $response = curl_exec($ch); curl_close($ch); $json=json_decode($response,true); ?> <?php foreach($json as $row) { ?> <tr> <td><?php echo $row['callsign'];?></td><br> <td><?php echo $row['frequency'];?></td><br> <td><?php echo $row['name'];?></td><br> </tr> <hr> <?php } ?> </div></div></div> in airport_info.tpl
-
<?php $cidvatsim = PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID'); ?> <?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://api.vateud.net/members/id/$cidvatsim.json"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($ch, CURLOPT_HEADER, FALSE); $response = curl_exec($ch); curl_close($ch); $json=json_decode($response,true); ?> <div id="vf"> <ul class="blocklist"> <li>Дивизион : <?php echo $json['division']; ?></li> <li>Ранг Vatsim : <?php echo $json['humanized_pilot_rating']; ?></li> <li>Регион : <?php echo $json['region']; ?></li> <li>country : <?php echo $json['country']; ?></li> </ul>
-
I tried to put this code in the query, but it doesn't work( <?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://api.vateud.net/members/id/$userinfo->cid.json"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); --------------------------------------------------- "http://api.vateud.net/members/id/$userinfo->cid.json" $userinfo->cid = <?php echo PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID'); ?> <?php echo PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID'); ?>
-
a small code that displays information on the VATSIM pilotin order to work the script I made in the database phpvms_pilots column "CID" and put in his ID number vatsim pilots. <div class="col col_5_of_12"> <div class="panel panel-primary"> <div class="panel-heading"> <h3 class="panel-title"><i class="fa fa-wifi" aria-hidden="true"></i> Vatsim Pilot </h3> </div> <div class="panel-body"> <?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://api.vateud.net/members/id/$userinfo->cid.json"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($ch, CURLOPT_HEADER, FALSE); $response = curl_exec($ch); curl_close($ch); $json=json_decode($response,true); ?> <div id="vf"> <ul class="blocklist"> <li>Дивизион : <?php echo $json['division']; ?></li> <li>Ранг Vatsim : <?php echo $json['humanized_pilot_rating']; ?></li> <li>Регион : <?php echo $json['region']; ?></li> <li>country : <?php echo $json['country']; ?></li> </ul> </div> </div> </div> </div>
-
$start = $pirep->log; <!-- Огни, минус 5% --> $string1 = strstr($start, 'Landing Lights OFF'); $string2 = substr($string1, 21, 6); //echo $string2; if($string2 >= '-10000'){ $lights = '5'; echo "Landing lights are not turned off when you climb from 5000 ft. up to 10,000 ft.: -5%"; } That's not a big sample code that simply displays a violation, but does not save.
-
there is not a module, just added the code directly in the page pireps_viewport .... This code is made under the paid version of kAcars The main part of this code I published on this forum.
-
I have such code, which considers an overall assessment of the flight. Speed exceedingSpeed below 10,000 FTLanding lightsThe rate of descentThe stallTake-off and landing in complicated meteorological conditionsThe angle at take-offCrashThe impact of the nose landing gearand so on... Here is an example All assessments are stored in the database and it shows the TOP pilot for the month.
-
This template is one of the first things I did. You can say this is my training for creating templates.