mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-17 08:11:12 +02:00
Add condition to router check, if enable or not
This commit is contained in:
parent
079b308bf1
commit
edfa98e6b2
2 changed files with 68 additions and 51 deletions
|
@ -79,6 +79,7 @@ foreach ($d as $ds) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($config['router_check']) {
|
||||||
$routers = ORM::for_table('tbl_routers')->find_many();
|
$routers = ORM::for_table('tbl_routers')->find_many();
|
||||||
if (!$routers) {
|
if (!$routers) {
|
||||||
echo "No routers found in the database.\n";
|
echo "No routers found in the database.\n";
|
||||||
|
@ -139,3 +140,4 @@ if ($isCli) {
|
||||||
} else {
|
} else {
|
||||||
echo "</pre>";
|
echo "</pre>";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -621,6 +621,21 @@
|
||||||
<p class="help-block col-md-4">{Lang::T('This is to notify you when new updates is available')}
|
<p class="help-block col-md-4">{Lang::T('This is to notify you when new updates is available')}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</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">
|
<div class="form-group">
|
||||||
<label class="col-md-2 control-label">{Lang::T('Phone OTP Required')}</label>
|
<label class="col-md-2 control-label">{Lang::T('Phone OTP Required')}</label>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue