dimitris Posted August 1, 2011 Report Posted August 1, 2011 A module to view the on line traffic on IVAO/VATSIM networks. One at a time you can't see both at one table. Currently data access only from IVAO, in case you use it for VATSIM without approval you should explain them why you did it and face the consequences. Developed and tested on: phpVMS v2.1.934-153-g822a0b9 Please read readme.txt for instructions. See post #17 for updated version. Thanks! 3 Quote
Moderators mark1million Posted August 2, 2011 Moderators Report Posted August 2, 2011 Im not too keen that you are routing every click there through an ad system making you money...... 4 Quote
dimitris Posted August 2, 2011 Author Report Posted August 2, 2011 Wait! I m not allowed to make money from a module ? According to this topic I m allowed http://forum.phpvms.net/topic/2479-licensing/ 1 Quote
Moderators mark1million Posted August 2, 2011 Moderators Report Posted August 2, 2011 Of course you can but the way you have done it is not in the spirit of phpVMS. Just let users know that when your link is clicked they will be presented with an ad then your module. 2 Quote
dimitris Posted August 2, 2011 Author Report Posted August 2, 2011 Where does it says that I m not allowed to put an ad before a link and then use the forums linking way ? Or is there a restriction that prevent me from doing that and informing me about the "mistake" I did ? I know soon or later someone will lock this topic and take my posting rights again but okay I know how it works... 2 Quote
Strider Posted August 2, 2011 Report Posted August 2, 2011 [b]Warning[/b]: file() [[url="http://malaysiava.org/index.php/function.file"]function.file[/url]]: URL file-access is disabled in the server configuration in [b]/home/globalai/public_html/malaysiava.org/core/modules/liveflights/liveflights.php[/b] on line [b]18[/b] [b]Warning[/b]: file(http://de1.www.ivao.aero/whazzup.txt) [[url="http://malaysiava.org/index.php/function.file"]function.file[/url]]: failed to open stream: no suitable wrapper could be found in [b]/home/globalai/public_html/malaysiava.org/core/modules/liveflights/liveflights.php[/b] on line [b]18[/b] [b]Warning[/b]: Invalid argument supplied for foreach() in [b]/home/globalai/public_html/malaysiava.org/core/modules/liveflights/liveflights.php[/b] on line [b]69[/b] How do I fix that? 1 Quote
dimitris Posted August 2, 2011 Author Report Posted August 2, 2011 Open liveflights.php look around at line 9 you will see: //randomize servers below are some servers, just comment the server "de1" (line 13) and you are done an other (and a bit harder) way is to put some if...else statements to see if there is an error... Also you get this: [b]Warning[/b]: file() [[url="http://malaysiava.org/index.php/function.file"]function.file[/url]]: URL file-access is disabled in the server configuration in [b]/home/globalai/public_html/malaysiava.org/core/modules/liveflights/liveflights.php[/b] on line [b]18[/b] Is file access enabled to your server ? Regards, 1 Quote
thomas2360 Posted August 18, 2011 Report Posted August 18, 2011 Hello, I've the same problem as Mr.Bean and I don't understand why it doesn't works great. Can you tell me how to do? Regards, Thomas Quote
Blu-Express VA Posted August 21, 2011 Report Posted August 21, 2011 i've this problem: Warning: file() [function.file]: http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /home/bluepan1/public_html/core/modules/liveflights/liveflights.php on line 18 Warning: file(http://de3.www.ivao.aero/whazzup.txt) [function.file]: failed to open stream: no suitable wrapper could be found in /home/bluepan1/public_html/core/modules/liveflights/liveflights.php on line 18 How to resolve it? Thnx Quote
dimitris Posted August 21, 2011 Author Report Posted August 21, 2011 You should change the: allow_url_fopen=0 to: allow_url_fopen=1 In your server's php.ini Quote
Administrators simpilot Posted August 22, 2011 Administrators Report Posted August 22, 2011 You should be using cURL to open offsite files, allow_url_fopen creates a fairly large security risk for your site and gives even the most novice hackers an avenue to import script into your source code. allow_url_fopen is disabled by server administrators almost 100% of the time and cURL is now the standard. Nabeel has built cURL right into phpVMS to make it even easier as long as it is enabled on your server. There is no reason that any reputable host should not have cURL enabled, the free hosts are another story, as it is another reason for them to upsell you to paid hosting. instead of; $file = file($servers); you could use; $data = new CodonWebService(); $file = @$data->get($servers); Quote
dimitris Posted August 22, 2011 Author Report Posted August 22, 2011 Hi Dave! Yes you are right about the safety but the cURL is not working :/ at least my localhost and the line extension=php_curl.dll is uncommented at my php.ini The above result to: Warning: Invalid argument supplied for foreach() in X:\AppServ\www\vmsdev\core\modules\liveflights\liveflights.php on line 70 Quote
Administrators simpilot Posted August 23, 2011 Administrators Report Posted August 23, 2011 Hope you dont mind, I made a few changes to your code to use curl instead of open url and also not to use GET. Using it in this manner will save a copy of the ivao file to your own server and update it if it is more than 5 minutes old when the script looks for it. also to get the map now use: www.yoursite.com/index.php/liveflights/map/"ICAO OF AIRLINE YOU ARE LOOKING FOR" I posted it at pastebin for your review -> http://pastebin.com/h8Y38yDs Quote
dimitris Posted August 23, 2011 Author Report Posted August 23, 2011 Thanks Dave! Working fine now. Re-packed and uploaded. (external url due to file size limit) Download Here! Quote
AUZ Posted September 19, 2011 Report Posted September 19, 2011 Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'liveflights::map' was given in /......../vms/core/classes/MainController.class.php on line 218 Any suggestions ? Quote
dimitris Posted September 19, 2011 Author Report Posted September 19, 2011 Which one are you using ? this which was on first post or the last one ? to be sure use this one: http://www.mediafire.com/?mwd8a1au5pr6iww place it in: core/modules/ and call it: www.yoursite.com/index.php/liveflights/map/"ICAO OF AIRLINE YOU ARE LOOKING FOR" Quote
AUZ Posted September 19, 2011 Report Posted September 19, 2011 Will give it a try, thanks. I don't remeber which one I tried and Im not at the computer at the moment. Will let you know how I go. Thanks again Adam Quote
Rickisani Posted October 31, 2011 Report Posted October 31, 2011 I have a question, why is only via the IVAO and VATSIM not. Our VA is doing only fly on the VATSIM network, how can you change it, which is read VATSIM Quote
dimitris Posted October 31, 2011 Author Report Posted October 31, 2011 Well I have data access to IVAO but not to vatsim... Simpilot released a module for VATSIM data read check it at SimPilot Modules Quote
Rickisani Posted October 31, 2011 Report Posted October 31, 2011 pity, because the software of Simpilot is, unfortunately, paid for, so I look for one that is free Quote
dimitris Posted October 31, 2011 Author Report Posted October 31, 2011 check this http://forum.phpvms.net/topic/5946-vatsim-data-reader/ it is free from simpilot 1 Quote
Rickisani Posted October 31, 2011 Report Posted October 31, 2011 the VATSIM DATA READER displaying only errors. I currently use VatsimPHP, but I want something like what you've written or that of simpilot, but free Quote
Guest Posted November 1, 2011 Report Posted November 1, 2011 i need help with that i got yellow table and Map Not Available! what i must do Quote
dimitris Posted November 1, 2011 Author Report Posted November 1, 2011 Are any pilots online while you were testing it ? (On IVAO not any Acars program) Also could you give me your site to take a look at it ? Quote
Guest Posted November 1, 2011 Report Posted November 1, 2011 yes i try with many airlines online pilot but don't get any map http://sudanwings.co.cc/index.php/liveflights/map/ Quote
dimitris Posted November 1, 2011 Author Report Posted November 1, 2011 you are on a free hosting company Are you able to use cURL ? If yes download this and replace your liveflights.php file http://www.mediafire.com/?mwd8a1au5pr6iww Quote
Guest Posted November 1, 2011 Report Posted November 1, 2011 mmmmmmmmmm cURL ? what is curl and this link you post i use it in my site and not work with me Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.