remove pool_expired

This commit is contained in:
Ibnu Maksum 2024-06-21 20:00:24 +07:00
parent 98d8b4fe4e
commit 9014b18cea
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5
5 changed files with 1 additions and 30 deletions

View File

@ -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']);
} }
} }

View File

@ -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');

View File

@ -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}

View File

@ -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;

View File

@ -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);
} }
}); });
}); });