remove pool_expired
This commit is contained in:
parent
98d8b4fe4e
commit
9014b18cea
@ -22,8 +22,7 @@ class Radius {
|
|||||||
$p = ORM::for_table("tbl_plans")->find_one($plan['plan_expired']);
|
$p = ORM::for_table("tbl_plans")->find_one($plan['plan_expired']);
|
||||||
$this->customerAddPlan($customer, $plan);
|
$this->customerAddPlan($customer, $plan);
|
||||||
} else {
|
} else {
|
||||||
$this->upsertCustomerAttr($customer['username'], 'Framed-Pool', $plan['pool_expired'], ':=');
|
$this->customerDeactivate($customer['username'], true);
|
||||||
$this->disconnectCustomer($customer['username']);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -238,15 +238,6 @@
|
|||||||
if (cek.checked) {
|
if (cek.checked) {
|
||||||
$("#routerChoose").addClass('hidden');
|
$("#routerChoose").addClass('hidden');
|
||||||
document.getElementById("routers").required = false;
|
document.getElementById("routers").required = false;
|
||||||
$("#pool_expired").html('');
|
|
||||||
$.ajax({
|
|
||||||
url: "index.php?_route=autoload/pool",
|
|
||||||
data: "routers=radius",
|
|
||||||
cache: false,
|
|
||||||
success: function(msg) {
|
|
||||||
$("#pool_expired").html(msg);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.getElementById("routers").required = true;
|
document.getElementById("routers").required = true;
|
||||||
$("#routerChoose").removeClass('hidden');
|
$("#routerChoose").removeClass('hidden');
|
||||||
|
@ -302,16 +302,6 @@
|
|||||||
$("#routerChoose").removeClass('hidden');
|
$("#routerChoose").removeClass('hidden');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
setTimeout(() => {
|
|
||||||
$.ajax({
|
|
||||||
url: "index.php?_route=autoload/pool",
|
|
||||||
data: "routers=radius",
|
|
||||||
cache: false,
|
|
||||||
success: function(msg) {
|
|
||||||
$("#pool_expired").html(msg);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}, 2000);
|
|
||||||
</script>
|
</script>
|
||||||
{/literal}
|
{/literal}
|
||||||
{/if}
|
{/if}
|
||||||
|
@ -190,14 +190,6 @@
|
|||||||
$("#pool_name").html(msg);
|
$("#pool_name").html(msg);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
$.ajax({
|
|
||||||
url: "index.php?_route=autoload/pool",
|
|
||||||
data: "routers=radius",
|
|
||||||
cache: false,
|
|
||||||
success: function(msg) {
|
|
||||||
$("#pool_expired").html(msg);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
document.getElementById("routers").required = true;
|
document.getElementById("routers").required = true;
|
||||||
document.getElementById("routers").disabled = false;
|
document.getElementById("routers").disabled = false;
|
||||||
|
@ -48,7 +48,6 @@ $(document).ready(function(){
|
|||||||
cache: false,
|
cache: false,
|
||||||
success: function(msg){
|
success: function(msg){
|
||||||
$("#pool_name").html(msg);
|
$("#pool_name").html(msg);
|
||||||
$("#pool_expired").html(msg);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user