From 877dc5ba405a84cdd5fd6c2da6b338de1426fcb1 Mon Sep 17 00:00:00 2001 From: Olusesan Ameye Date: Sun, 5 Jun 2022 14:51:18 -0400 Subject: [PATCH] fix --- www/application/controllers/Plb.php | 13 +- .../views/site3/external/view_market.php | 118 +++++++++--------- www/application/views/users/view_balance.php | 2 - www/application/views/users/view_smoney.php | 8 +- 4 files changed, 72 insertions(+), 69 deletions(-) diff --git a/www/application/controllers/Plb.php b/www/application/controllers/Plb.php index 41a0dccb..fcbe3691 100644 --- a/www/application/controllers/Plb.php +++ b/www/application/controllers/Plb.php @@ -10,7 +10,15 @@ class Plb extends WRB_Controller { public function viewjob() { $offerCode = ($this->uri->segment(3)) ? $this->uri->segment(3) : 0; - $this->jobViewPage($offerCode); + + if ( strlen($offerCode) == 10 && !preg_match('/'.preg_quote('^\'£$%^&*()}{@#~?><,@|-=-_+-¬', '/').'/', $offerCode) ) + { + $this->jobViewPage($offerCode); + } + else{ + redirect('/login'); + } + } private function jobViewPage($offerCode) { @@ -32,7 +40,6 @@ class Plb extends WRB_Controller { } $myTable .=""; - // $this->table->set_heading('Added/Expire', 'Title/Recipient', 'Status', ''); $data['market_table'] = $myTable; // $this->table->generate($query); // $offer_found = true; } else { @@ -72,7 +79,7 @@ class Plb extends WRB_Controller { . "Detail" . $row['job_description'] . "" . "Interests : " . $data['interest'] . " Expire: " . $row['expire'] . " " - . "See Moretr>" + . "See More" . " "; } diff --git a/www/application/views/site3/external/view_market.php b/www/application/views/site3/external/view_market.php index 17bc92f1..96a21463 100644 --- a/www/application/views/site3/external/view_market.php +++ b/www/application/views/site3/external/view_market.php @@ -52,80 +52,84 @@ WrenchBoard - - - - -
-
-
-
-
- -
-

- . -

- -
- -
- Home -
-
- -
- - -
- -
- -
-

- title?> -

- -
- - -
- -
- - - - - - + +
+ +
+ + + + + + + + + + +
+ + +
+ Home +
+ +
+ + + +
+ +
+ + + + + + + + + + +
+ + +
+ Contat us +
+ +
+ + +
+
+
+
+
+
+

+ title)?$job_data->title:''?> +

+
+
+
+
-
-
-
-
- -
-
-
- - -
diff --git a/www/application/views/users/view_balance.php b/www/application/views/users/view_balance.php index 51fbcaef..656b82e2 100644 --- a/www/application/views/users/view_balance.php +++ b/www/application/views/users/view_balance.php @@ -158,8 +158,6 @@ function getAddWithdrawButtons(){ - - diff --git a/www/application/views/users/view_smoney.php b/www/application/views/users/view_smoney.php index b3fcad36..5bf5fe8a 100644 --- a/www/application/views/users/view_smoney.php +++ b/www/application/views/users/view_smoney.php @@ -1,18 +1,12 @@ -
-
-
-

Withdraw from Naira Wallet :

- -
@@ -106,7 +100,7 @@