phpvms / phpvms_v2

Virtual Airline Management (not maintained)
http://www.phpvms.net
BSD 3-Clause "New" or "Revised" License
41 stars 46 forks source link

Live ACARS Map vs. Rewrite URL #65

Open ghost opened 12 years ago

ghost commented 12 years ago

Nabeel,

Recently, I turned on the Rewrite URL thing in phpVMS, but now our ACARS Live Map stops working. But I added the index.php in the URL and the live flights shows up. Could you think it could be the acars live flight data looking for the index.php or not?

Restate...

http://www.suncountryvirtual.net/acars - Live flights does not show up, with URL Rewrite enabled.

http://www.suncountryvirtual.net/index.php/acars - Live flight shows up with the URL Rewrite Enabled as well.

nabeelio commented 12 years ago

There is the URL in the javascript, I suspect this isn't rewriting properly. Have you checked the acarsmap.js?

ghost commented 12 years ago

I believe this is what you are looking for?

function liveRefresh() { $.ajax({ type: "GET", url: url + "/action.php/acars/data", dataType: "json", cache: false, success: function(data) { populateMap(data); } }); };

nabeelio commented 12 years ago

Yep, there's that action.php If you go to that URL, does it work? (obvious the full url to your site and the action.php/acars/data

ghost commented 12 years ago

Yep, it works. It returns the ACARS Flight Info Array Data.

nabeelio commented 12 years ago

Well the next thing is to check the FF or Chrome error console while in the acars map to see if there are errors showing up

nabeelio commented 12 years ago

Is this still open?

ghost commented 12 years ago

Sorry, I never had a chance to look at it again. Let me download the latest beta and see.

Vansers commented 11 years ago

Since the changes wasn't detecting, I thought it would help to get GitHub to capture the exact line change.