SimBrief Planning System Update (#991)

* SimBrief Planning System Update

Replaces outdated old pr.

Same improvements apply to both controller and simbrief_form.blade.

* Style Fix for SimBrief.Controller

* strict equals fix and some comments

changed equals to strict equals and put in some comments about the loadarray and manualrmk generation.

* Formatting/separate out secstohhmm

* Formatting

* Removed duplicates

We have the $wakecat, $equipment and $transponder in the controller, removed them from the blade.

Fixed a harmless typo in the IVAO Prefile DEPTIME line

Co-authored-by: Nabeel S <nabeelio@users.noreply.github.com>
Co-authored-by: Nabeel Shahzad <nabeel@nabeel.sh>
This commit is contained in:
B.Fatih KOZ
2021-01-17 23:59:32 +03:00
committed by GitHub
parent 3a99fe9e0e
commit 617cea5df7
5 changed files with 565 additions and 320 deletions

View File

@@ -355,6 +355,20 @@ if (!function_exists('show_datetime_format')) {
}
}
if (!function_exists('secstohhmm')) {
/**
* Convert seconds to hhmm format
*
* @param $seconds
*/
function secstohhmm($seconds)
{
$seconds = round($seconds);
$hhmm = sprintf('%02d%02d', ($seconds / 3600), ($seconds / 60 % 60));
echo $hhmm;
}
}
if (!function_exists('_fmt')) {
/**
* Replace strings