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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user