From 26845635b24bb5929f5546ac0f10d2b525c2471a Mon Sep 17 00:00:00 2001 From: Olusesan Ameye Date: Sat, 20 Aug 2022 16:55:44 -0400 Subject: [PATCH] fix --- www/application/controllers/Refer.php | 10 ++++------ www/application/views/users/view_refagree.php | 9 ++++++--- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/www/application/controllers/Refer.php b/www/application/controllers/Refer.php index 8a879978..cff15a49 100644 --- a/www/application/controllers/Refer.php +++ b/www/application/controllers/Refer.php @@ -85,9 +85,7 @@ class Refer extends Users_Controller { if ($_SESSION['refer'] != '') { redirect('/refer'); } - - - +// print_r($_POST); if ($_POST) { $in = array(); $in['action'] = WRENCHBOARD_ACCOUNT_TERMS; @@ -95,8 +93,9 @@ class Refer extends Users_Controller { $in['member_id'] = $_SESSION['member_id']; $this->load->model('backend_model'); $out = array(); + // print_r( $in ); + // exit; $res = $this->backend_model->wrenchboard_api($in, $out); - if ($res == PHP_API_OK) { redirect('/refer'); } @@ -105,8 +104,7 @@ class Refer extends Users_Controller { $data['page_name'] = 'referterms'; $data['page_title'] = 'Referer Terms'; $data['page_key'] = 'WRB_MAIN_REFER_TERM'; - - $data['txt_detail'] = $this->readFixedText( $data['page_key'] ); + $data['txt_detail'] = $this->readFixedText( $data['page_key'] ); // $this->load->view('users/view_header_user', $data); diff --git a/www/application/views/users/view_refagree.php b/www/application/views/users/view_refagree.php index 55700afa..e3d3f238 100644 --- a/www/application/views/users/view_refagree.php +++ b/www/application/views/users/view_refagree.php @@ -14,7 +14,7 @@
-
+
@@ -25,11 +25,14 @@
- + + + +
- +