radius_enable settings
This commit is contained in:
parent
321ac3a35a
commit
690584ee90
@ -233,7 +233,7 @@ switch ($action) {
|
||||
$tawkto = _post('tawkto');
|
||||
$http_proxy = _post('http_proxy');
|
||||
$http_proxyauth = _post('http_proxyauth');
|
||||
$radius_mode = _post('radius_mode') * 1;
|
||||
$radius_enable = _post('radius_enable');
|
||||
run_hook('save_settings'); #HOOK
|
||||
|
||||
|
||||
@ -424,14 +424,14 @@ switch ($action) {
|
||||
$d->save();
|
||||
}
|
||||
|
||||
$d = ORM::for_table('tbl_appconfig')->where('setting', 'radius_mode')->find_one();
|
||||
$d = ORM::for_table('tbl_appconfig')->where('setting', 'radius_enable')->find_one();
|
||||
if ($d) {
|
||||
$d->value = $radius_mode;
|
||||
$d->value = $radius_enable;
|
||||
$d->save();
|
||||
} else {
|
||||
$d = ORM::for_table('tbl_appconfig')->create();
|
||||
$d->setting = 'radius_mode';
|
||||
$d->value = $radius_mode;
|
||||
$d->setting = 'radius_enable';
|
||||
$d->value = $radius_enable;
|
||||
$d->save();
|
||||
}
|
||||
|
||||
|
@ -53,25 +53,6 @@
|
||||
<input type="text" class="form-control" id="phone" name="phone" value="{$_c['phone']}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group hidden">
|
||||
<label class="col-md-2 control-label">Radius Mode?</label>
|
||||
<div class="col-md-6">
|
||||
<select name="radius_mode" id="radius_mode" class="form-control">
|
||||
<option value="0">No</option>
|
||||
<option value="1" {if $_c['radius_mode']}selected="selected" {/if}>Yes</option>
|
||||
</select>
|
||||
</div>
|
||||
<p class="help-block col-md-4">Still on Testing.<br>
|
||||
Changing from Radius will not add existing user to Mikrotik Hotspot.<br>
|
||||
With Radius user can use Hotspot or PPOE.</p>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-md-2 control-label">APP URL</label>
|
||||
<div class="col-md-6">
|
||||
<input type="text" readonly class="form-control" value="{$app_url}">
|
||||
</div>
|
||||
<p class="help-block col-md-4">edit at config.php</p>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-md-2 control-label">{Lang::T('Disable Voucher')}</label>
|
||||
<div class="col-md-6">
|
||||
@ -84,6 +65,23 @@
|
||||
</div>
|
||||
<p class="help-block col-md-4">{Lang::T('Voucher activation menu will be hidden')}</p>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-md-2 control-label">APP URL</label>
|
||||
<div class="col-md-6">
|
||||
<input type="text" readonly class="form-control" value="{$app_url}">
|
||||
</div>
|
||||
<p class="help-block col-md-4">edit at config.php</p>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-md-2 control-label text-muted">Enable Radius</label>
|
||||
<div class="col-md-6">
|
||||
<select name="radius_enable" id="radius_enable" class="form-control text-muted">
|
||||
<option value="no">No</option>
|
||||
<option value="yes" {if $_c['radius_enable']}selected="selected" {/if}>Yes</option>
|
||||
</select>
|
||||
</div>
|
||||
<p class="help-block col-md-4 text-red">Radius Not Yet Ready</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel-heading">
|
||||
<div class="btn-group pull-right">
|
||||
|
@ -62,6 +62,7 @@
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-7">
|
||||
{if $_c['disable_voucher'] != 'yes'}
|
||||
<div class="panel panel-primary mb20 panel-hovered project-stats table-responsive">
|
||||
<div class="panel-heading">Vouchers Stock</div>
|
||||
<div class="table-responsive">
|
||||
@ -90,6 +91,7 @@
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="panel panel-warning mb20 panel-hovered project-stats table-responsive">
|
||||
<div class="panel-heading">{$_L['User_Expired_Today']}</div>
|
||||
<div class="table-responsive">
|
||||
|
@ -163,8 +163,10 @@
|
||||
href="{$_url}services/hotspot">{$_L['Hotspot_Plans']}</a></li>
|
||||
<li {if $_routes[1] eq 'pppoe'}class="active" {/if}><a
|
||||
href="{$_url}services/pppoe">{$_L['PPPOE_Plans']}</a></li>
|
||||
{if $_c['radius_enable'] == 'yes'}
|
||||
<li {if $_routes[1] eq 'radius'}class="active" {/if}><a
|
||||
href="{$_url}services/radius">{Lang::T('Radius Plans')}</a></li>
|
||||
{/if}
|
||||
<li {if $_routes[1] eq 'list'}class="active" {/if}><a
|
||||
href="{$_url}bandwidth/list">{$_L['Bandwidth_Plans']}</a></li>
|
||||
<li {if $_routes[1] eq 'balance'}class="active" {/if}><a
|
||||
@ -201,8 +203,10 @@
|
||||
<ul class="treeview-menu">
|
||||
<li {if $_routes[0] eq 'routers' and $_routes[1] eq 'list'}class="active" {/if}><a
|
||||
href="{$_url}routers/list">{$_L['Routers']}</a></li>
|
||||
{if $_c['radius_enable'] == 'yes'}
|
||||
<li {if $_routes[0] eq 'radius' and $_routes[1] eq 'nas-list'}class="active" {/if}><a
|
||||
href="{$_url}radius/nas-list">Radius NAS</a></li>
|
||||
{/if}
|
||||
<li {if $_routes[0] eq 'pool' and $_routes[1] eq 'list'}class="active" {/if}><a
|
||||
href="{$_url}pool/list">{$_L['Pool']}</a></li>
|
||||
{$_MENU_NETWORK}
|
||||
|
Loading…
x
Reference in New Issue
Block a user