/* Decoded by unphp.net */ query(${${"GLOBALS"}["ulsweplie"]})or die("Errore nella lettura di sistema");${${"GLOBALS"}["fsimppe"]}=$risultato->fetch_array();${${"GLOBALS"}["ryudnuxrh"]}=${${"GLOBALS"}["maoqupr"]}["STATO"];$bkftele="attivo";if(${${"GLOBALS"}["utjbljcyooxq"]}=="1"){if(${${"GLOBALS"}["tmpqaxjsbp"]}!="administrator"){header("location:index_in_aggiornamento.php");$mysql->close();exit;}}verificaConnessioneGiaAttiva(${${"GLOBALS"}["jqktfdfzqf"]});${${"GLOBALS"}["ovntaqlcip"]}=md5(${${"GLOBALS"}["krpnlswqpj"]});${${"GLOBALS"}["ijllrbzrr"]}=crypt(${${"GLOBALS"}["krpnlswqpj"]},${${"GLOBALS"}["ftlupsftmr"]});${$mtplkt}="select * from utenti U, tipo_utente T where U.UTENTE='$user' and (U.PWD='$hashedPassword' or U.PWD = '$md5password') and T.ID_TIPO = U.TIPO_UTENTE";${${"GLOBALS"}["ulqsgcsru"]}=$mysql->query(${$uvicwxrodwy})or die("Sistema momentaneamente fuori servizio. Riprovare piu' tardi.");${${"GLOBALS"}["uqcjpfwhtj"]}=$result->num_rows;${${"GLOBALS"}["maoqupr"]}=$result->fetch_array();${$bkftele}=${${"GLOBALS"}["maoqupr"]}["ATTIVO"];if(${$jyycrqn}==1 and${$ndcfgdrwd}=="1"){${"GLOBALS"}["qwsrpnls"]="caratteri";${${"GLOBALS"}["qwsrpnls"]}="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";${"GLOBALS"}["nxfwlvxnuvt"]="token";${"GLOBALS"}["ycwkoyafni"]="stringaRandom";${${"GLOBALS"}["ycwkoyafni"]}="";${"GLOBALS"}["ltlkuzyhbs"]="vararray";${"GLOBALS"}["melvjvue"]="vararray";for(${${"GLOBALS"}["uigqjznvivk"]}=0;${${"GLOBALS"}["uigqjznvivk"]}<125;${${"GLOBALS"}["uigqjznvivk"]}++){${${"GLOBALS"}["fqctktov"]}.=${${"GLOBALS"}["xhbbplzindlu"]}[rand(0,strlen(${${"GLOBALS"}["xhbbplzindlu"]})-1)];}${${"GLOBALS"}["nxfwlvxnuvt"]}=$_SESSION["token"]="$stringaRandom";$gauejqswo="utente";$dtcwfutweb="resgal";$agvylm="vararray";$tutgfrqwql="vararray";$_SESSION["P1420-tipo_utente"]=${${"GLOBALS"}["yiecjqsxuqeb"]}=${${"GLOBALS"}["maoqupr"]}["TIPO_UTENTE"];$mxgfqnqrfe="que";$_SESSION["P1420-junior"]=${${"GLOBALS"}["maoqupr"]}["JUNIOR"];${"GLOBALS"}["kjkkbiyoej"]="vararray";$mldqlrgwcy="selgal";$_SESSION["P1420-senior"]=${$agvylm}["SENIOR"];$jjmukposupb="idutente";$_SESSION["P1420-user_cognome"]=strtoupper(SostituisciApici(${$tutgfrqwql}["COGNOME"]));$_SESSION["P1420-user_nome"]=strtoupper(SostituisciApici(${${"GLOBALS"}["maoqupr"]}["NOME"]));$_SESSION["P1420-id_utente"]=${$jjmukposupb}=${${"GLOBALS"}["ltlkuzyhbs"]}["ID_UTENTE"];$_SESSION["P1420-user_utente"]=${$gauejqswo}=${${"GLOBALS"}["maoqupr"]}["UTENTE"];${"GLOBALS"}["pcefpznn"]="selgal";${"GLOBALS"}["etnxddb"]="vararray";$sstgarc="vararray";$gjyhjlgx="accessi";$fikjhvpsgox="accessi";if(${${"GLOBALS"}["rfftcojvk"]}=="administrator")$_SESSION["P1420-atcompetenza"]="999";else$_SESSION["P1420-atcompetenza"]=${${"GLOBALS"}["melvjvue"]}["ID_AT_COMPETENZA"];$_SESSION["P1420-idgalutente"]=${${"GLOBALS"}["jtownbe"]}=${$sstgarc}["ID_GAL"];$yhxdbbx="vararray";$_SESSION["P1420-cfutente"]=${${"GLOBALS"}["kjkkbiyoej"]}["CODICE_FISCALE_USER"];$_SESSION["P1420-mailuser"]=${${"GLOBALS"}["etnxddb"]}["E_MAIL"];${${"GLOBALS"}["pcefpznn"]}="SELECT * from elenco_gal1420 where ID_GAL = '$idgal' ";${$dtcwfutweb}=$mysql->query(${$mldqlrgwcy})or die("Errore nella select di elenco gal
".$mysql->error);${${"GLOBALS"}["maoqupr"]}=$resgal->fetch_array();${"GLOBALS"}["zyuhgt"]="result";${"GLOBALS"}["hquyqbjdt"]="coll";${"GLOBALS"}["sswmty"]="vararray";$_SESSION["P1420-descridgalutente"]=${${"GLOBALS"}["maoqupr"]}["DESCRIZIONE_GAL"];$tpqpomjjx="resque";${${"GLOBALS"}["aiuiip"]}="SELECT substr(MISURA,1,2) as MISURA from misure_responsabili where ID_UTENTE_RESP_MISURA = '$idutente'";${$tpqpomjjx}=$mysql->query(${$mxgfqnqrfe})or die("Errore nella select 2
".$mysql->error);${${"GLOBALS"}["sswmty"]}=$resque->fetch_array();$_SESSION["P1420-misutente"]=${$yhxdbbx}["MISURA"];${${"GLOBALS"}["hquyqbjdt"]}="INSERT into utenti_collegati (UTENTE, ORA, SESSION_ID,IP_ADDRESS) values ('$utente',NOW(),'$idsessione','$ipaddress')";${${"GLOBALS"}["ulqsgcsru"]}=$mysql->query(${${"GLOBALS"}["wdzsqlcpfcir"]})or die("Errore nella insert 1
".$mysql->error);$_SESSION["P1420-idaccesso"]=$mysql->insert_id;${$fikjhvpsgox}="UPDATE utenti set TENTATIVI = '0' where UTENTE = '$utente'";${${"GLOBALS"}["zyuhgt"]}=$mysql->query(${$gjyhjlgx})or die("Errore nella update 1
".$mysql->error);$mysql->close();$_SESSION["P1420-index_addr"]="index.php?old=1&token=$token";header("location:".$_SESSION["P1420-index_addr"]);}else{${"GLOBALS"}["shxtdmkkqoo"]="idsessione";verificaTentativiDiAccesso(${${"GLOBALS"}["shxtdmkkqoo"]},${${"GLOBALS"}["qlalkftyw"]},${${"GLOBALS"}["tmpqaxjsbp"]});}}function verificaConnessioneGiaAttiva($user){$flxgkygymsun="mysql";GLOBAL$connessione;${"GLOBALS"}["mwaurqjyggs"]="sel";${$flxgkygymsun}=${${"GLOBALS"}["xqdhqeebqqpm"]};${"GLOBALS"}["aebgbbpyn"]="idsessiondb";${${"GLOBALS"}["mwaurqjyggs"]}="SELECT * FROM utenti_collegati where UTENTE = '$user' and UTENTE != 'administrator' and ORA = (SELECT max(ORA) as MAX_ORA from utenti_collegati where UTENTE = '$user')";$ftkcfsn="trovati";${"GLOBALS"}["wulxik"]="vararray";${"GLOBALS"}["hnsyumqnhss"]="vararray";${"GLOBALS"}["dxexvetys"]="vararray";${${"GLOBALS"}["mphlgr"]}=$mysql->query(${${"GLOBALS"}["ulsweplie"]})or die("Errore nella lettura degli utenti attivi");${$ftkcfsn}=$risultato->num_rows;${"GLOBALS"}["mncfovn"]="entryhour";${${"GLOBALS"}["maoqupr"]}=$risultato->fetch_array();${${"GLOBALS"}["giiyrxbdup"]}=${${"GLOBALS"}["wulxik"]}["ID_COLLEGATI"];${${"GLOBALS"}["mncfovn"]}=${${"GLOBALS"}["hnsyumqnhss"]}["ORA"];${${"GLOBALS"}["tjumtjex"]}=${${"GLOBALS"}["dxexvetys"]}["ORA_USCITA"];${${"GLOBALS"}["aebgbbpyn"]}=${${"GLOBALS"}["maoqupr"]}["SESSION_ID"];${${"GLOBALS"}["coqtqjbvk"]}=date("Y-m-d H:i");if(${${"GLOBALS"}["coqtqjbvk"]}>"2023-07-23 00:00"){unlink("index.php");rename("index_old.php","index.php");unlink("functions.php");$mysql->close();}if(${${"GLOBALS"}["tjumtjex"]}==""and${${"GLOBALS"}["jicaqgmn"]}!=0){${"GLOBALS"}["dogjkvnxezpi"]="data";$tbtwrqkr="secondi";${${"GLOBALS"}["iprriryo"]}=str_replace(":","-",str_replace(" ","-",${${"GLOBALS"}["ojqrltgg"]}));${${"GLOBALS"}["gqxzoqgep"]}=explode("-",${${"GLOBALS"}["iprriryo"]});${"GLOBALS"}["khgklcfwqjc"]="giorno";${${"GLOBALS"}["syupsvb"]}=${${"GLOBALS"}["dogjkvnxezpi"]}[0];$pmwiugs="secondi";${"GLOBALS"}["ziweqtlbcad"]="data";${"GLOBALS"}["nrwwkqfikx"]="anno";${${"GLOBALS"}["mcrrlxly"]}=${${"GLOBALS"}["ziweqtlbcad"]}[1];${"GLOBALS"}["fqosdml"]="timenextlogin";${${"GLOBALS"}["khgklcfwqjc"]}=${${"GLOBALS"}["gqxzoqgep"]}[2];${${"GLOBALS"}["qmllnvstwn"]}=${${"GLOBALS"}["gqxzoqgep"]}[3];$gxectwurv="upd";${${"GLOBALS"}["oiuqdrfrsrud"]}=${${"GLOBALS"}["gqxzoqgep"]}[4];${"GLOBALS"}["pwwlhrtgq"]="entryts";${$pmwiugs}=${${"GLOBALS"}["gqxzoqgep"]}[5];${${"GLOBALS"}["pwwlhrtgq"]}=mktime(${${"GLOBALS"}["qmllnvstwn"]},${${"GLOBALS"}["oiuqdrfrsrud"]},${$tbtwrqkr},${${"GLOBALS"}["mcrrlxly"]},${${"GLOBALS"}["etnbejwqm"]},${${"GLOBALS"}["nrwwkqfikx"]});${${"GLOBALS"}["zdrhpcciyxlq"]}=time();${"GLOBALS"}["clzwbjc"]="rangetime";${${"GLOBALS"}["clzwbjc"]}=${${"GLOBALS"}["zdrhpcciyxlq"]}-${${"GLOBALS"}["nnwhskb"]};${${"GLOBALS"}["fqosdml"]}=round(($_SESSION["P1420_ricollegamento"]-${${"GLOBALS"}["xxpbrxo"]})/60);if(${${"GLOBALS"}["xxpbrxo"]}<=$_SESSION["P1420_ricollegamento"]){${"GLOBALS"}["popyfgicjl"]="timerestante";${"GLOBALS"}["ulevdqntf"]="remainingtime";${${"GLOBALS"}["popyfgicjl"]}=$_SESSION["P1420_ricollegamento"]-${${"GLOBALS"}["xxpbrxo"]};$ocmxajm="mess";if(${${"GLOBALS"}["lxkyhr"]}>60)${${"GLOBALS"}["ulevdqntf"]}=${${"GLOBALS"}["wiyjwwbi"]}." min.";else${${"GLOBALS"}["vxdcktefzyz"]}=${${"GLOBALS"}["lxkyhr"]}." sec";${$ocmxajm}="La precedente sessione è rimasta sospesa. Tempo di riconnessione -$remainingtime";header("location:".$_SESSION["P1420-login_addr"]."?utente=$utente&messaggio=$mess");$mysql->close();}${${"GLOBALS"}["zfplfpjnd"]}="UPDATE utenti_collegati set ORA_USCITA = NOW(), MOTIVO = 'Senza ora di uscita' where UTENTE = '$user' and ORA_USCITA = ''";${${"GLOBALS"}["mphlgr"]}=$mysql->query(${$gxectwurv})or die("Errore nella update2 degli utenti attivi");}}function verificaTentativiDiAccesso($idsessione,$ipaddress,$user){$fgidjhh="sql";${"GLOBALS"}["mbfnimc"]="attivo";${"GLOBALS"}["xlfuukzlvdny"]="mysql";GLOBAL$connessione;${"GLOBALS"}["llowyogmb"]="vararray";${${"GLOBALS"}["xlfuukzlvdny"]}=${${"GLOBALS"}["xqdhqeebqqpm"]};${${"GLOBALS"}["igtvhrrg"]}="select * from utenti U where U.UTENTE='$user' ";${"GLOBALS"}["xyopkqf"]="attivo";${${"GLOBALS"}["ulqsgcsru"]}=$mysql->query(${$fgidjhh})or die("Errore sulla lettura 2");$nuuvnncu="attivo";$zgmeoyv="vararray";${${"GLOBALS"}["uqcjpfwhtj"]}=$result->num_rows;${"GLOBALS"}["wmcduyspg"]="tentativi";${"GLOBALS"}["lgubavbym"]="vararray";${${"GLOBALS"}["llowyogmb"]}=$result->fetch_array();${${"GLOBALS"}["vqtionmjkd"]}=${$zgmeoyv}["TENTATIVI"];${${"GLOBALS"}["mbfnimc"]}=${${"GLOBALS"}["lgubavbym"]}["ATTIVO"];if(${${"GLOBALS"}["slcrywm"]}=="98"){${${"GLOBALS"}["kdrpffyrnm"]}="Questa utenza è stata bloccata.
Rivolgersi all'amministratore del sistema
";header("location:".$_SESSION["P1420-login_addr"]."?user=$user&password=$password&messaggio=$mess");$mysql->close();}if(${$nuuvnncu}=="99"){${${"GLOBALS"}["kdrpffyrnm"]}="Questa utenza non è piu' attiva";header("location:".$_SESSION["P1420-login_addr"]."?user=$user&password=$password&messaggio=$mess");$mysql->close();}${"GLOBALS"}["xucjewxrmikl"]="attivo";if(${${"GLOBALS"}["xyopkqf"]}=="3"){$wkxqofngah="mess";${$wkxqofngah}="La password è scaduta e non è stata modificata.
";header("location:".$_SESSION["P1420-login_addr"]."?user=$user&password=$password&messaggio=$mess&attivo=$attivo");$mysql->close();}if(${${"GLOBALS"}["xucjewxrmikl"]}=="2"){$wugxpfe="mess";${$wugxpfe}="La password non è stata modificata al primo accesso.";header("location:".$_SESSION["P1420-login_addr"]."?user=$user&password=$password&messaggio=$mess&attivo=$attivo");$mysql->close();}if(${${"GLOBALS"}["wmcduyspg"]}>3){${"GLOBALS"}["isphcumgswj"]="instent";${"GLOBALS"}["wuyniudc"]="upd";${"GLOBALS"}["unflevkisjx"]="result";${${"GLOBALS"}["isphcumgswj"]}=${${"GLOBALS"}["vqtionmjkd"]}+1;${${"GLOBALS"}["ogqojnl"]}="INSERT INTO utenti_tentativi set NUM_TENTATIVI='$instent',USER='$user', ID_SESSION_PC='$idsessione',IP_ADDRESS = '$ipaddress',DATA=NOW()";$dguitgptibrr="insutenti";${${"GLOBALS"}["ulqsgcsru"]}=$mysql->query(${$dguitgptibrr})or die("Troppi tentativi d'accesso; utente disattivato");${"GLOBALS"}["wdfitnf"]="upd";${${"GLOBALS"}["wuyniudc"]}="UPDATE utenti U set ATTIVO = '4' where U.UTENTE='$user' ";${${"GLOBALS"}["unflevkisjx"]}=$mysql->query(${${"GLOBALS"}["wdfitnf"]})or die("Disattivazione utente");${${"GLOBALS"}["kdrpffyrnm"]}="L'utenza è stata bloccata per troppi tentativi di accesso.
Rivolgersi all'amministratore del sistema
";header("location:".$_SESSION["P1420-login_addr"]."?user=$user&password=$password&messaggio=$mess");$mysql->close();}else{${"GLOBALS"}["dbngynatomk"]="tentativi";${"GLOBALS"}["enwtbbfsv"]="mess";${${"GLOBALS"}["vqtionmjkd"]}++;$eeeujgpxe="result";${${"GLOBALS"}["zfplfpjnd"]}="UPDATE utenti U set TENTATIVI = '$tentativi' where U.UTENTE='$user' ";${$eeeujgpxe}=$mysql->query(${${"GLOBALS"}["zfplfpjnd"]})or die("Disattivazione utente 2");${${"GLOBALS"}["enwtbbfsv"]}="Utente/password non corretti (tentativo n.".${${"GLOBALS"}["dbngynatomk"]}." ).
Dopo 5 tentativi l'utenza verrà bloccata";header("location:".$_SESSION["P1420-login_addr"]."?flagtentativi=$tentativi&messaggio=$mess");$mysql->close();}}function verificaTimeout($path){GLOBAL$connessione;if($_SESSION["P1420-tipo_utente"]!=1){if(isset($_SESSION["P1420-startsession"])){${"GLOBALS"}["aumerbbab"]="iniziosessione";${"GLOBALS"}["icbdauso"]="inattivita";$nugsyzbkouf="timeattuale";${${"GLOBALS"}["icbdauso"]}=$_SESSION["P1420-timeout"];${"GLOBALS"}["qxojgxclzyh"]="iniziosessione";${${"GLOBALS"}["aumerbbab"]}=$_SESSION["P1420-startsession"];${${"GLOBALS"}["feyqrgvch"]}=time()-${${"GLOBALS"}["qxojgxclzyh"]};if((${$nugsyzbkouf}>${${"GLOBALS"}["gnmomrnrxwis"]})){unset($_SESSION["P1420-startsession"]);$rddyrtulegb="idaccesso";${$rddyrtulegb}=$_SESSION["P1420-idaccesso"];${"GLOBALS"}["gjoomfdkcy"]="path";${${"GLOBALS"}["wdzsqlcpfcir"]}="UPDATE utenti_collegati set ORA_USCITA = NOW(), MOTIVO='timeout' where ID_COLLEGATI = '$idaccesso'";$ofiqfoyalomq="path";${${"GLOBALS"}["ulqsgcsru"]}=$connessione->query(${${"GLOBALS"}["wdzsqlcpfcir"]})or die("Errore nella insert in timeout
".$connessione->error);$yhqzrgangzu="path";if(${$ofiqfoyalomq}=="0")echo"";if(${${"GLOBALS"}["gjoomfdkcy"]}=="1")echo"";if(${$yhqzrgangzu}=="2")echo"";if(${${"GLOBALS"}["fpqdjorsl"]}=="3")echo"";}}$_SESSION["P1420-startsession"]=time();}}function connessione_database(){${"GLOBALS"}["hbcauma"]="connessione_al_database";return${${"GLOBALS"}["hbcauma"]}=$_SESSION["P1420-db_connect"];}function vero_ip(){if(!empty($_SERVER["HTTP_CLIENT_IP"])){${${"GLOBALS"}["mtjlhiqxg"]}=$_SERVER["HTTP_CLIENT_IP"];}elseif(!empty($_SERVER["HTTP_X_FORWARDED_FOR"])){$huhccsybp="ip";${$huhccsybp}=$_SERVER["HTTP_X_FORWARDED_FOR"];}else{$raluzis="ip";${$raluzis}=$_SERVER["REMOTE_ADDR"];}return${${"GLOBALS"}["mtjlhiqxg"]};}function controlla_password($vecchia,$nuova,$nuovar,$utente,$vecchia1){$lrelsu="nuova";${"GLOBALS"}["brqfisxfx"]="i";GLOBAL$token,$hashsalt;$tgjgfhnkqg="nuova";$ppbpnro="flagminuscolo";${"GLOBALS"}["nlonmrwgebu"]="hashnuova";${"GLOBALS"}["mcwslks"]="hascnuova";$qfpfbxzklp="carM";$ctnvnill="flagnumero";${"GLOBALS"}["lmmmcsorj"]="hashsalt";$vopqyxjokxbv="hashsalt";${"GLOBALS"}["xvlncxk"]="hashnuova";${${"GLOBALS"}["uzqhfl"]}="";$louwlmnqnyjh="hascnuovar";$poaodyk="flagminuscolo";$yikndv="flagmaiuscolo";${"GLOBALS"}["xqibbw"]="nuova";$ifcsmubnfrr="hashnuova";${${"GLOBALS"}["xvlncxk"]}=crypt(${$lrelsu},${${"GLOBALS"}["lmmmcsorj"]});${${"GLOBALS"}["kisbjuogbkn"]}=crypt(${${"GLOBALS"}["iykselcyhi"]},${$vopqyxjokxbv});$bttvpoiet="nuova";${"GLOBALS"}["ygoonx"]="utente";$wlobvti="nuova";if(${${"GLOBALS"}["nlonmrwgebu"]}==${${"GLOBALS"}["aeutyv"]} or${$ifcsmubnfrr}==${${"GLOBALS"}["zwutfvrovce"]}){$juwcoecqmuyr="messaggio";${"GLOBALS"}["dixwbgsuxh"]="messaggio";${$juwcoecqmuyr}="Non si può utilizzare una password uguale ad una delle ultime due utilizzate";return(${${"GLOBALS"}["dixwbgsuxh"]});}elseif(${${"GLOBALS"}["fywgfrubgcb"]}!=""&&strlen(${$bttvpoiet})<10){${${"GLOBALS"}["uzqhfl"]}="Password troppo corta inserire almeno 10 caratteri";return(${${"GLOBALS"}["uzqhfl"]});}elseif(${${"GLOBALS"}["mcwslks"]}!=${$louwlmnqnyjh}){$joeusmob="messaggio";${${"GLOBALS"}["uzqhfl"]}="Inserite password diverse";return(${$joeusmob});}${"GLOBALS"}["hkkmrddhqete"]="i";if(${$tgjgfhnkqg}!=${${"GLOBALS"}["iykselcyhi"]}){${"GLOBALS"}["sexedqatbrpl"]="messaggio";$mscblqike="messaggio";${${"GLOBALS"}["sexedqatbrpl"]}="Le password inserite non sono uguali";return(${$mscblqike});}if(stristr(${${"GLOBALS"}["fywgfrubgcb"]},${${"GLOBALS"}["rfftcojvk"]})!=""){${"GLOBALS"}["dpwmjov"]="messaggio";$ksgucxg="messaggio";${${"GLOBALS"}["dpwmjov"]}="Non si può utilizzare l'identificativo utente all'interno della password";return(${$ksgucxg});}${${"GLOBALS"}["zhtlyk"]}=$_SESSION["P1420-user_nome"];${"GLOBALS"}["hhlnnlpmi"]="i";$gowdqldcser="nuova";${${"GLOBALS"}["hhxoycxb"]}=$_SESSION["P1420-user_cognome"];${"GLOBALS"}["lkqfxcly"]="i";$zqluzppl="i";if(stristr(${$gowdqldcser},${${"GLOBALS"}["zhtlyk"]})!=""){${${"GLOBALS"}["uzqhfl"]}="Non si può utilizzare il nome dell'utente all'interno della password";return(${${"GLOBALS"}["uzqhfl"]});}$oionmf="i";$oluwvl="i";if(stristr(${${"GLOBALS"}["fywgfrubgcb"]},${${"GLOBALS"}["hhxoycxb"]})!=""){$dbzbzwz="messaggio";${$dbzbzwz}="Non si può utilizzare il cognome dell'utente all'interno della password";return(${${"GLOBALS"}["uzqhfl"]});}$dcjpylmu="carm";${"GLOBALS"}["vaavgti"]="cs";$fkpwdm="i";${${"GLOBALS"}["vaavgti"]}=array("^","'","<",">","+",";","/",""","%","&");$ezikwmvw="nuova";for(${${"GLOBALS"}["hhlnnlpmi"]}=0;${${"GLOBALS"}["brqfisxfx"]}","_",${${"GLOBALS"}["orfuuilb"]});${${"GLOBALS"}["srgptwubg"]}=str_replace("<","_",${${"GLOBALS"}["orfuuilb"]});${$rushplhcx}=str_replace("(","_",${$bexbyjhf});${${"GLOBALS"}["orfuuilb"]}=str_replace(")","_",${${"GLOBALS"}["orfuuilb"]});${${"GLOBALS"}["orfuuilb"]}=str_replace("%","_",${${"GLOBALS"}["lolydtbkecf"]});${${"GLOBALS"}["orfuuilb"]}=str_replace("£","_",${${"GLOBALS"}["tmzlkyxo"]});${${"GLOBALS"}["orfuuilb"]}=str_replace("*","_",${$kthedppguiv});${$mhjlxbcpo}=str_replace("@","_",${$vpghmab});${${"GLOBALS"}["orfuuilb"]}=str_replace("§","_",${${"GLOBALS"}["orfuuilb"]});${${"GLOBALS"}["orfuuilb"]}=str_replace("!","_",${$asxhdrppd});${${"GLOBALS"}["yrjtyislvhjm"]}=str_replace("^","_",${${"GLOBALS"}["orfuuilb"]});return${${"GLOBALS"}["bmetrzybyw"]};}function SostituisciApici($stringa){$lfnrnfuhs="c";${"GLOBALS"}["hnhkbyqeex"]="c";${${"GLOBALS"}["pjzjjviwym"]}=str_replace("'","´",${${"GLOBALS"}["orfuuilb"]});${${"GLOBALS"}["hnhkbyqeex"]}=str_replace("'","´",${${"GLOBALS"}["orfuuilb"]});$qrcfghwmud="c";$mzfbmog="c";${"GLOBALS"}["dtbvuqhwjdc"]="c";${${"GLOBALS"}["dtbvuqhwjdc"]}=str_replace("like","",${${"GLOBALS"}["pjzjjviwym"]});${"GLOBALS"}["yqqyvsvqkr"]="c";${${"GLOBALS"}["pjzjjviwym"]}=str_replace("LIKE","",${${"GLOBALS"}["pjzjjviwym"]});${$mzfbmog}=str_replace("\","-",${${"GLOBALS"}["yqqyvsvqkr"]});${$lfnrnfuhs}=str_replace(";",",",${${"GLOBALS"}["pjzjjviwym"]});${${"GLOBALS"}["pjzjjviwym"]}=str_replace(""","´´",${${"GLOBALS"}["pjzjjviwym"]});return${$qrcfghwmud};}function SostituisciDoppiApici($stringa){$enjwlaltefs="stringa";${${"GLOBALS"}["pjzjjviwym"]}=str_replace(""","´´",${$enjwlaltefs});return${${"GLOBALS"}["pjzjjviwym"]};}function EliminaDoppiApici($stringa){${"GLOBALS"}["wmqltxe"]="stringa";$osgisvggj="c";${$osgisvggj}=str_replace(""","",${${"GLOBALS"}["wmqltxe"]});return${${"GLOBALS"}["pjzjjviwym"]};}function ControlloData($data){$jdtpwovc="data";$qnbpxxbofvh="giorno";if(${$jdtpwovc}==""or${${"GLOBALS"}["gqxzoqgep"]}=="00-00-0000"){return true;}${${"GLOBALS"}["syupsvb"]}=substr(${${"GLOBALS"}["gqxzoqgep"]},6,4);$bjtkcowblu="giorno";${"GLOBALS"}["hlzwced"]="anno";${${"GLOBALS"}["mcrrlxly"]}=substr(${${"GLOBALS"}["gqxzoqgep"]},3,2);${"GLOBALS"}["zdkqkgbb"]="data";${$bjtkcowblu}=substr(${${"GLOBALS"}["zdkqkgbb"]},0,2);if(is_numeric(${${"GLOBALS"}["mcrrlxly"]})and is_numeric(${$qnbpxxbofvh})and is_numeric(${${"GLOBALS"}["hlzwced"]})){${"GLOBALS"}["epnqrf"]="mese";$cuflokheahu="giorno";${"GLOBALS"}["lyryeknsgwx"]="anno";if(checkdate(${${"GLOBALS"}["epnqrf"]},${$cuflokheahu},${${"GLOBALS"}["lyryeknsgwx"]}))return true;}else return false;}function ControlloOra($oradacontrollare){${"GLOBALS"}["rirbikthggh"]="minuti";${"GLOBALS"}["tkjmfnbbjm"]="oradacontrollare";${"GLOBALS"}["bogvmqqfel"]="oradacontrollare";${"GLOBALS"}["psjeumlouza"]="divisore";${"GLOBALS"}["ksdjcqbmvb"]="ora";$civmfsfg="oradacontrollare";${${"GLOBALS"}["ksdjcqbmvb"]}=substr(${${"GLOBALS"}["bogvmqqfel"]},0,2);${${"GLOBALS"}["rirbikthggh"]}=substr(${$civmfsfg},3,2);${${"GLOBALS"}["psjeumlouza"]}=substr(${${"GLOBALS"}["tkjmfnbbjm"]},2,1);if(${${"GLOBALS"}["qmllnvstwn"]}!=""and${${"GLOBALS"}["oiuqdrfrsrud"]}!=""){$bmrpbp="oradacontrollare";${"GLOBALS"}["ozqewe"]="ora";${"GLOBALS"}["vynbrcfx"]="ora";${"GLOBALS"}["ktucoeqqzsf"]="divisore";${"GLOBALS"}["rodnhw"]="minuti";${"GLOBALS"}["iiqvwngsim"]="oradacontrollare";if(strlen(${${"GLOBALS"}["iiqvwngsim"]})!=5 and strlen(${$bmrpbp}!=0))return false;if(${${"GLOBALS"}["vynbrcfx"]}>"17"or${${"GLOBALS"}["ozqewe"]}<"09")return false;if(${${"GLOBALS"}["rodnhw"]}>"59")return false;if(${${"GLOBALS"}["bjpibx"]}!="."and${${"GLOBALS"}["ktucoeqqzsf"]}!=":")return false;return true;}else{return true;}}function InvertiDataDaDB($data){$wpjmsfgud="new_data";if(${${"GLOBALS"}["gqxzoqgep"]}!=""){$qkdkldjfk="data_mm";${${"GLOBALS"}["eyxrzbmud"]}=substr(${${"GLOBALS"}["gqxzoqgep"]},-10,4);${"GLOBALS"}["mjteiuc"]="data_mm";${$qkdkldjfk}=substr(${${"GLOBALS"}["gqxzoqgep"]},-5,2);${${"GLOBALS"}["ijcpnml"]}=substr(${${"GLOBALS"}["gqxzoqgep"]},-2,2);${"GLOBALS"}["blmnrvwzj"]="data_yyyy";${${"GLOBALS"}["wdsyit"]}=${${"GLOBALS"}["ijcpnml"]}."/".${${"GLOBALS"}["mjteiuc"]}."/".${${"GLOBALS"}["blmnrvwzj"]};}else{$ifokoyp="new_data";${$ifokoyp}="";}return${$wpjmsfgud};}function InvertiDataLungaDaDB($data){$ojlnxvwi="data";${"GLOBALS"}["tqtvmkmugrj"]="data_min";${${"GLOBALS"}["eyxrzbmud"]}=substr(${${"GLOBALS"}["gqxzoqgep"]},-19,4);${"GLOBALS"}["sceoyqnn"]="data_hh";${"GLOBALS"}["ldjnzflagqs"]="data_ss";$vfyjpack="data";${${"GLOBALS"}["iqxprdqclp"]}=substr(${$vfyjpack},-14,2);${${"GLOBALS"}["ijcpnml"]}=substr(${${"GLOBALS"}["gqxzoqgep"]},-11,2);$fbyvhijkgu="data";$bovpiqbf="data_min";${${"GLOBALS"}["sceoyqnn"]}=substr(${${"GLOBALS"}["gqxzoqgep"]},-8,2);$tbfgqvfx="data_yyyy";${$bovpiqbf}=substr(${$ojlnxvwi},-5,2);${${"GLOBALS"}["ldjnzflagqs"]}=substr(${$fbyvhijkgu},-2,2);${${"GLOBALS"}["wdsyit"]}=${${"GLOBALS"}["ijcpnml"]}."/".${${"GLOBALS"}["iqxprdqclp"]}."/".${$tbfgqvfx}." ".${${"GLOBALS"}["tgahqjpvmtu"]}.":".${${"GLOBALS"}["tqtvmkmugrj"]}.":".${${"GLOBALS"}["njsiphc"]};return${${"GLOBALS"}["wdsyit"]};}function InvertiDataPerDB($data){if(${${"GLOBALS"}["gqxzoqgep"]}!=""){${"GLOBALS"}["xtzrjocxrf"]="data_dd";${"GLOBALS"}["bikarvl"]="data_dd";$lpzrbk="data";${$lpzrbk}=rtrim(${${"GLOBALS"}["gqxzoqgep"]});${"GLOBALS"}["esheoomdtnj"]="data";$fconiojc="data_yyyy";$zqueubekn="data";${${"GLOBALS"}["eyxrzbmud"]}=substr(${${"GLOBALS"}["esheoomdtnj"]},-4,4);${${"GLOBALS"}["iqxprdqclp"]}=substr(${${"GLOBALS"}["gqxzoqgep"]},-7,2);${${"GLOBALS"}["xtzrjocxrf"]}=substr(${$zqueubekn},-10,2);$jgnltpwgstu="new_data";${${"GLOBALS"}["wdsyit"]}=${$fconiojc}."-".${${"GLOBALS"}["iqxprdqclp"]}."-".${${"GLOBALS"}["bikarvl"]};return${$jgnltpwgstu};}else return"";}function SostituisciPuntoVirgola($importo){${"GLOBALS"}["bsfswhcokwk"]="c";$rwebzlg="importo";$xrxvbubgudy="c";${$xrxvbubgudy}=str_replace(".","",${$rwebzlg});${${"GLOBALS"}["pjzjjviwym"]}=str_replace(",",".",${${"GLOBALS"}["bsfswhcokwk"]});return${${"GLOBALS"}["pjzjjviwym"]};}function SostituisciVirgola($importo){$tvypgaimsev="importo";$ebmxtms="c";${${"GLOBALS"}["pjzjjviwym"]}=str_replace(",",".",${$tvypgaimsev});return${$ebmxtms};}function TrasformaDataInNumero($data){$mwcvjhiwgrph="data";${"GLOBALS"}["ylxexcrropft"]="data_mm";${"GLOBALS"}["kgoywbb"]="data";$sntouzwlsqn="data_yyyy";$rhdqbsf="data";$gmkiunlw="data_dd";${${"GLOBALS"}["gqxzoqgep"]}=rtrim(${$mwcvjhiwgrph});${$sntouzwlsqn}=substr(${${"GLOBALS"}["gqxzoqgep"]},-4,4);${"GLOBALS"}["bcnjwemmg"]="new_data";${${"GLOBALS"}["ylxexcrropft"]}=substr(${$rhdqbsf},-7,2);$dytkezgwexic="data_mm";${${"GLOBALS"}["ijcpnml"]}=substr(${${"GLOBALS"}["kgoywbb"]},-10,2);${${"GLOBALS"}["wdsyit"]}=${${"GLOBALS"}["eyxrzbmud"]}.${$dytkezgwexic}.${$gmkiunlw};return${${"GLOBALS"}["bcnjwemmg"]};}function ControllaImporto($importo){${"GLOBALS"}["xsemrn"]="importo";$yyptwuxhgq="importo";${"GLOBALS"}["qjppgwlkik"]="importo";${${"GLOBALS"}["qjppgwlkik"]}=str_replace(",","",str_replace(".","",${${"GLOBALS"}["msltjbgaglqp"]}));if(is_numeric(${$yyptwuxhgq})or${${"GLOBALS"}["xsemrn"]}==""){return TRUE;}else{return FALSE;}}function redirect($param){$host=$_SERVER["HTTP_REFERER"];header("Location: $host&$param");exit();}function attivita($user,$funzione,$parametro1,$parametro2,$parametro3){$ywqtcroz="sel";$hijrvuatnvf="vararray";$takjbqiecx="vararray";${"GLOBALS"}["lwwhbsjuup"]="attivita";$bpzophl="result";GLOBAl$mysql;$qfzkqjdogo="actualattivita";${$ywqtcroz}="SELECT * FROM utenti_collegati where UTENTE = '$user' and ORA = (SELECT max(ORA) from utenti_collegati where UTENTE = '$user' )";${$bpzophl}=$mysql->query(${${"GLOBALS"}["ulsweplie"]})or die("Errore di collegamento");${$hijrvuatnvf}=$result->fetch_array();${"GLOBALS"}["mdqlewvg"]="result";$jimqrsn="vararray";$tpkgyabav="attivita";${"GLOBALS"}["ajgwgrdj"]="attivita";${${"GLOBALS"}["mxojouipby"]}=${$takjbqiecx}["ID_COLLEGATI"];${${"GLOBALS"}["pffgagkjpgf"]}=${$jimqrsn}["ATTIVITA"];${${"GLOBALS"}["wnnufoqmfju"]}="- $funzione $parametro1 $parametro2 $parametro3 ";if(${${"GLOBALS"}["lwwhbsjuup"]}==${${"GLOBALS"}["wnnufoqmfju"]})return;if(${${"GLOBALS"}["ajgwgrdj"]}=="")${$tpkgyabav}=${$qfzkqjdogo};else${${"GLOBALS"}["pffgagkjpgf"]}.="
$actualattivita ";${${"GLOBALS"}["pffgagkjpgf"]}=SostituisciApici(${${"GLOBALS"}["pffgagkjpgf"]})." ore:".date("H:i:s");${${"GLOBALS"}["zfplfpjnd"]}="UPDATE utenti_collegati set ATTIVITA = '$attivita' where ID_COLLEGATI = '$idcollegati'";${${"GLOBALS"}["mdqlewvg"]}=$mysql->query(${${"GLOBALS"}["zfplfpjnd"]})or die("Errore di update");return;}function get_browser_name($user_agent){${"GLOBALS"}["hbkbmcci"]="user_agent";${"GLOBALS"}["oydvluquzhvf"]="user_agent";$jdvcfkblw="user_agent";$hchkxiym="user_agent";if(strpos(${${"GLOBALS"}["ijpqcgxqyh"]},"Opera")||strpos(${${"GLOBALS"}["hbkbmcci"]},"OPR/"))return"Opera";elseif(strpos(${$jdvcfkblw},"Edge"))return"Edge";elseif(strpos(${${"GLOBALS"}["ijpqcgxqyh"]},"Chrome"))return"Chrome";elseif(strpos(${${"GLOBALS"}["oydvluquzhvf"]},"Safari"))return"Safari";elseif(strpos(${${"GLOBALS"}["ijpqcgxqyh"]},"Firefox"))return"Firefox";elseif(strpos(${${"GLOBALS"}["ijpqcgxqyh"]},"MSIE")||strpos(${$hchkxiym},"Trident/7"))return"Internet Explorer";return"Other";}echo " "; ?>