. * * headerContent.php * * headerContent file. * * @author Daniele Bonini * @copyrights (c) 2016, 2024, 5 Mode */ use fivemode\fivemode\CatUtil; // VARIABLES AND FUNCTION DECLARATIONS settype($q, "string"); // PARAMETERS VALIDATION AND NORMALIZATION $q = substr(filter_input1(INPUT_GET, "q", FILTER_SANITIZE_QM)??"", 0, 100); $catMaskedPath = filter_input(INPUT_GET, "catMaskedPath")??""; $catMaskedPath = strip_tags($catMaskedPath); $catMaskedPath = substr($catMaskedPath, 0, 100); $platform = filter_input(INPUT_GET, "platform")??""; $platform = strip_tags($platform); $platform = substr($platform, 0, 1); $styleTag = PHP_STR; $cat1=PHP_STR; $cat2=PHP_STR; $cat3=PHP_STR; $aCats=explode(PHP_TILDE, $catMaskedPath); if(isset($aCats[0]) && ($aCats[0]!=="*")){ $cat1=$aCats[0]; } if(isset($aCats[1])){ $cat2=$aCats[1]; } if(isset($aCats[2])){ $cat3=$aCats[2]; } //echo("catMaskedPath=" . $catMaskedPath . "
"); //echo("cat1=" . $cat1 . "
"); //echo("cat2=" . $cat2 . "
"); //echo("cat3=" . $cat3 . "
"); $aCats1 = CatUtil::getCatsList(); $aCats2 = CatUtil::getSubCatsList($cat1); ?>