Auto Renewal Button

This commit is contained in:
Ibnu Maksum
2023-08-15 10:27:46 +07:00
parent 7e78c5db40
commit 783b541645
3 changed files with 47 additions and 29 deletions

View File

@ -9,6 +9,11 @@ $ui->assign('_title', $_L['Dashboard']);
$user = User::_info();
$ui->assign('_user', $user);
if(isset($_GET['renewal'])){
$user->auto_renewal = $_GET['renewal'];
$user->save();
}
//Client Page
$bill = User::_billing();

View File

@ -359,3 +359,7 @@ $_L['Balance_Plans'] = 'Balance Plans';
$_L['Buy_Balance'] = 'Buy Balance?';
$_L['Price'] = 'Price';
$_L['Validity'] = 'Validity';
$_L['Disable_auto_renewal'] = 'Disable auto renewal?';
$_L['Auto_Renewal_On'] = 'Auto Renewal On';
$_L['Enable_auto_renewal'] = 'Enable auto renewal?';
$_L['Auto_Renewal_Off'] = 'Auto Renewal Off';