diff --git a/www/application/controllers/Member.php b/www/application/controllers/Member.php index cb1206c7..866d8402 100644 --- a/www/application/controllers/Member.php +++ b/www/application/controllers/Member.php @@ -1132,13 +1132,13 @@ class Member extends Users_Controller { if ($_POST) { - + $in = []; //$email = $this->input->post('email'); // $firstname = $this->input->post('firstname'); // $lastname = $this->input->post('lastname'); $your_message = $this->input->post('msg'); - $data['firstname'] = $_SESSION['firstname']; // $firstname; - $data['lastname'] = $_SESSION['lastname']; // $lastname; + $in['firstname'] = $_SESSION['firstname']; // $firstname; + $in['lastname'] = $_SESSION['lastname']; // $lastname; // if ($firstname == '' || $lastname == '') { // $message = 'Both first and last name are required'; // } @@ -1152,14 +1152,14 @@ class Member extends Users_Controller { // } if ($message == '') { - $data['email'] = $_SESSION['email']; // $email; + $in['email'] = $_SESSION['email']; // $email; - $data['your_message'] = $your_message; - $data['loc'] = $_SERVER['REMOTE_ADDR']; //'38.101.241.200'; - $data['action'] = WRENCHBOARD_SEND_CONTACTUS; + $in['your_message'] = $your_message; + $in['loc'] = $_SERVER['REMOTE_ADDR']; //'38.101.241.200'; + $in['action'] = WRENCHBOARD_SEND_CONTACTUS; $this->load->model('backend_model'); $out = array(); - $res = $this->backend_model->wrenchboard_api($data, $out); + $res = $this->backend_model->wrenchboard_api($in, $out); $message = "Your message was sent"; $email = $firstname = $lastname = $your_message = ""; } else { diff --git a/www/application/views/users/view_addfund.php b/www/application/views/users/view_addfund.php index b81b4fed..61c4683a 100644 --- a/www/application/views/users/view_addfund.php +++ b/www/application/views/users/view_addfund.php @@ -5,32 +5,29 @@
- - -
+
-

Add Credit to your Account

+

Add Credit with Account Deposit

- - - +

Transfer fund to WrenchBoard GTB Account 0250869867

+
+ Make sure you add your account username in the notes part of the transfer for prompt processing. When the transfer is complete notify here Contact us
-
- +
@@ -95,8 +92,6 @@ - - @@ -111,11 +106,8 @@
-
- - diff --git a/www/application/views/users/view_support.php b/www/application/views/users/view_support.php index f37065a1..b80a03ab 100644 --- a/www/application/views/users/view_support.php +++ b/www/application/views/users/view_support.php @@ -2,7 +2,7 @@
-
+
@@ -58,36 +58,40 @@ // --> -
-
-
- -
- -
- -
-
- -
- - -
- - -
-
- -
- -
-
-
+ + + +
+ + + + + +
+ + +
+ + + +
+ + + + + + + +
@@ -98,5 +102,25 @@
+ +
+
+ +
+
+

.

+
+
+ + +
+
+

.

+
+. +
+
+
+
diff --git a/www/svs/user/userve.php b/www/svs/user/userve.php index 4bf61d02..f2be0d79 100644 --- a/www/svs/user/userve.php +++ b/www/svs/user/userve.php @@ -30,10 +30,13 @@ $endpoints = array( 'getpendingjobs' => array('POST'), 'taskmessage' => array('POST'), 'sendtaskmessage' => array('POST'), - 'getwallets' => array('POST') + 'getwallets' => array('POST'), + 'sitecontact' => array('POST') ); - +$call_backend = true; // sometimes we need to overwite the call to the extenstion API +$local_out = []; // use local out to send output when the result is not from the extenstion +$ret = -1; /* header("Access-Control-Allow-Origin: *"); @@ -91,6 +94,10 @@ if ($_SERVER["REQUEST_METHOD"] == "GET") { } $in["loc"] = $_SERVER["REMOTE_ADDR"]; switch ($endpoint) { + case 'sitecontact': + $local_out = ['result'=>'100','msg'=>'Recieved']; + $call_backend = false; + break; case 'generics': case 'apigate': //$in["action"] = WRENCHBOARD_ACCOUNT_LOGIN; @@ -179,8 +186,15 @@ $in["pid"] = 100; //file_put_contents("in_debug.log", $in); // DEBUG $out = array(); -$ret = $wrenchboard->wrenchboard_api($in, $out); -$out['internal_return'] = $ret; // this is reserved array parameter - to be caprured and reoved before you use the out array() +if ( $call_backend == true){ + $ret = $wrenchboard->wrenchboard_api($in, $out); + $out['internal_return'] = $ret; // this is reserved array parameter - to be caprured and reoved before you use the out array() +} +else +{ + $out = $local_out; +} + header("HTTP/1.1 200 OK"); header("Status: 200 OK");