Jump to content

Yash

Members
  • Posts

    98
  • Joined

  • Last visited

  • Days Won

    4

Posts posted by Yash

  1. Hello everyone,

    I am happy to present yet another online store for Virtual Airline Products!

    vCrew Sys
    https://vcrewsys.net/

    ----------------------------------------------------------------------

    As of now we have 2 products:

    1. Skin for phpVMS 7 (Laravel)
    2. Connecting Flights Module for Classic phpVMS

    ----------------------------------------------------------------------

    Payment Options:

    1. Paypal
    2. Debit Card
    3. Credit Card

    ----------------------------------------------------------------------

    Requirements:

    Basic Details on Registration Page and that's it!

    ----------------------------------------------------------------------

    Please Note that the Prices are in INR (INDIAN RUPEE). YOU CAN SEE THE ACTUAL USD PRICE DURING CHECKOUT.

  2.  

    6 hours ago, orobouros said:

    Hello,

     

    In the finance module, it's the total of flights by month wich is mentionned (scheduled flgihts + free flights). But i want to have just scheduled flights to have the right number. How can i do this please ?

    Actually it's like this (here $month->total return all the flights.) :

    
    <td align="center">
         <?php  
             echo $month->total;
    	?>
    </td>

     

    i try this without success :

    
    <td align="center">
        <?php
            $scheduledFlights="SELECT COUNT(pirepid) as totalflights FROM phpvms_pireps WHERE month(submitdate)=".$month->ym." and (code='xxx')";
            $resultScheduledFlights=DB::get_results($scheduledFlights);
            $totalScheduledFlights=$resultScheduledFlights[0]->totalflights;
            echo $totalScheduledFlights;
    	?>
    </td>

     

    Regards

     

    Which ACARS are you using?

  3. On 1/19/2019 at 6:17 AM, TAV1702 said:

    So I have been a member of a virtual airline that has been around since the tail end of 2000. I have been talking with them about a new website. The issues is, they have 1 main airline, 4 Divisions, and then hubs. 

    How we are setup now in phpVMS we can create separate airlines and all kinds of hubs or an airline with as many hubs as we wish. So I am embarassed to say that as long as I have been with phpVMS (all but since day 1) I can not for the life of me figure out how to accomplish this task accordingly. 

    I need 1 main airline.  Under that main airline I need 4 divisions such as the Americas, Eupoean, Asian, then something such as over closer to Japan and down into New Zealand and Australia.  And under each one of those division, they would have their very own hubs.  

    Am I overthinking the current 5.x system? I know for certain I have tried to think this through once before a failed miserably. All I see that we can do is airlines and hubs, no divisions. In the airline I am talking about, they ask their pilots to choose a Division to fly for upon registration, not a hub.  So what f the website name was the airline name and instead of creating 4 separate airlines, I create the 4 Divisions and then create all the hubs under them? That is a shit in the dark. All 4 division have got to have the same call sign though.

    Hmm

    But Ray you are posting in the phpVMS 7 forum!! Ah yes! That I am. And for a reason. Is this possible in the new version to do? Or might I have to take the same shot in the dark as the scenario that I just posted above? I hate like hell to start in on a new 5.x website and tie up hundreds upon hundreds of hours on it and have version 7 come out as a RC or better soon there after I get started.

    Feel free to move this if it is in the wrong thread area. 

    So basically, you want 4 divisions with one single airline have same ICAO for all schedules?

    Within those 4 divisions, you want hubs for each division

    And at the time of registration, pilot first chooses the division and then the hub?

  4. On 4/19/2019 at 5:52 AM, thunder175 said:

    Thanks for the help! I finally implemented this and it saved me a lot of time. The only change I did was instead of

    
    mail($pilotemail,$subject,$message);

    I used

    
    Util::SendEmail($pilotemail,$subject,$message);

     

    Your welcome! :D

    • Like 1
  5. <?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?>
    <script type="text/javascript">
    var baseurl="<?php echo SITE_URL;?>";
    var airport_lookup = "<?php echo Config::Get('AIRPORT_LOOKUP_SERVER'); ?>";
    var phpvms_api_server = "<?php echo Config::Get('PHPVMS_API_SERVER'); ?>";
    </script>
    
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.0/jquery-ui.min.js"></script>
    <script type="text/javascript" src="<?php echo fileurl('lib/js/jqModal.js'); ?>"></script>
    <script type="text/javascript" src="<?php echo fileurl('lib/js/jquery.form.js'); ?>"></script>
    <script type="text/javascript" src="<?php echo fileurl('lib/js/jquery.bigiframe.js'); ?>"></script>
    <script type="text/javascript" src="<?php echo fileurl('lib/js/jquery.metadata.js'); ?>"></script>
    <script type="text/javascript" src="<?php echo fileurl('lib/js/ckeditor/ckeditor.js'); ?>"></script>
    <script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=true"></script>
    <script type="text/javascript" src="<?php echo SITE_URL?>/admin/lib/phpvmsadmin.js"></script>
    
    <link rel="alternate" type="application/rss+xml" title="RSS" href="<?php echo SITE_URL?>/lib/rss/latestpireps.rss">
    <?php 
    if(isset($MODULE_HEAD_INC))
    	echo $MODULE_HEAD_INC;
    ?>

    Try this..

  6. In core/common/SchedulesData.class.php, somewhere near line 792, you can replace and try this, however I am not sure it may work or not.

    public static function deleteExpiredBids() {
    
            $cache_time = Config::Get('BID_EXPIRE_TIME');
            if ($cache_time == '') {
                return;
            }
    
            /* Make sure the schedule bidids */
            $sql = 'SELECT * FROM ' . TABLE_PREFIX . "bids
    				WHERE `dateadded` + INTERVAL {$cache_time} HOUR < NOW()";
    				
            
            $results = DB::get_results($sql);
            if (count($results) > 0) {
                foreach ($results as $row) {
                    $pilotdet = PilotData::getPilotData($row->pilotid);
                    $pilotname = $pilotdet->firstname.' '.$pilotdet->lastname;
                    $pilotemail = $pilotdet->email;
                    $subject = 'Vistara Virtual : Bid Deleted!';
                    $message = 'Hello '.$pilotname.', your Bid having ID: '.$row->bidid.' has been deleted since it has crossed the minimum days required to fly!';
                    mail($pilotemail,$subject,$message);
                    $sql = 'UPDATE ' . TABLE_PREFIX . "schedules
    						SET `bidid`=0 WHERE `id`={$row->routeid}";
    
                    DB::query($sql);
                }
            }
    
            $sql = 'DELETE FROM ' . TABLE_PREFIX . "bids
    				WHERE `dateadded` + INTERVAL {$cache_time} HOUR < NOW()";
    
            DB::query($sql);
    
        }

     

    • Thanks 1
  7. Okay here's a quick fix for SSL errors!

    1. Download this software known as 'fnr' http://findandreplace.io/
    2. Download your /lib/skins/YOUR_SKIN_FOLDER folder to a particular folder.
    3. Now run fnr. Click on Find field. Type there http://
    4. In the replace field, type https://
    5. Click on replace All
    6. Reupload your skin folder. It should work now.

    ALSO DO NOT FORGET TO TAKE BACKUP OF YOUR CURRENT_SKIN_FOLDER

  8. Hello there,

    I have created a Points System which checks the following things:

    * Exceeded 250 KIAS below 10,000
    * Overspeed entered
    * Engine 2 is off before Filing PIREP
    * Distance of Flight
    * Different Points for Different Landing Rates

     

    Let me know if anyone is interested!

  9. I have made a module for Connecting Flights. 
    This module finds Direct as well as Connecting Flights from Departure Airport to Arrival Airport.
    Max number of Flights the system finds is "2"

    I am selling this Module for 30$.

    Message me if interested! ;) 

    Untitled-1.png

    Untitled-2.png

    Untitled-3.png

    • Confused 1
×
×
  • Create New...