-
Posts
224 -
Joined
-
Last visited
-
Days Won
10
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Posts posted by CarlosEduardo2409
-
-
-
Thank you, but I'll test it soon, I'm not on the computer now
-
No, if you want to see my whole code, it's in the message above
-
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
-
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); } }
-
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
-
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/guy1jtAfter 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
-
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.
-
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">
-
Thanks flyalaska, Topic 2 solved
-
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/gu9m1k2. 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/gttqruAnd 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.
-
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.
-
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?
-
ohhh, thank you very much
-
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?
-
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?
-
-
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)
-
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">
-
42 minutes ago, Michael2015 said:
Desculpe, espelhei errado hahha obrigado
No problem
-
Link off bro
-
-
-
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
Forced Logout - Inactivity
in Support Forum
Posted · Edited by CarlosEduardo2409
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:
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
Also has the cookie, which you can find on line 209 and 210 of the same file: