Jump to content

Vangelis

Members
  • Posts

    1076
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by Vangelis

  1. Done i had forgot to replace the keys when i was trying it for another va tell me if you have other problem make sure you add your corect facebook name you will find it when you log in to facebook on the link for example www.facebook.com/your-username-is-here
  2. Because i think english is not your mother language you can send me a pm in netherlands because to be honest i didnt understood what you want Translation Omdat ik denk dat engels is niet je taal je kin me een pm sturen omdat om eerlijk te zijn ik heb niet verstaan wat je wilt doen
  3. Fixed can you please try again ?
  4. How can we help you ? We will need the PilotData.class.php file and a link to your site
  5. I use vatsim weather
  6. Can you put a screenshot ?
  7. If it is for that it is easyer you will just put the class in the class folder and call the function when the pirep is filled if you have any questions here whe are
  8. I wanted to ask you before why do you want to add 1,2,0 in the acars table ? because if you didnt know it it get's empty after some time so there is no point to store the online status by my opinion
  9. I have searched all the filles and i could'nt find where to add a new variable like <%=flight.flightnum%>
  10. Hi As it seems an interest project i have created this function for you save it as chkpilotonline.class.php <?php class chkpilotonline extends CodonModule { public function search_pilot_online($callsign) { //get new file from Vatsim if the existing one is more than 5 minutes old if(!file_exists('vatsimdata.txt') || time()-filemtime('vatsimdata.txt') > 300) { //choose a random download location per Vatsim policy $random = (rand(1, 2)); if ($random == 1) {$url = 'http://fsproshop.com/servinfo/vatsim-data.txt';} if ($random == 2) {$url = 'http://info.vroute.net/vatsim-data.txt';} //get the file $file = new CodonWebService(); $contents = @$file->get($url); //save new file to server $newfile="vatsimdata.txt"; $file = fopen ($newfile, "w"); fwrite($file, $contents); fclose ($file); } //get new file from Ivao if the existing one is more than 5 minutes old if(!file_exists('ivaodata.txt') || time()-filemtime('ivaodata.txt') > 300) { //choose a random download location per Ivao policy $random = (rand(1, 2)); if ($random == 1) {$url = 'http://de1.www.ivao.aero/whazzup.txt';} if ($random == 2) {$url = 'http://eu20.ivan.ivao.aero/whazzup.txt';} //get the file $file = new CodonWebService(); $contents = @$file->get($url); //save new file to server $newfile="ivaodata.txt"; $file = fopen ($newfile, "w"); fwrite($file, $contents); fclose ($file); } $contents_Vatsim = file_get_contents('vatsimdata.txt'); $contents_Ivao = file_get_contents('ivaodata.txt'); if (strpos($contents_Vatsim,$callsign) !== false) { $sql = 'UPDATE '.TABLE_PREFIX.'acarsdata SET network =1 WHERE pilotid='.$callsign ; DB::query($sql); echo $callsign ; echo '<div style="align: center"><img style="height: 18px;" src="http://vatoce.net/newsite/files/3713/3795/8721/vatsim_logo.png"></div>'; } else if (strpos( $contents_Ivao,$callsign) !== false) { $sql = 'UPDATE '.TABLE_PREFIX.'acarsdata SET network =2 WHERE pilotid='.$callsign ; DB::query($sql); echo $callsign ; echo '<div style="align: center"><img style="height: 18px;" src="https://ivao.aero/images/logosmall.jpg"></div>'; } else { $sql = 'UPDATE '.TABLE_PREFIX.'acarsdata SET network =0 WHERE pilotid='.$callsign ; DB::query($sql); echo "Offline";}; } } you can call it from anywhere with chkpilotonline ::chkpilotonline($callsign) the problem now is that acars map uses java and in java you cannot run php functions and i am still looking how to do it p.s this code uses some part of simpilots VatsimReader
  11. Yes it is on my signature but here it goes when you register there is no need to w8 for an email or admin just login and feel free to try it out
  12. Just to know to what extend we can use the logos and the desing from AA website can you please tell us if you have authorization for it ? if not we will have to design something else for you Thank you in advance
  13. The logic of the framework is you make a module and this module renders a tpl file Also that means that in tpl files there is no need to execute any sql queries , that is done throught the module or class that you have done. I do not know if what i am saying makes sense but if you need anything tell me
  14. Hello I would suggest you to do a little search in the forum how a module is created. You will avoid a lot of hassle and you wont need to open a connection again Also per rules of ivao and vatsim you must select a random server and not 1specific that could ban your site from downloading whazzup As i am not in front of a pc at the moment i can look if i can make you something .
  15. I have enabeld the demo site again so feel free to register. In the registration form you will be asked for your facebook name, if you do not know login in facebook and see your link it should be www.facebook.com/yourname After registration go to your Pilot Center and click add Facebook post in order to give permisions to post on your behalf. Now you are ready to use it. File a manual pirep with flight number 108 and the rest random text and after you click File a flight report check your facebook wall If you have any questions do not hesitate to contact me
  16. Sure i will setup a demo for you
  17. I have one that is ready and american airlines is using it if you want pm me for more info
  18. Hello the site was temporally down The link are now working Thank you and sorry for the trouble
  19. Did you try to download again maybe the zip file got corupted
  20. What errors ?
  21. What hosting do you use ?
  22. My site got hacked aswell My site is based on joomla and phpvms i would like to mention how important it is to update your software, i am writing this so that few members that are not so expirienced with code and website can see that also expirenced users can get hacked Thats my 2cents of advice
  23. He asked to block hes acced not to delete him so the retired pilot will have to contact him prior flying again for he's Va From my part total understandable because like that you know who is returning and who is not
  24. Vre tsakogiani contact me on skype sv5frv1 and we migth sort it out
  25. I also use underscore as i think it is easyer to catch it with your eye
×
×
  • Create New...