Jump to content

CarlosEduardo2409

Members
  • Posts

    224
  • Joined

  • Last visited

  • Days Won

    10

Everything posted by CarlosEduardo2409

  1. Now I fully updated the codes, and it's still not working, I looked in google, I did everything, but nothing ... (Using Gmail and PhpVMS 5.5 Simpilot) Code: https://github.com/carlosmfreitas2409/RouteSubmit
  2. 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');
  3. Thank you, but I'll test it soon, I'm not on the computer now
  4. No, if you want to see my whole code, it's in the message above
  5. 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
  6. 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); } }
  7. 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
  8. 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
  9. Hello, I think it is not only in my VA that, when I go to get a flight number in kacars, it searches for any flight, even if it is not in "my reservations", how can I change it? (Leave only to fetch a flight number when the flight is booked) Thanks.
  10. 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">
  11. 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.
  12. 1. Try to clear the caches. 2. Verify that MySQL is on the right user, password, etc. 3. When you install phpVMS it talks about the best MySQL, so if you do not solve the above, try reinstalling phpVMS (NOTE: Deleting old MySQL and creating another one) Hope it helps, good luck.
  13. Hey brothers, When I go to someone's profile, the profile gets totally bad, all disorganized, like the following image: https://prnt.sc/gttqru And also appears "My reports" should be "List of reports" as far as I know, and in the blue frame also appears my reports. Can someone help me?
  14. Hello, In VA that I am and in several other VAs, this map has the different routes, it shows a route made by the site, and shows another route that is what the pilot is following (https://prnt.sc/gsw56l). Is it possible to do that? If so, how?
  15. Can you pass the code where is the newest pilots?
  16. 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">
  17. Ops, I do not know what happened but when I went to the demo user try again it worked out, but thanks for your help @Vangelis and @web541
×
×
  • Create New...