diff --git a/system/controllers/home.php b/system/controllers/home.php index a4372225..6108d816 100644 --- a/system/controllers/home.php +++ b/system/controllers/home.php @@ -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(); diff --git a/system/lan/english/common.lan.php b/system/lan/english/common.lan.php index b03853b9..0516eea8 100644 --- a/system/lan/english/common.lan.php +++ b/system/lan/english/common.lan.php @@ -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'; diff --git a/ui/ui/user-dashboard.tpl b/ui/ui/user-dashboard.tpl index 71ec9908..80851465 100644 --- a/ui/ui/user-dashboard.tpl +++ b/ui/ui/user-dashboard.tpl @@ -65,7 +65,16 @@ {if $_c['enable_balance'] == 'yes'}