define("DO_NOT_INIT_SESSION", 1); require_once("config.php"); ob_start("callback"); // Extract the query string part (after ?) $query_string = parse_url($redirect_url, PHP_URL_QUERY); // Parse the query string into variables parse_str($query_string, $params); // Access the parameters $record_id = isset($params['record_id']) ? intval($params['record_id']) : 0; $avatar_detail = ""; $urlDealDetail = ""; // Check URL hiện tại $current_url = ""; if (isset($_SERVER['REQUEST_URI'])) $current_url = $_SERVER['REQUEST_URI']; $arrayInfoStructure = getInfoStructure($record_id); $con_site_title = trim($arrayInfoStructure["struc_name"]); if ($arrayInfoStructure["struc_meta_title"] != "") $con_site_title = trim($arrayInfoStructure["struc_meta_title"]); if ($arrayInfoStructure["struc_meta_keywords"] != "") $con_meta_keywords = trim($arrayInfoStructure["struc_meta_keywords"]); if ($arrayInfoStructure["struc_meta_description"] != "") $con_meta_description = trim($arrayInfoStructure["struc_meta_description"]); $linkStruc = createlink("structure", array("nTitle" => $arrayInfoStructure["struc_name"], "iData" => $arrayInfoStructure["struc_id"])); $linkStrucCat = createlink("category", array("nTitle" => $arrayInfoStructure["cat_name"], "iCat" => $arrayInfoStructure["cat_id"], "cat_type" => "structure")); ?>