From 46ed530ec11edae8658ba48b371877e4bfe4d775 Mon Sep 17 00:00:00 2001 From: Olusesan Ameye Date: Thu, 3 Feb 2022 12:46:41 -0500 Subject: [PATCH] fix --- www/TEST/i.php | 69 ++++++++++++++++++- www/TEST/login.php | 2 +- www/TEST/test_createuser.php | 1 + www/application/config/routes.php | 2 +- www/application/controllers/Site.php | 1 + .../views/users/view_external_footer.php | 10 +-- www/application/views/users/view_login.php | 2 +- 7 files changed, 76 insertions(+), 11 deletions(-) diff --git a/www/TEST/i.php b/www/TEST/i.php index 97fe7d19..cc03fd6f 100644 --- a/www/TEST/i.php +++ b/www/TEST/i.php @@ -1,4 +1,67 @@ - "red", +"sex" => "male", +]; + + +$ar2 = ["color" => "green", ]; +$result = array_merge_recursive($ar1, $ar2); +print_r($result);*/ +print_r( spaTranslationsCall()); + + + function spaTranslationsCall() + { + return array_merge_recursive(spaTranslations(),[ + 'hide_boards' => 'Hide Boards', + 'draw_numbers' => 'Draw Number(s)', + 'next_draw' => 'Next Draw', + ]); + + } + + + function spaTranslations(){ + return [ + 'cart_title' => 'Below you can review and adjust the games you have added', + 'cart_subtitle' => 'Select a row to see more details', + 'cart_empty' => 'Your cart is empty.', + 'cart_summary_title' => 'Below are the entries you purchased!', + 'cart_summary_title_fail' => 'Your transaction could not be completed, please try again.', + 'cart_summary_title_some_fail' => 'Some tickets could not be played, please return to cart and try again.', + 'show_boards' => 'Expand to display boards', + 'board' => 'Board', + 'week' => 'Week', + 'current_shopping_cart_total' => 'Your current Shopping Cart total is', + 'subtotal' => 'Subtotal', + 'discount' => 'Discount', + 'voucher_discount' => 'Voucher Discount', + 'total' => 'Total', + 'clear_cart_confirmation' => 'Do you realy want to empty your cart?', + 'cart_delete_confirmation' => 'Do you really want to delete this cart item?', + 'number_of_draws' => 'Multi draws', + 'ticket_update' => 'Update Ticket', + 'ticket_updated' => 'Your ticket was Updated, return to cart to replay.', + 'ticket_id' => 'Ticket ID', + 'wager_id' => 'Wager ID', + 'next_draw' => 'Next draw', + 'btn_continue_playing' => 'Continue Playing', + 'cart_draw_date' => 'Date', + 'details_date_at' => 'at', + 'details_date_from' => 'from', + 'details_date_to' => 'to', + 'no_of_draws' => 'No of Draws', + 'handling_fee' => 'Handling Fee', + 'price_details_title' => 'Price Details', + 'cart_item_price' => 'Price', + 'details_total' => 'Total', + 'system_played' => 'System', + ]; + } + + $USER = $_SERVER['SCRIPT_FILENAME']; $USER = str_replace('/home', '', $USER); $USER = strtok($USER, '/'); @@ -7,6 +70,6 @@ $USER = strtok($USER, '/'); $wrenchboard_class = 'wrenchboard_api_' . $USER . '\\WrenchBoard'; $wrenchboard = new $wrenchboard_class(); $ret = $wrenchboard->wrenchboard_api($in,$out); -var_dump($ret); -phpinfo(); +//var_dump($ret); +//phpinfo(); ?> diff --git a/www/TEST/login.php b/www/TEST/login.php index b6f270d9..ed433b30 100644 --- a/www/TEST/login.php +++ b/www/TEST/login.php @@ -11,7 +11,7 @@ $wrenchboard = new $wrenchboard_class(); -Array ( [title] => Re:Week 1 CAT 2: “Muddiest” Point [description] => sffss [timeline] => 3 [job_detail] => sgsagsagashas [price] => 5000 [action] => 0 ) +//Array ( [title] => Re:Week 1 CAT 2: “Muddiest” Point [description] => sffss [timeline] => 3 [job_detail] => sgsagsagashas [price] => 5000 [action] => 0 ) $data['firstname'] = 'Olu'; diff --git a/www/TEST/test_createuser.php b/www/TEST/test_createuser.php index eea9a414..490a6adf 100644 --- a/www/TEST/test_createuser.php +++ b/www/TEST/test_createuser.php @@ -7,6 +7,7 @@ $username = urlencode("jubaworker+" . rand(1000, 9999) . "@gmail.com"); $username = "jubaworker+" . rand(1000, 9999) . "@gmail.com"; //$username = "ameye+" . rand(1000, 9999) . "@chiefsoft.com"; +//$username = "ses66181+" . rand(1000, 9999) . "@gmail.com"; $phone = (rand(1, 2) > 1) ? "770222" . rand(2222, 9999) : ''; include 'sample_data.php'; // just for sample data diff --git a/www/application/config/routes.php b/www/application/config/routes.php index 04c09498..9a5c12d9 100644 --- a/www/application/config/routes.php +++ b/www/application/config/routes.php @@ -49,7 +49,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); | Examples: my-controller/index -> my_controller/index | my-controller/my-method -> my_controller/my_method */ -$route['default_controller'] = 'site'; +$route['default_controller'] = 'login'; $route['404_override'] = 'Wrb404'; $route['translate_uri_dashes'] = FALSE; diff --git a/www/application/controllers/Site.php b/www/application/controllers/Site.php index a88bf528..5eb5bf14 100644 --- a/www/application/controllers/Site.php +++ b/www/application/controllers/Site.php @@ -12,6 +12,7 @@ class Site extends WRB_Controller { * */ $this->home1(); + } public function registration() { diff --git a/www/application/views/users/view_external_footer.php b/www/application/views/users/view_external_footer.php index 4835b74f..88ac20ee 100644 --- a/www/application/views/users/view_external_footer.php +++ b/www/application/views/users/view_external_footer.php @@ -11,12 +11,12 @@ diff --git a/www/application/views/users/view_login.php b/www/application/views/users/view_login.php index 4c4e3847..e071ef13 100644 --- a/www/application/views/users/view_login.php +++ b/www/application/views/users/view_login.php @@ -165,7 +165,7 @@
Don't have an account?
- Sign up + Sign up