$error = true; $configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php"; include_once($configPath); if (!empty($_POST["testo"]) && tokenVerify()) { include($root."/layout/top.php"); $error = false; $schede = []; if (!empty($_SESSION["ente"]->moduli)) { $moduli = array_keys($_SESSION["ente"]->moduli); foreach($moduli AS $modulo) { unset($result); $tokenSearch = tokenGen(); $_searchString = $_POST["testo"]; $path = "{$root}/$modulo/_search.php"; if (file_exists($path)) { include($path); if (!empty($result)) { $schede[$modulo] = $result; } } } } if (!empty($schede)) { $moduli = array_keys($schede); $active = "active"; ?>