Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Timothee

Pages: 1 2 [3] 4 5 6
31
The error message "mail() has been disabled for security reasons" suggests that your hoster disabled the PHP mail() function which is used to send e-mails.
You probably have to discuss this issue with your hoster or find a different one who allows sending mails.

32
Support for VAM 2.4 - 2.6 / Re: New Maps issue
« on: July 19, 2018, 12:57:05 PM »
Yes as I wrote here already http://virtualairlinesmanager.net/foro//index.php?topic=1857.msg7104#msg7104 the quota for the provided API key has exceeded. Get your own Google Maps API key on https://cloud.google.com/ or wait until the quota resets.

33
Bug reports / Re: Google Maps error just popped up
« on: July 19, 2018, 09:17:35 AM »
The error message is self explaining:

You have exceeded your request quota for this API. See https://developers.google.com/maps/documentation/javascript/error-messages?utm_source=maps_js&utm_medium=degraded&utm_campaign=billing#api-key-and-billing-errors

Everyone using the API key delivered with VAM is using the same quota. I highly recommend registering your own API key.
The quota is reset daily, until then your key won't work anymore.

34
Support for SIM ACARS / Re: Sim Acars SSL
« on: July 17, 2018, 12:39:20 AM »
SIM ACARS works fine with SSL but you have to enter the URL with https://
Redirects will work in the browser but not for SIM ACARS.

35
Support for VAM 2.4 - 2.6 / Re: Change register successful message
« on: July 01, 2018, 11:40:22 PM »
Hi

you will find the text in the language files /vam/languages
The item you are looking for is REGISTER_SUCCESSFUL_MSG

Regards

36
Bug reports / Re: Error Flight Validator
« on: May 29, 2018, 01:25:18 PM »
Hi
might be due to the problem reported here: http://virtualairlinesmanager.net/foro//index.php?topic=1316.msg5288#msg5288
Try to add an index to the column report_id of the table va_finances.

37
Problem solved

Apparently the API query has been changed at Google.

All spaces must be removed in each php.


airport_map.php

hub_routes_map.php

pilot_flights_map.php

vam_live_flights_map.php


old :  key= AIzaSyAse6CjTQffTPy_k4oYaUj34d1A7py3rUQ &callback=initMap"   

new : key=AIzaSyAse6CjTQffTPy_k4oYaUj34d1A7py3rUQ&callback=initMap"



Sophie

You missed two more:
map.php
vampirep_map.php

Thanks for your contribution ;)

38
Support for VAM 2.4 - 2.6 / Re: Maintenance costs
« on: February 15, 2018, 03:36:23 PM »
If I remember correctly the maintenance costs are not calculated or inserted into the va_finances table. At least not for regular flights, I think they are for charter flights.

We adapted the receivevampirep.php for our needs. Inside the function check_regular_flight you will find the following lines somewhere (should be line 601 in the original file):
Code: [Select]
$query1 = "insert into vaprofits (value,date,gvauser_id,description) values (-$hangar_maintenance_value, now(),$pilot ,'Maintenance $matricula')";

if (!$result_sta = $db->query($query1)) {
die('There was an error running the query [' . $db->error . ']');
}

We just added another query below:
Code: [Select]
// Cost for the VA for the maintenance
$query1 = "insert into va_finances (amount,parameter_id,finance_date,gvauser_id,description,report_type,report_id) values (-$hangar_maintenance_value, '99997', now(),$pilot ,'Aircraft Maintenace $matricula','SIM ACARS', '')";

if (!$result_sta = $db->query($query1)) {
die('There was an error running the query [' . $db->error . ']');
}

As soon an aircraft enters in maintenance you will see the costs in the financial report.
Previous maintenance cost have been added to the table vaprofits but this table isn't used anywhere. You may copy the values to va_finances if you want to.




39
Bug reports / Re: Weclome Email, again and again, several times an hour
« on: February 06, 2018, 09:57:23 PM »
The check in pilot_insert.php looks like this per default:
Code: [Select]
if ($_POST["password"])
{
  [...]
}
// Send mail to the pilot
$mail = new vam_mailer();
$mail->mail_register_compose($email);

