radius_enable settings
This commit is contained in:
parent
321ac3a35a
commit
690584ee90
@ -233,7 +233,7 @@ switch ($action) {
|
|||||||
$tawkto = _post('tawkto');
|
$tawkto = _post('tawkto');
|
||||||
$http_proxy = _post('http_proxy');
|
$http_proxy = _post('http_proxy');
|
||||||
$http_proxyauth = _post('http_proxyauth');
|
$http_proxyauth = _post('http_proxyauth');
|
||||||
$radius_mode = _post('radius_mode') * 1;
|
$radius_enable = _post('radius_enable');
|
||||||
run_hook('save_settings'); #HOOK
|
run_hook('save_settings'); #HOOK
|
||||||
|
|
||||||
|
|
||||||
@ -424,14 +424,14 @@ switch ($action) {
|
|||||||
$d->save();
|
$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) {
|
if ($d) {
|
||||||
$d->value = $radius_mode;
|
$d->value = $radius_enable;
|
||||||
$d->save();
|
$d->save();
|
||||||
} else {
|
} else {
|
||||||
$d = ORM::for_table('tbl_appconfig')->create();
|
$d = ORM::for_table('tbl_appconfig')->create();
|
||||||
$d->setting = 'radius_mode';
|
$d->setting = 'radius_enable';
|
||||||
$d->value = $radius_mode;
|
$d->value = $radius_enable;
|
||||||
$d->save();
|
$d->save();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -53,25 +53,6 @@
|
|||||||
<input type="text" class="form-control" id="phone" name="phone" value="{$_c['phone']}">
|
<input type="text" class="form-control" id="phone" name="phone" value="{$_c['phone']}">
|
||||||
</div>
|
</div>
|
||||||
</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">
|
<div class="form-group">
|
||||||
<label class="col-md-2 control-label">{Lang::T('Disable Voucher')}</label>
|
<label class="col-md-2 control-label">{Lang::T('Disable Voucher')}</label>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
@ -84,6 +65,23 @@
|
|||||||
</div>
|
</div>
|
||||||
<p class="help-block col-md-4">{Lang::T('Voucher activation menu will be hidden')}</p>
|
<p class="help-block col-md-4">{Lang::T('Voucher activation menu will be hidden')}</p>
|
||||||
</div>
|
</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>
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<div class="btn-group pull-right">
|
<div class="btn-group pull-right">
|
||||||
|
@ -62,34 +62,36 @@
|
|||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-7">
|
<div class="col-md-7">
|
||||||
<div class="panel panel-primary mb20 panel-hovered project-stats table-responsive">
|
{if $_c['disable_voucher'] != 'yes'}
|
||||||
<div class="panel-heading">Vouchers Stock</div>
|
<div class="panel panel-primary mb20 panel-hovered project-stats table-responsive">
|
||||||
<div class="table-responsive">
|
<div class="panel-heading">Vouchers Stock</div>
|
||||||
<table class="table">
|
<div class="table-responsive">
|
||||||
<thead>
|
<table class="table">
|
||||||
<tr>
|
<thead>
|
||||||
<th>{$_L['Plan_Name']}</th>
|
|
||||||
<th>unused</th>
|
|
||||||
<th>used</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
{foreach $plans as $stok}
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>{$stok['name_plan']}</td>
|
<th>{$_L['Plan_Name']}</th>
|
||||||
<td>{$stok['unused']}</td>
|
<th>unused</th>
|
||||||
<td>{$stok['used']}</td>
|
<th>used</th>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</thead>
|
||||||
{/foreach}
|
<tbody>
|
||||||
<tr>
|
{foreach $plans as $stok}
|
||||||
<td>Total</td>
|
<tr>
|
||||||
<td>{$stocks['unused']}</td>
|
<td>{$stok['name_plan']}</td>
|
||||||
<td>{$stocks['used']}</td>
|
<td>{$stok['unused']}</td>
|
||||||
</tr>
|
<td>{$stok['used']}</td>
|
||||||
</table>
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
{/foreach}
|
||||||
|
<tr>
|
||||||
|
<td>Total</td>
|
||||||
|
<td>{$stocks['unused']}</td>
|
||||||
|
<td>{$stocks['used']}</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
{/if}
|
||||||
<div class="panel panel-warning mb20 panel-hovered project-stats table-responsive">
|
<div class="panel panel-warning mb20 panel-hovered project-stats table-responsive">
|
||||||
<div class="panel-heading">{$_L['User_Expired_Today']}</div>
|
<div class="panel-heading">{$_L['User_Expired_Today']}</div>
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
|
@ -163,8 +163,10 @@
|
|||||||
href="{$_url}services/hotspot">{$_L['Hotspot_Plans']}</a></li>
|
href="{$_url}services/hotspot">{$_L['Hotspot_Plans']}</a></li>
|
||||||
<li {if $_routes[1] eq 'pppoe'}class="active" {/if}><a
|
<li {if $_routes[1] eq 'pppoe'}class="active" {/if}><a
|
||||||
href="{$_url}services/pppoe">{$_L['PPPOE_Plans']}</a></li>
|
href="{$_url}services/pppoe">{$_L['PPPOE_Plans']}</a></li>
|
||||||
<li {if $_routes[1] eq 'radius'}class="active" {/if}><a
|
{if $_c['radius_enable'] == 'yes'}
|
||||||
href="{$_url}services/radius">{Lang::T('Radius Plans')}</a></li>
|
<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
|
<li {if $_routes[1] eq 'list'}class="active" {/if}><a
|
||||||
href="{$_url}bandwidth/list">{$_L['Bandwidth_Plans']}</a></li>
|
href="{$_url}bandwidth/list">{$_L['Bandwidth_Plans']}</a></li>
|
||||||
<li {if $_routes[1] eq 'balance'}class="active" {/if}><a
|
<li {if $_routes[1] eq 'balance'}class="active" {/if}><a
|
||||||
@ -201,8 +203,10 @@
|
|||||||
<ul class="treeview-menu">
|
<ul class="treeview-menu">
|
||||||
<li {if $_routes[0] eq 'routers' and $_routes[1] eq 'list'}class="active" {/if}><a
|
<li {if $_routes[0] eq 'routers' and $_routes[1] eq 'list'}class="active" {/if}><a
|
||||||
href="{$_url}routers/list">{$_L['Routers']}</a></li>
|
href="{$_url}routers/list">{$_L['Routers']}</a></li>
|
||||||
<li {if $_routes[0] eq 'radius' and $_routes[1] eq 'nas-list'}class="active" {/if}><a
|
{if $_c['radius_enable'] == 'yes'}
|
||||||
href="{$_url}radius/nas-list">Radius NAS</a></li>
|
<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
|
<li {if $_routes[0] eq 'pool' and $_routes[1] eq 'list'}class="active" {/if}><a
|
||||||
href="{$_url}pool/list">{$_L['Pool']}</a></li>
|
href="{$_url}pool/list">{$_L['Pool']}</a></li>
|
||||||
{$_MENU_NETWORK}
|
{$_MENU_NETWORK}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user