Jump to content

Removing an added Airline


Bluemax

Recommended Posts

  • 1 year later...

NOTE: I did not have ANY pilots, aircraft, flights, or any other data added to the airline I deleted. It was merely an erroneous addition that I wished to remove immediately. I have NO idea how deleting an airline that has data with it will effect other aspects of phpvms. With that said...

I use phpMyAdmin, your method may varry some from this:

1. Open your mySQL databases and open your phpvms_*** database.

2. Locate and open the table named "phpvms_airlines".

3. Check Box the airline you wish to remove.

4. Click Delete button.

5. Close phpMyAdmin.

6. Open the your root phpvms folder on your website server.

7. Back up your /core/cache/phpvms_all_airlines.cache file.

8. Open your /core/cache/phpvms_all_airlines.cache in edit mode with an good code editing program.

9. Airlines are listed from left to right in order from newest to oldest.

10. Find the first "i:" to the left of the airline you wish to delete.

11. Find the first "{" to the left of that "i:".

12. Highlight from that point to the right up to but not including the next "{" in the line of code.

13. Delete.

14. Go all the way to the end of that line of code and delete the last "}".

15. Save.

I also did the following because I only had one other airline (with no data stored on it that I wasn't willing to lose if I made an error) I have no idea if it will effect anything longterm. With that being said:

Deleted everything on that line of code prior to the first "{".

It left me with only this on that same line:

{i:1;O:8:"stdClass":4:{s:2:"id";s:1:"1";s:4:"code";s:3:"FTC";s:4:"name";s:22:"Flight Training Center";s:7:"enabled";s:1:"1";}

Hope that helped.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...