Put the lines for mailiing inside the if which starts on line 68:
Code: [Select]
if ($_POST["password"])
{
  [...]

  // Send mail to the pilot
  $mail = new vam_mailer();
  $mail->mail_register_compose($email);
}

40
Bug reports / Re: Weclome Email, again and again, several times an hour
« on: February 02, 2018, 11:24:39 AM »
Hey

I'm not sure if I understand your problem correctly but we had a similiar issue but never as many e-mails like you do.

The problem is, a register e-mail is always sent when someone calls pilot_insert.php. Some bots follow every link on a website and will also call this file. This will generate an e-mail without actually someone register on the website.

pilot_insert.php inserts a user only if a password was set in the register form. To solve the problem I moved thet two lines of code for the e-mail inside this check.

Code: [Select]
if ($_POST["password"])
{
  $encryptpassword = md5($pass);
  echo '<br>';
  $sql1 = "insert into gvausers (register_date,activation,name,surname,callsign,email,password,ivaovid,hub_id,country,city,reg_comments,birth_date,vatsimid,language)
              values (now(),0,'$name','$surname','_NEW_','$email','$encryptpassword','$ivao','$hub_id','$country','$city','$notes','$birthday','$vatsim','$language');";
  if (!$result = $db->query($sql1)) {
    die('There was an error running the query [' . $db->error . ']');
  }
  // Send mail to the pilot
  $mail = new vam_mailer();
  $mail->mail_register_compose($email);
}


41
Hi

We did the same multiple times without any problems. Usually I just use the database export/import function of phpMyAdmin. I have moved/cloned the database mulitple times this way. However some do experience some problems with views. Generally it is recommended to recreate views from scratch and importing only tables.

Regards

42
Bug reports / Re: METAR not available
« on: December 01, 2017, 10:05:20 PM »
Your hoster may have disabled allow_url_fopen, which is how the METAR data are shown.
You may check this setting by creating a new .php file with the following code:
Code: [Select]
<?php
phpinfo
();
?>

Opening remote websites/files directly is considered insecure, which is why some hosters disabled it by default.

43
Support for VAM 2.4 - 2.6 / Re: VA Parameter Crash
« on: November 30, 2017, 06:45:07 PM »
Ok if you do not use flight wear for planes you probably didn't notice it. Flight wear should also be applied to charter flights with VA airplanes. But it doesn't work and is the same problem as your crashes not beeing detected.

The function move_charter_aircraft() in receivevampireps.php checks for the parameter 'aircraftreg' to be set, but SIMAcars probably never sets it. It was just empty in all my tests. However there is the parameter 'aircraft_registry' which contains what we are looking for.

There are different was to fix this problem, but the easiest way is probably as described below.

Line 791 (original file) contains the following code:
Code: [Select]
move_charter_aircraft ($aircraftreg,$gvauser_id, $dep, $arr , $flight_duration,  $block_fuel, $distance , $landing_vs , $flight ,$db);

Change the first paramater to $aircraft_registry:
Code: [Select]
move_charter_aircraft ($aircraft_registry,$gvauser_id, $dep, $arr , $flight_duration,  $block_fuel, $distance , $landing_vs , $flight ,$db);

44
Support for VAM 2.4 - 2.6 / Re: VA Parameter Crash
« on: November 28, 2017, 02:30:41 PM »
Hi
As you mentioned receivevampirep.php is using the function abs() for the landing VS. Therefore the parameter has to be positive. Until recently this function was not part of the original source code but if you are using VAM 2.6.2 you are fine with using positive values.

We haven't used charter flights at all, so I can't tell from experience if its working. Do you see status reductions on charter flights or is it just the crash which was undetected?



45
Try adding an index to the va_finances table (column report_id).
http://virtualairlinesmanager.net/foro//index.php?topic=1316.msg5288

I do not recommend deleting any flights.


Pages: 1 2 [3] 4 5 6