From 6e87d4762bc8cd708c1b5f78c50289b4ce59a1e5 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Fri, 20 Sep 2024 16:59:27 -0400 Subject: [PATCH] fixed uusable links --- app/Controllers/Home.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/Controllers/Home.php b/app/Controllers/Home.php index 26746cb..edf9db3 100644 --- a/app/Controllers/Home.php +++ b/app/Controllers/Home.php @@ -9,7 +9,7 @@ class Home extends BaseController return view('welcome_message'); } - public function promoIndex($promo,$promoOwner=''):string{ + public function promoIndex($promo,$promoOwner=''){ // if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { // echo 'This is a server using Windows!'; @@ -23,7 +23,11 @@ class Home extends BaseController $out["promo"] = $promo; $out["promo_owner"] = $promoOwner; - // var_dump($out); + if ( $out["status_message"] != "VALID_LINK_FOUND"){ + return redirect()->to($out["user_server_name"]); + } + + $out["task"] = $this->APIcall('POST', $this->wrenchApiServer(). 'tasks',$in)["result_list"]; return view('welcome_message', $out); }