Jump to content

CarlosEduardo2409

Members
  • Posts

    224
  • Joined

  • Last visited

  • Days Won

    10

Posts posted by CarlosEduardo2409

  1. Hello, I did not quite understand your question.

    If you are wanting a pilot to leave the site at an exact time, you can find the code /core/app.config.php (PhpVMS 5.5 Simpilot), it is near line 117. This is the default code:

     

    Config::Set('USERS_ONLINE_TIME', 20);

    And if you want to remove a pilot from your VA, from a time this is the code: (Can be found on line 67 and 68 of the same file) - AUTOMATIC

     

    # After how long to mark a pilot inactive, in days
    Config::Set('PILOT_AUTO_RETIRE', true);
    Config::Set('PILOT_INACTIVE_TIME', 90);

     

    Also has the cookie, which you can find on line 209 and 210 of the same file:

     

    # Cookie information
    Config::Set('SESSION_LOGIN_TIME', (60*60*24*30)); # Expire after 30 days, in seconds
    Config::Set('SESSION_GUEST_EXPIRE', '30'); # Clear guest sessions 30 minutes
    //Config::Set('SESSION_COOKIE_NAME', 'VMS_AUTH_COOKIE');

     

  2. Did you mean like that?

     

            public function SendEmail()
            {
                $name = $this->post->name;
                $email_from = $this->post->email;
                $depp = $this->post->depp;
                $arr = $this->post->arr;
                $route = $this->post->route;
                $Aircraft = $this->post->Aircraft;
                $fl = $this->post->fl;
                $dtime = $this->post->dtime;
                $atime = $this->post->atime;
                $ftime = $this->post->ftime;
                $message = "From: $name \n 
                            Depp: $depp \n 
                            Arr: $arr \n 
                            Route: $route \n 
                            Aircraft: $aircraft \n 
                            Fl: $fl \n 
                            Dtime: $dtime \n 
                            Atime: $atime \n 
                            Ftime: $ftime \n";
                            
                $email = "MYEMAIL";
                $subject = "Pilot Submitted Route";
                $headers = "From: $email_from \r\n";
                Util::SendEmail($email, $subject, $message, $headers);
            }

     

    If you want to see my entire code: https://github.com/carlosmfreitas2409/RouteSubmit

  3. Hello everyone, so I'm trying to make a module for the pilots to send suggestions of routes. But when I click to send it it does not send the email.

     

    My core/templates/routesubmit_mainform.php - MY BUTTON CODE

    <input type="submit" class="btn btn-primary btn-block btn-flat" name="submit" value='Submit Route'>

     

    My core/modules/RouteSubmit.php - MY SENDEMAIL CODE

    <?php
    
        class RouteSubmit extends CodonModule
        {
            public function index()
            {
                require_once CORE_LIB_PATH.'/recaptcha/recaptchalib.php';
                $this->set('title', 'Add Schedule');
    
    
                $this->set('allairlines', OperationsData::GetAllAirlines());
                $this->set('allaircraft', OperationsData::GetAllAircraft());
                $this->set('allairports', OperationsData::GetAllAirports());
                //$this->set('airport_json_list', OperationsData::getAllAirportsJSON());
                $this->set('flighttypes', Config::Get('FLIGHT_TYPES'));
                
                if(isset($_POST['submit'])) {
    			$this->SendEmail();
    		    } else {
    		    $this->ShowForm();
    		    }
    
                $this->render('routesubmit/routesubmit_mainform');
                
            }
            
            protected function ShowForm()
    	    {
                    //Google reCaptcha
                    //updated to Google noCaptcha 1/15
                    $this->set('sitekey', "MyCaptchaKey");
                    $this->set('lang', 'pt');
                    
    	    }
    	    
            
            public function SendEmail()
            {
                $name = $_POST['name'];
                $email = $_POST['email'];
                $depp = $_POST['depp'];
                $arr = $_POST['arr'];
                $route = $_POST['route'];
                $aircraft = $_POST['Aircraft'];
                $fl = $_POST['fl'];
                $dtime = $_POST['dtime'];
                $atime = $_POST['atime'];
                $ftime = $_POST['ftime'];
                $message = "From: $name \n 
                            Depp: $depp \n 
                            Arr: $arr \n 
                            Route: $route \n 
                            Aircraft: $aircraft \n 
                            Fl: $fl \n 
                            Dtime: $dtime \n 
                            Atime: $atime \n 
                            Ftime: $ftime \n";
                            
                $email_to = "MYEMAIL";
                $subject = "Pilot Submitted Route";
                $headers = "From: $email \r\n";
                Util::SendEmail($email_to, $subject, $message, $mailheader);
            }
    		
    }

     

  4. Hello, the number 1 is to be cleaned by the same chrome, or your browser, you can search on youtube depending on your browser.

    The number 3 is when you install phpVMS, you have to go in install / install.php and you put the data of your database, there is an option that option according to the image: https://prnt.sc/gvc1xb . This option is selected automatically, but I think you did not move, I do not know if it will work, hope you're lucky. NOTE: To fix this is just uninstalling phpVMS and installing again.

    And I'm sorry if I'm speaking wrong, because I'm Portuguese and I'm using google translate

  5. Try this:
    Enter the site below and install airport.csv, after installation open with file with excel and you will have a complete list of all airports. Then do what is asked in this image: https://prnt.sc/guy1jt

    After that look for the ICAO of the desired airport, and you will have the airport information then take the latitude and longitude and put it at your airport.

    Example: Airport SBGR:

    5910,"SBGR","large_airport","Guarulhos - Governador André Franco Montoro International Airport",-23.435556411743164,-46.47305679321289,2459,"SA","BR","BR-SP","São Paulo","yes","SBGR","GRU",,,"http://en.wikipedia.org/wiki/S%C3%A3o_Paulo-

    Red Color: Latitude

    Blue Color: Longitude

  6. View this topic: 

    change this:

    <img src="<?php echo PilotData::getPilotAvatar($pilotcode); ?>" class="img-circle" alt="User Image">

    to this:

    <?php $pilotcode = PilotData::getPilotCode(Auth::$userinfo->code, Auth::$userinfo->pilotid); ?>
    <img src="<?php echo PilotData::getPilotAvatar($pilotcode); ?>" class="img-circle" alt="User Image">
  7. Hi brothers, pilots and web developers, here are some questions:
     
    1. How do I create a progress bar for the next rating? As for example of tim620: http://prntscr.com/gu9m1k
     
    2. How do I get a "pilot of the week"? [SOLVED]
     
    3. I'm using the CrewCenter from web541, but this appears and I can not change: 
     
    When I go to someone's profile, the profile gets totally disorganized, like the following image: https://prnt.sc/gttqru
     
    And also "My Reports" appears, but it should be "Report List", and in the blue frame, my reports also appear. NOTE: It was in someone else's profile, then "Report List". 
     
     
    Thank you.
  8. 6 hours ago, hecrowell said:

    Acabei de aceitar dois novos pilotos e os activei. Um piloto não aparece no bloco "Novos pilotos" na página inicial da nossa companhia aérea.

    Verifiquei e comparei os dados dos pilotos para pilotos e todos os pilotos no Admin Center, e os dados para o piloto em questão parecem ser formatados da mesma forma que os outros 10 dados de pilotos registrados. O piloto em questão aparece na lista de pilotos normalmente ... apenas não no bloco de pilotos mais novos.

     

    Can you pass the code where is the newest pilots?

  9. 11 minutes ago, servetas said:

    change this:

    
    <img src="<?php echo PilotData::getPilotAvatar($pilotcode); ?>" class="img-circle" alt="User Image">

    to this:

    
    <?php $pilotcode = PilotData::getPilotCode(Auth::$userinfo->code, Auth::$userinfo->pilotid); ?>
    <img src="<?php echo PilotData::getPilotAvatar($pilotcode); ?>" class="img-circle" alt="User Image">

     

    OMG, Thank you!! Now you're working right. (SOLVED)

  10. First of all, I'm using Simpilot phpVMS 5.5 and Web541 CrewCenter and my language is Portuguese.

     

    Error in: Dropdown

     

    On some pages, or almost all, the photo of the pilot is not showing up. Appearing only on the panel.

     

    When I go to the panel, the image appears correctly, but when I go to another page, the default phpVMS appears. Here is the image: In the dashboard: http://prntscr.com/gqgmvh || In the downloads: http://prntscr.com/gqgmp4

     

    App_top code:

    <ul class="dropdown-menu">
                                    <!-- User image -->
                                    <li class="user-header">
                                        <img src="<?php echo PilotData::getPilotAvatar($pilotcode); ?>" class="img-circle" alt="User Image">

     

  11. On 22/09/2017 at 3:51 AM, Vangelis said:

    did you read the https://github.com/vangelisb/Simbrief/blob/master/phpvms/ReadMe.txt  ? it has clearly instructions how to do it, if you still dont understand then you will have to find someone with basic file upload and editing knowledge

     

    I read, I did everything as written, but it is still not working and when I click on generate the flight plan nothing happened, but I already have the api and put it in the right place, also uninstalled and installed everything again several leaks. One of the main mistakes is this (Warning: simplexml_load_file(): http://www.simbrief.com/ofp/flightplans/xml/:1: parser error : Document is empty in /storage/ssd2/921/2877921/public_html/core/modules/SimBrief/SimBrief.php on line 12) and the button that does not work. Pls help-me @Vangelis

×
×
  • Create New...