MOON
Server: Apache
System: Linux smtp.modiva.org 3.10.0-862.14.4.el7.x86_64 #1 SMP Wed Sep 26 15:12:11 UTC 2018 x86_64
User: rtbrisc (1005)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/rtbrisc/public_html/admin/main/track/new.php
<?php
  require_once("../worker/workers/server/issues.php");

  $ticketID = $_GET['tid'];

  $check = mysqli_query($iss, "SELECT * FROM tblhelpdeskrequest WHERE TicketID = '$ticketID'");

  if($row_check = mysqli_fetch_assoc($check)){
    if($row_check['TrackStatus'] > 0){
       header("Location: details.php?track=$ticketID");
    }else{
      $tid = $row_check['TicketID'];
      $cid = $row_check['CustomerID'];
      $tec = $row_check['TechnicianID'];
      //echo $tec;
      // if(empty($tec)){
      //   $_SESSION['tra_err'] = "This request has not been assigned to a technician. Please contact our customer care officer.";
      //   header("Location: available.php");
      // }else{
        header("Location: ../worker/workers/tracking.php?tid=$tid&cid=$cid&tec=$tec");
      //}
    }
  }else{
    $_SESSION['tra_err'] = "Invalid Ticket ID. Please make sure you are selecting the right content.";
    header("Location: available.php");
  }
?>