Jump to content

Nabeel

Administrators
  • Posts

    8141
  • Joined

  • Last visited

  • Days Won

    38

Posts posted by Nabeel

  1. Here's a quick bash script to update phpVMS to the latest version. It'll download the update version from the server, unzip it, delete the local.config.php, and then copy the files to where phpVMS is located.

    You need SSH access to your server (ask your host). You can either download the zip file, and extract the file to your server, or use vi, whatever to create this script:

    NOTE: The download URL has changed

    #!/bin/bash
    
    PHPVMS_PATH="/path/to/phpvms"
    
    echo "Retrieving update"
    rm phpvms.update.zip
    wget --no-cache --no-clobber http://downloads.phpvms.net/phpvms.update.zip
    rm -drf phpvms
    echo "Unzipping file"
    unzip -q phpvms.update.zip
    rm -f phpvms/core/local.config.php
    echo "Copying files"
    cp -rf phpvms/* $PHPVMS_PATH
    echo "Done!"

    The only thing you need to do is change the PHPVMS_PATH (no trailing slash!). If you download the zip file, open the file in Wordpad (notepad will screw up the line endings), and change that path to where phpVMS is located.

    I recommend placing it in it's own directory.

    So upload the file (updatephpvms, no file extension)

    Then give execute permissions, and execute:

    chmod +x updatephpvms
    ./updatephpvms

    After this, you still need to run the /install/update.php, but at least the bottleneck of downloading and then uploading via FTP is gone.

    Nabeel

    updatephpvms.zip

  2. The import aircraft are supposed to be the registration numbers, not the aircraft names, I updated the instructions on the page/docs.

    Since it's in the database, you can just edit the schedule to the right aircraft. Next update, I'll change it to overwrite existing schedules.

    Gah, I left debug text in there. Just patched that, it's upto version 458. Just update admin/modules/Import. But it doesn't make a difference.

  3. Hey everyone,

    1.1.458 is available on the downloads page. It's been going under heavy testing, and all the issues from past have been fixed.

      * Added page encoding option

      * Added option for changing pilot ID length

      * Added option to change signature text color

      * Admin can edit PIREPS

      * Some admin reports added (more to come)

      * FSACARS bug fixes - follow the instructions in the docs

      * Admin panel styles cleaned up

      * Bug fixes (alot of em!)

     

    Some notes :

    If a PIREP is not showing up, or the aircraft is blank, edit the pirep to include the aircraft. Because of the switch to registration numbers, some PIREPs did not "cross over" to include them.

    For FSACARS, follow the instructions in the docs. Mainly about the flight IATA fields, pilot number, and the registration. And you should be good to go.

    There are no database changes in this version, just bug fixes.

    As usual, post any problems or comments.

    Edit: Released was 1.1.457. 458 just removes some debug text from the importer.

    Thanks everyone for your patience!

    Nabeel

  4. No, but it's been fixed in the build coming out this weekend. You'll be able to have the same types, and diff registrations. A bunch of bugs cropped up, but hang in there, another day or two.

    The ability to edit PIREPs is also there.

    FSACARS, bunch of bugs also fixed, I redid a bunch of the code. Make sure your airports are added as well.

  5. Signatures are generated automatically, for each pilot. They are regenerated and stored, to alleviate server load. They're regenerated when a PIREP is filed, or an admin selects the option in the admin panel.

    The general format of a signature link is:

    http://yourvasite.com/lib/signatures/YOUR_PILOT_CODE.png

    So if you are VMA0045 -

    http://yourvasite.com/lib/signatures/VMA0045.png

    And this can be used as the link to a forum, etc.

    The basic signature is create from the background.png file, in /lib/signatures. The signature image will take the size of the background image (so if it's 500x150, then the signature will be that same size). They are all generated as PNGs.

    There are several options for signatures in your local.config.php:

    Config::Set('SIGNATURE_TEXT_COLOR', '#FFFFFF');
    Config::Set('SIGNATURE_SHOW_EARNINGS', true);
    Config::Set('SIGNATURE_SHOW_RANK_IMAGE', true);
    Config::Set('SIGNATURE_SHOW_COPYRIGHT', true);
    

    SIGNATURE_TEXT_COLOR - The text color on the signature

    SIGNATURE_SHOW_EARNINGS - Show how much money a pilot has made (true/false)

    SIGNATURE_SHOW_RANK_IMAGE - Show the image for the rank of the pilot (true/false)

    SIGNATURE_SHOW_COPYRIGHT - Show the "powered by phpVMS, VA Name" (true/false)

    If you change an option, or the background image, in the admin panel dashboard, click "Generate Signatures". This will refresh all of them.

  6. You can import all your schedules from CSV.

    Goto "Operations" and then "Import Schedules". There is a link to download the CSV template, or you can download it from the post attachment.

    Notes:

    The airline MUST be added before you import

    For best results - add all your airports before you import. Otherwise, it will go and grab the airport, but this can potentially cause a problem by either PHP running past it's maximum execution time, or completely failing because your host blocks URL fopen commands.

    The route, leg, distance, and flight time columns can be blank.

    The aircraft REGISTRATION NUMBER must be used. Otherwise it will fail. I need the registration number. If you do not use registration numbers, view this post on how to get around it..

    template.zip

  7. With this latest version comes the ability to add a registration number to your aircraft fleet. This is used in multiple places now, to reference that aircraft. The ability will come soon to be able to "retire" an aircraft, as well as statistics on an individual aircraft.

    If your VA doesn't use registration numbers assign a dummy number to your aircraft. For example, if you have only one B777 you want to use on ALL flights, give it a registration number. I do not cross check registrations and schedules and availability for this reason.

    FSACARS also uses the registration number of an aircraft to properly log the flight and the aircraft used.

    • Like 3
  8. Hey everyone,

    This past week's release has been bad. Tons of bugs cropping up, and it will be fixed by this weekend, most of them are fixed right now... just doing rigorous testing on it. I've setup 3 test areas that they move through.

    The reason for it was a problem with the place my code is stored. The server was corrupted, and my newer code ended up being replaced by some older code. I though I had fixed all the problems, but my automated build tools did not have test units for some of the basic functions, which were also reverted to older versions. My build tools are supposed to update my main testing server. They did not, so I didn't notice most of the issues which came up.

    In the last few days, I've restored everything back to how it was, and am now searching for a different provider to store my SVN code repositories.

    Sorry about all the troubles guys, from here it'll hopefully be smoother. Thanks for your patience.

    Nabeel

  9. If you're getting this error, make sure you have added the airports that were on the flights to your airports list. I have changed this code to check if it exists, and then add it if it doesn't. But if the airports are not added, then it could fail, it it needs to lookup information.

    For instance, you are flying to KIAD, but you're don't have KIAD added in your Airport's list, this may happen.

    If your host has remote fopen disabled, then I cannot retrieve this airport information, and it must be manually added through the control panel.

  10. You can add them in the core nav, in your template that's fine. There are tutorials online on how to do that.

    As for the admin editing, save the changes, I don't support overriding admin templates. That code changes too often. I do have ways to add items into the menu, I'll have documentation on that in some time though.

×
×
  • Create New...