Add condition to router check, if enable or not

This commit is contained in:
Focuslinkstech 2024-08-27 08:17:28 +01:00 committed by GitHub
parent 079b308bf1
commit edfa98e6b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 68 additions and 51 deletions

View File

@ -79,6 +79,7 @@ foreach ($d as $ds) {
}
}
if ($config['router_check']) {
$routers = ORM::for_table('tbl_routers')->find_many();
if (!$routers) {
echo "No routers found in the database.\n";
@ -139,3 +140,4 @@ if ($isCli) {
} else {
echo "</pre>";
}
}

View File

@ -621,6 +621,21 @@
<p class="help-block col-md-4">{Lang::T('This is to notify you when new updates is available')}
</p>
</div>
<div class="form-group">
<label class="col-md-2 control-label">{Lang::T('Router Check')}</label>
<div class="col-md-6">
<select name="router_check" id="router_check" class="form-control">
<option value="0" {if $_c['router_check']=='0' }selected="selected"
{/if}>{Lang::T('Disabled')}
</option>
<option value="1" {if $_c['router_check']=='1' }selected="selected"
{/if}>{Lang::T('Enabled')}
</option>
</select>
</div>
<p class="help-block col-md-4">{Lang::T('If enabled, the system will notify Admin when router goes Offline, If admin have 10 or more router and many customers, it will get overlapping, you can disabled')}
</p>
</div>
<div class="form-group">
<label class="col-md-2 control-label">{Lang::T('Phone OTP Required')}</label>
<div class="col-md-6">