Merge branch 'hotspotbilling:Development' into Development
This commit is contained in:
commit
55d344febe
@ -2,6 +2,11 @@
|
|||||||
|
|
||||||
# CHANGELOG
|
# CHANGELOG
|
||||||
|
|
||||||
|
## 2024.5.17
|
||||||
|
|
||||||
|
- Status Customer: Active/Banned/Disabled
|
||||||
|
- Add search with order in Customer list
|
||||||
|
|
||||||
## 2024.5.16
|
## 2024.5.16
|
||||||
|
|
||||||
- Confirm can change Using
|
- Confirm can change Using
|
||||||
|
@ -163,7 +163,7 @@ class User
|
|||||||
$id = User::getID();
|
$id = User::getID();
|
||||||
}
|
}
|
||||||
$d = ORM::for_table('tbl_customers')->find_one($id);
|
$d = ORM::for_table('tbl_customers')->find_one($id);
|
||||||
if ($d['status'] != 'Banned') {
|
if ($d['status'] == 'Banned') {
|
||||||
_alert(Lang::T('This account status') . ' : ' . Lang::T($d['status']), 'danger', "logout");
|
_alert(Lang::T('This account status') . ' : ' . Lang::T($d['status']), 'danger', "logout");
|
||||||
}
|
}
|
||||||
if (empty($d['username'])) {
|
if (empty($d['username'])) {
|
||||||
|
@ -613,7 +613,8 @@ switch ($action) {
|
|||||||
$order_pos = [
|
$order_pos = [
|
||||||
'username' => 0,
|
'username' => 0,
|
||||||
'created_at' => 8,
|
'created_at' => 8,
|
||||||
'balance' => 3
|
'balance' => 3,
|
||||||
|
'status' => 7
|
||||||
];
|
];
|
||||||
|
|
||||||
if ($search != '') {
|
if ($search != '') {
|
||||||
|
@ -18,7 +18,7 @@ if (isset($_GET['renewal'])) {
|
|||||||
|
|
||||||
if (_post('send') == 'balance') {
|
if (_post('send') == 'balance') {
|
||||||
if ($config['enable_balance'] == 'yes' && $config['allow_balance_transfer'] == 'yes') {
|
if ($config['enable_balance'] == 'yes' && $config['allow_balance_transfer'] == 'yes') {
|
||||||
if ($user['status'] != 'Active') {
|
if ($user['status'] == 'Disabled') {
|
||||||
_alert(Lang::T('This account status') . ' : ' . Lang::T($user['status']), 'danger', "");
|
_alert(Lang::T('This account status') . ' : ' . Lang::T($user['status']), 'danger', "");
|
||||||
}
|
}
|
||||||
$target = ORM::for_table('tbl_customers')->where('username', _post('username'))->find_one();
|
$target = ORM::for_table('tbl_customers')->where('username', _post('username'))->find_one();
|
||||||
@ -80,7 +80,7 @@ if (_post('send') == 'balance') {
|
|||||||
r2(U . 'home', 'd', Lang::T('Failed, balance is not available'));
|
r2(U . 'home', 'd', Lang::T('Failed, balance is not available'));
|
||||||
}
|
}
|
||||||
} else if (_post('send') == 'plan') {
|
} else if (_post('send') == 'plan') {
|
||||||
if ($user['status'] != 'Active') {
|
if ($user['status'] == 'Disabled') {
|
||||||
_alert(Lang::T('This account status') . ' : ' . Lang::T($user['status']), 'danger', "");
|
_alert(Lang::T('This account status') . ' : ' . Lang::T($user['status']), 'danger', "");
|
||||||
}
|
}
|
||||||
$actives = ORM::for_table('tbl_user_recharges')
|
$actives = ORM::for_table('tbl_user_recharges')
|
||||||
@ -98,7 +98,7 @@ if (_post('send') == 'balance') {
|
|||||||
$ui->assign('_bills', User::_billing());
|
$ui->assign('_bills', User::_billing());
|
||||||
|
|
||||||
if (isset($_GET['recharge']) && !empty($_GET['recharge'])) {
|
if (isset($_GET['recharge']) && !empty($_GET['recharge'])) {
|
||||||
if ($user['status'] != 'Active') {
|
if ($user['status'] == 'Disabled') {
|
||||||
_alert(Lang::T('This account status') . ' : ' . Lang::T($user['status']), 'danger', "");
|
_alert(Lang::T('This account status') . ' : ' . Lang::T($user['status']), 'danger', "");
|
||||||
}
|
}
|
||||||
if (!empty(App::getTokenValue(_get('stoken')))) {
|
if (!empty(App::getTokenValue(_get('stoken')))) {
|
||||||
@ -128,7 +128,7 @@ if (isset($_GET['recharge']) && !empty($_GET['recharge'])) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (!empty(_get('extend'))) {
|
} else if (!empty(_get('extend'))) {
|
||||||
if ($user['status'] != 'Active') {
|
if ($user['status'] == 'Disabled') {
|
||||||
_alert(Lang::T('This account status') . ' : ' . Lang::T($user['status']), 'danger', "");
|
_alert(Lang::T('This account status') . ' : ' . Lang::T($user['status']), 'danger', "");
|
||||||
}
|
}
|
||||||
if (!$config['extend_expired']) {
|
if (!$config['extend_expired']) {
|
||||||
|
@ -24,7 +24,7 @@ switch ($do) {
|
|||||||
$d = ORM::for_table('tbl_customers')->where('username', $username)->find_one();
|
$d = ORM::for_table('tbl_customers')->where('username', $username)->find_one();
|
||||||
if ($d) {
|
if ($d) {
|
||||||
$d_pass = $d['password'];
|
$d_pass = $d['password'];
|
||||||
if ($d['status'] != 'Banned') {
|
if ($d['status'] == 'Banned') {
|
||||||
_alert(Lang::T('This account status') . ' : ' . Lang::T($d['status']), 'danger', "");
|
_alert(Lang::T('This account status') . ' : ' . Lang::T($d['status']), 'danger', "");
|
||||||
}
|
}
|
||||||
if (Password::_uverify($password, $d_pass) == true) {
|
if (Password::_uverify($password, $d_pass) == true) {
|
||||||
|
@ -472,5 +472,7 @@
|
|||||||
"SMS": "SMS",
|
"SMS": "SMS",
|
||||||
"WhatsApp": "WhatsApp",
|
"WhatsApp": "WhatsApp",
|
||||||
"SMS_and_WhatsApp": "SMS dan WhatsApp",
|
"SMS_and_WhatsApp": "SMS dan WhatsApp",
|
||||||
"The_method_which_OTP_will_be_sent_to_user": "Metode OTP yang akan dikirimkan ke pengguna"
|
"The_method_which_OTP_will_be_sent_to_user": "Metode OTP yang akan dikirimkan ke pengguna",
|
||||||
|
"Disabled": "Dinonaktifkan",
|
||||||
|
"Banned": "Banned"
|
||||||
}
|
}
|
||||||
|
@ -36,6 +36,7 @@
|
|||||||
<option value="username" {if $order eq 'username' }selected{/if}>{Lang::T('Username')}</option>
|
<option value="username" {if $order eq 'username' }selected{/if}>{Lang::T('Username')}</option>
|
||||||
<option value="created_at" {if $order eq 'created_at' }selected{/if}>{Lang::T('Created Date')}</option>
|
<option value="created_at" {if $order eq 'created_at' }selected{/if}>{Lang::T('Created Date')}</option>
|
||||||
<option value="balance" {if $order eq 'balance' }selected{/if}>{Lang::T('Balance')}</option>
|
<option value="balance" {if $order eq 'balance' }selected{/if}>{Lang::T('Balance')}</option>
|
||||||
|
<option value="status" {if $order eq 'status' }selected{/if}>{Lang::T('Status')}</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-4">
|
<div class="col-xs-4">
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"version": "2024.5.16"
|
"version": "2024.5.17.1"
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user