Local IP in Pool
This commit is contained in:
parent
29c8cb3ea1
commit
78a6708a6d
@ -329,4 +329,5 @@ ALTER TABLE `tbl_payment_gateway` ADD `trx_invoice` VARCHAR(25) NOT NULL DEFAULT
|
||||
ALTER TABLE `tbl_customers` ADD `status` ENUM('Active','Banned','Disabled') NOT NULL DEFAULT 'Active' AFTER `auto_renewal`;
|
||||
ALTER TABLE `tbl_customers` CHANGE `status` `status` ENUM('Active','Banned','Disabled','Inactive','Limited','Suspended') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'Active';
|
||||
ALTER TABLE `tbl_plans` ADD `price_old` VARCHAR(40) NOT NULL DEFAULT '' AFTER `price`;
|
||||
ALTER TABLE `tbl_plans` ADD `device` VARCHAR(32) NOT NULL DEFAULT '' AFTER `plan_type`;
|
||||
ALTER TABLE `tbl_plans` ADD `device` VARCHAR(32) NOT NULL DEFAULT '' AFTER `plan_type`;
|
||||
ALTER TABLE `tbl_pool` ADD `local_ip` VARCHAR(40) NOT NULL DEFAULT '' AFTER `pool_name`;
|
@ -83,6 +83,7 @@ switch ($action) {
|
||||
case 'add-post':
|
||||
$name = _post('name');
|
||||
$ip_address = _post('ip_address');
|
||||
$local_ip = _post('local_ip');
|
||||
$routers = _post('routers');
|
||||
run_hook('add_pool'); #HOOK
|
||||
$msg = '';
|
||||
@ -103,6 +104,7 @@ switch ($action) {
|
||||
}
|
||||
|
||||
$b = ORM::for_table('tbl_pool')->create();
|
||||
$d->local_ip = $local_ip;
|
||||
$b->pool_name = $name;
|
||||
$b->range_ip = $ip_address;
|
||||
$b->routers = $routers;
|
||||
@ -116,6 +118,7 @@ switch ($action) {
|
||||
|
||||
|
||||
case 'edit-post':
|
||||
$local_ip = _post('local_ip');
|
||||
$ip_address = _post('ip_address');
|
||||
$routers = _post('routers');
|
||||
run_hook('edit_pool'); #HOOK
|
||||
@ -133,6 +136,7 @@ switch ($action) {
|
||||
}
|
||||
|
||||
if ($msg == '') {
|
||||
$d->local_ip = $local_ip;
|
||||
$d->range_ip = $ip_address;
|
||||
$d->routers = $routers;
|
||||
$d->save();
|
||||
|
@ -631,5 +631,6 @@
|
||||
"State_of_Resident": "State of Resident",
|
||||
"Zip": "Zip",
|
||||
"Zip_Code": "Zip Code",
|
||||
"Local_IP": "Local IP",
|
||||
"": ""
|
||||
}
|
@ -106,5 +106,8 @@
|
||||
"2024.6.5" : [
|
||||
"ALTER TABLE `tbl_plans` ADD `price_old` VARCHAR(40) NOT NULL DEFAULT '' AFTER `price`;",
|
||||
"ALTER TABLE `tbl_plans` ADD `device` VARCHAR(32) NOT NULL DEFAULT '' AFTER `plan_type`;"
|
||||
],
|
||||
"2024.6.10" : [
|
||||
"ALTER TABLE `tbl_pool` ADD `local_ip` VARCHAR(40) NOT NULL DEFAULT '' AFTER `pool_name`;"
|
||||
]
|
||||
}
|
@ -13,10 +13,16 @@
|
||||
<input type="text" class="form-control" id="name" name="name">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-md-2 control-label">{Lang::T('Local IP')}</label>
|
||||
<div class="col-md-6">
|
||||
<input type="text" class="form-control" id="local_ip" name="local_ip" placeholder="192.168.88.1">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-md-2 control-label">{Lang::T('Range IP')}</label>
|
||||
<div class="col-md-6">
|
||||
<input type="text" class="form-control" id="ip_address" name="ip_address" placeholder="ex: 192.168.88.2-192.168.88.254">
|
||||
<input type="text" class="form-control" id="ip_address" name="ip_address" placeholder="192.168.88.2-192.168.88.254">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
@ -31,9 +37,6 @@
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
{if $_c['radius_enable']}
|
||||
<p class="help-block col-md-4">For Radius, you need to add <b>Pool Name</b> in Mikrotik manually</p>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-lg-offset-2 col-lg-10">
|
||||
|
@ -14,6 +14,12 @@
|
||||
<input type="text" class="form-control" id="name" name="name" value="{$d['pool_name']}" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-md-2 control-label">{Lang::T('Local IP')}</label>
|
||||
<div class="col-md-6">
|
||||
<input type="text" class="form-control" id="local_ip" name="local_ip" value="{$d['local_ip']}" placeholder="192.168.88.1">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-md-2 control-label">{Lang::T('Range IP')}</label>
|
||||
<div class="col-md-6">
|
||||
|
@ -9,7 +9,7 @@
|
||||
onclick="return confirm('This will sync/send IP Pool to Mikrotik?')"><span
|
||||
class="glyphicon glyphicon-refresh" aria-hidden="true"></span> sync</a>
|
||||
</div>
|
||||
{Lang::T('IP Pool')}
|
||||
{Lang::T('IP Pool')} - PPPOE
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="md-whiteframe-z1 mb20 text-center" style="padding: 15px">
|
||||
@ -37,6 +37,7 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{Lang::T('Name Pool')}</th>
|
||||
<th>{Lang::T('Local IP')}</th>
|
||||
<th>{Lang::T('Range IP')}</th>
|
||||
<th>{Lang::T('Routers')}</th>
|
||||
<th>{Lang::T('Manage')}</th>
|
||||
@ -47,6 +48,7 @@
|
||||
{foreach $d as $ds}
|
||||
<tr>
|
||||
<td>{$ds['pool_name']}</td>
|
||||
<td>{$ds['local_ip']}</td>
|
||||
<td>{$ds['range_ip']}</td>
|
||||
<td>{$ds['routers']}</td>
|
||||
<td align="center">
|
||||
|
Loading…
x
Reference in New Issue
Block a user