require_once PERFIL_PACKAGE . 'Block.class.php'; //require_once $comPath . "util/protect_sql_injection.php"; if (empty($_SERVER['HTTP_X_REQUESTED_WITH']) || strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) != 'xmlhttprequest') { header("Location: {$path_dir}404"); } $cidade = $_POST["city"]; $lang = $_POST["lang"]; //$pagina = (int) $_POST["page"]; //unset($_POST["page"]); $perfil = new PerfilPrint($cidade); TextBuilder::$idMunicipio = $perfil->getCityId(); //TextBuilder::$nomeMunicipio = mb_convert_case($perfil->getCityName(), MB_CASE_TITLE, "UTF-8"); TextBuilder::$nomeMunicipio = $perfil->getCityName(); TextBuilder::$ufMunicipio = $perfil->getUfName(); TextBuilder::$print = false; TextBuilder_EN::$idMunicipio = $perfil->getCityId(); //TextBuilder_EN::$nomeMunicipio = mb_convert_case($perfil->getCityName(), MB_CASE_TITLE, "UTF-8"); TextBuilder_EN::$nomeMunicipio = $perfil->getCityName(); TextBuilder_EN::$ufMunicipio = $perfil->getUfName(); TextBuilder_EN::$print = false; TextBuilder_ES::$idMunicipio = $perfil->getCityId(); //TextBuilder_EN::$nomeMunicipio = mb_convert_case($perfil->getCityName(), MB_CASE_TITLE, "UTF-8"); TextBuilder_ES::$nomeMunicipio = $perfil->getCityName(); TextBuilder_ES::$ufMunicipio = $perfil->getUfName(); TextBuilder_ES::$print = false; $perfil->drawScriptsMaps(); $perfil->drawMap(); $perfil->drawBoxes($lang); switch ($lang) { case "pt": //IDH ----------------------------------