getLanguagesList($acceptedLanguages,$foundLanguages); if ($checkLanguages) { $gen_language = key($foundLanguages); } else { $gen_language = 'it'; } $path="./portal/". $gen_portal."/languages/".$gen_language."/words.php"; include($path); $path="./portal/". $gen_portal."/languages/".$gen_language."/objects.php"; include($path); header("Content-type:text/xml"); ini_set('max_execution_time', 600); print(''); print('http://'.$par_email["portale"].'/sitemapm.php'.date("Y-m-d").'T'.date("H:m:s").'+00:00'); $res1=safe_query("SELECT my_anageneral.id FROM my_password LEFT JOIN my_anageneral ON my_anageneral.id = my_password.id_anageneral WHERE my_anageneral.id != '".$prm_idportale."' && my_anageneral.attivo='1' && my_password.id_portale = '".$gen_portal."' && my_password.lastlogin != '0000-00-00 00:00:00' ORDER BY my_anageneral.cognome, my_anageneral.nome, my_anageneral.id"); $numero=mysql_num_rows($res1); $cicli=ceil($numero/24900); for ($i=0;$i<$cicli;$i++) print('http://'.$par_email["portale"].'/sitemapu.php?ccl='.$i.''.date("Y-m-d").'T'.date("H:m:s").'+00:00'); $res1=safe_query("SELECT my_objects.id FROM my_objects LEFT JOIN my_object_authorization ON my_object_authorization.id_object = my_objects.id_object WHERE my_object_authorization.id_anageneral = '".$prm_idportale."' && my_objects.online='T' ORDER BY my_objects.descrizione"); $numero=mysql_num_rows($res1); $cicli=ceil($numero/24900); for ($i=0;$i<$cicli;$i++) print('http://'.$par_email["portale"].'/sitemapo.php?ccl='.$i.''.date("Y-m-d").'T'.date("H:m:s").'+00:00'); print('');