DATE_ADD(CURRENT_DATE, INTERVAL -1 DAY)) "; $qryCheckCookie = mysql_db_query($nomedb, $sql, $id_link) or muori ("cerca session",$sql,1); $nrowsCheckCookie = mysql_num_rows($qryCheckCookie); //Se la session non corrisponde con quella nel db oppure è scaduta annulla il cookie if($nrowsCheckCookie != 1){ $msg_err = "Si è verificato un errore
Siete pregati di effettuare nuovamente il login"; /*header("Location: index.php?msg_err=errore1"); exit;*/ //mettiCookie2($id_cliente,$tabella); return false; } //Preleva ID del utente else { $row = mysql_fetch_array($qryCheckCookie); //$id_session = $row["id_session"]; $id_utente = $row["id_".$tabella_utenti]; return $id_utente; } }else{//Non esiste una session quindi ridireziona alla pagina di login $msg_err = "Si è verificato un errore
Siete pregati di effettuare nuovamente il login"; /*header("Location: index.php?msg=errore2"); exit;*/ //mettiCookie2($id_cliente,$tabella); return false; } } //andare nel cookie /* vedere il num di sessione andare nella tabella sessione vedere se giusto controllare che permesso ha a questo deve vedere se la pagina visitata è visibile da quel utente */ function login($login,$password,$tabella="utente",$tabella_session = "session"){ extract($GLOBALS); $proceed = FALSE; //Verifica variabili passate $login = addslashes(substr(trim($login), 0, 50)); $passwd = addslashes(substr(trim($password), 0, 50)); if(($login != "") && ($passwd != "")) $proceed = TRUE; if($proceed): $sql = "SELECT * FROM $tabella WHERE username = '$login' AND password = '$passwd' AND (status ='on')"; $qryLogin = mysql_db_query($nomedb, $sql, $id_link) or muori ("errore login",$sql,1); $nrowsQryLogin = mysql_num_rows($qryLogin); if($nrowsQryLogin == 0): $proceed = FALSE; $msg_err = "nome utente o password errati"; return false; // exit; else: if($nrowsQryLogin > 0): $row = mysql_fetch_array($qryLogin); if($row['status']=='on'): $id_cliente = $row["id_$tabella"]; $nome = $row["nome"]; $cognome = $row["cognome"]; else: $proceed = FALSE; $msg_err = "utente non abilitato"; return false; endif; endif; $msg_err = "$id_cliente, $nome, $cognome, $proceed"; endif;//query ricerca utente da nome e pwd else: $msg_err = "nome utente o password vuoti"; return false; // exit; endif; if($proceed): if(mettiCookie($id_cliente,$tabella_session,$tabella)): return $id_cliente; else: return false; endif; else: $msg_err = "Si è verificato un errore! ripetere la procedura"; return false; // exit; endif; } function mettiCookie($id_cliente="",$tabella="session",$tabella_utenti = "utenti"){ extract($GLOBALS); $session = md5(uniqid(rand()));//valore casuale //Set il cookie fino alla chiusura del browser //echo"$session"; setcookie("session", "{$session}", time() + 3600); /*if ($tmp != 'off'): $tmp = 'on'; $sql = "INSERT INTO `clienti_tmp` (`data_iscrizione`,`note`,`status`) VALUES (NOW(),'Accesso al sito','on') "; $qryUpdateAccess = mysql_db_query($nomedb, $sql, $id_link) or die ("QUERY ERROR INSERT TMP CLIENTE"); $id_cliente = mysql_insert_id($id_link); //else: endif;*/ /**/ //Elimina eventuali session identiche dal db, quelle scadute e quelle dello stesso cliente $sql = "DELETE FROM $tabella WHERE (id_$tabella = '$session') OR (quando < DATE_ADD(CURRENT_DATE,INTERVAL -1 DAY))OR (id_$tabella_utenti = '$id_cliente')"; $qryDeleteOldSession = mysql_db_query($nomedb, $sql, $id_link) or muori ("clean session",$sql,1); /* SCRIVE NELLA SESSIONE I PERMESSI E IL COOKIE */ $sql = "SELECT id_$tabella FROM $tabella WHERE (id_$tabella = '$id_cliente')"; $qryCheckCookie = mysql_db_query($nomedb, $sql, $id_link) or muori ("get session",$sql,1); $nrowsCheckCookie = mysql_num_rows($qryCheckCookie); if($nrowsCheckCookie == 0){ $sql = "INSERT INTO $tabella (id_$tabella, id_$tabella_utenti) VALUES ('$session','$id_cliente')"; $qryInsertSession = mysql_db_query($nomedb, $sql, $id_link) or muori ("insert session",$sql,1); return true; }else{//Preleva ID del utente //$row = mysql_fetch_array($qryCheckCookie); //$id_cliente = $row["id_utente"]; $msg_err = "Si è verificato un errore (ERR:001) con le sessioni\n Siete pregati di effettuare nuovamente il login"; //header("Location: index.php?msg=msg_err"); //exit; return false; /*$sql = "INSERT INTO clienti_tmp (data_iscrizione,note,status) VALUES ('NOW()','tmp cliente','on')"; $qryUpdateAccess = mysql_db_query($nomedb, $sql, $id_link) or die ("QUERY ERROR INSERT TMP CLIENTE"); $id_cliente = mysql_insert_id($id_link); $sql_insert_session = "INSERT INTO session (id_session, id_cliente) VALUES ('$session','$id_cliente')"; $qry_insert_session = mysql_db_query($nomedb, $sql_insert_session, $id_link) or die ("QUERY ERROR 02"); return true;*/ } } ?>$larghezza)or($h>$altezza))://img > dimensioni massime if ($h > $w)://img verticale $new_w = ($w * $altezza)/$h;//calcolo nuova larghezza $new_h = $altezza;//nuova altezza = altezza massima $new_w = number_format($new_w, 0, '', '');//formatto la nuova larghezza else://img orizzontale o quadrata $new_w = $larghezza;//larghezza=larghezza massima $new_h = ($h * $larghezza)/$w;//calcol nuova altezza $new_h = number_format($new_h, 0, '', ''); //formatto nuova altezza endif; else://..altrimenti che ridimensioni a fare?!?!?!!? :-)) $new_w = $w;//larghezza invariata $new_h = $h;//altezza invariata endif; $dst_img = imagecreatetruecolor($new_w,$new_h);//creo nuova immagine if($estensione=="jpg" or $estensione[count($estensione)-1]=="jpeg")//se immagine jpg $src_img=imagecreatefromjpeg($src_img);//riempio a partire da originale elseif($estensione=="png")//se immagine png $src_img=imagecreatefrompng($src_img);//riempio a partire da originale elseif($estensione=="gif")//se immagine gif $src_img = imagecreatefromgif($src_img);//riempio a partire da originale else//immagine gif o di altro tipo non contemplato $msg_errore = "Tipo di immagine non supportato ".$nome.""; if(!isset($msg_errore)): imagecopyresampled($dst_img, $src_img, 0, 0, 0, 0, $new_w+1, $new_h+1, imagesx($src_img), imagesy($src_img)); $new_file = $dir_dest.$nome; switch($estensione){ case 'jpg': imagejpeg($dst_img,$new_file, 100); break; case 'png': imagepng($dst_img,$new_file); break; case 'gif': imagegif($dst_img,$new_file); break; } imagedestroy($dst_img); /* ImageCopyResized($dst_img,$src_img,0,0,0,0,$new_w+1,$new_h+1,ImageSX($src_img),ImageSY($src_img)); //salvo tutto e distruggo l'originale ImageJpeg($dst_img,$new_file,'100'); ImageDestroy($dst_img);*/ $msg_errore="File ".$nome." correttamente ridimensionato"; endif; return($msg_errore); } ?>

About us
CORPORATE PROFILE

Euklis is an Italian security solutions manufacturer at the leading edge of security technology.

Our guideline is "Security Continuity" in the meaning of Product Design, Manufacturing and IT Consulting.

In the view of Product Design, Euklis is specialized in High Tech Product design for critical infrastructures such as airports, government, military and much more.
Concerning with IT Consulting, Euklis constantly works on IT projects, system integration and digital forensics.
Euklis represents: an innovative brand, because of Italian creativity, image quality, because of Sony Sensors, Interoperability, because of a continuous Certification program for Onvif and the major VMS manufactures, reliability, because of a total quality test system and last but not least, trusty, because of a continuous Cyber Security Program.

Euklis Milan Factory is committed in housing & boards manufacture, software & firmware upload, final assembly and quality check. In Milan, Euklis has its own R&D department where the focus is on Product Design and software & Firmware development.

Euklis has factories in Seoul committed in the electronic board assembly using only the best Sony High Tech Components.

Beyond the fact that Euklis has a complete line of Security Cameras, Euklis Milan R&D department has recently developed its ability to think at the near future: what is the future of security especially in critical infrastructures?

In this view, Euklis has launched innovative solutions, for instance, FaRe, a Face Recognition Suite able in least then two seconds, to recognize faces within big databases, locate them in white or black lists. FaRe can also be integrated with many existing security platforms. It can be used for anti-terrorism, access control or for the simple monitoring of people crossing big infrastructures.
The second main solution, coming in 2017, is the KlisHyCloud line, a new concept of “Video Security” via cloud.

In a time where guaranteeing security is essential, Euklis is always ready to develop new high tech security solutions.

Chi siamo
PROFILO AZIENDALE

Euklis è un produttore italiano di soluzioni all’avanguardia per la Sicurezza.

La nostra linea guida è la “Security Continuity”: Product Design, Produzione, Consulenza, Manutenzione ed assistenza nel tempo.

Euklis è specializzata nella progettazione di soluzioni tecnologiche ad altissime prestazione per la protezione e il monitoraggio di infrastrutture critiche come aeroporti, governo, ambito militare e molti altri.

Per quanto concerne la consulenza informatica, Euklis lavora costantemente a progetti informatici, per l’integrazione di sistema e con un reparto specifico di digital forensics.

Possiamo definire Euklis un marchio innovativo, grazie alla creatività italiana che ci contraddistingue.

La linea dei prodotti Euklis è inoltre caratterizzata: da una altissima Image Quality, grazie all’utilizzo esclusivo della migliore tecnologia Sony; dalla Interoperabilità grazie ad un continuo programma di certificazione Onvif e con i più importanti VMS; dalla Affidabilità, grazie al processo di Qualità Totale. Ed infine, Euklis è un marchio di cui ci si può “fidare”, grazie a un costante programma di controllo della cyber security.

Euklis ha sede a Trezzano s/N in provincia di Milano, dove viene realizzata la progettazione dei prodotti, lo sviluppo di tutti i software applicativi, la produzione ed il controllo qualità finale su tutti i prodotti.

Euklis ha inoltre fabbriche a Seul che gestiscono l’assemblaggio di schede elettroniche usando solo le migliori componenti ad alta tecnologia Sony.

Oltre ad avere una completa linea di telecamere di videosorveglianza, il dipartimento di ricerca e sviluppo EUKLIS pensa continuamente al futuro, in particolare per la Sicurezza delle infrastrutture critiche.

In quest’ottica, Euklis ha pensato a delle soluzioni innovative come, per esempio, FaRe, una suite di riconoscimento facciale in grado di riconoscere volti all’interno di grandi database in meno di due secondi.

Euklis FaRe può essere integrata con molte piattaforme di sicurezza già esistenti, può essere usata in funzione “anti-terrorismo” riconoscendo e allocando volti in liste nere o liste bianche, può inoltre essere utilizzata per il controllo accessi con badge per il monitoraggio del flusso di persone che lavorano dentro enormi infrastrutture, quali ad esempio aeroporti.

La seconda più importante soluzione Euklis in arrivo nel 2017 è la linea KlisHyCloud, un nuovo concetto di “Video Security” via cloud. In un tempo in cui garantire la sicurezza è una necessità imprescindibile, Euklis è sempre pronta a sviluppare nuove soluzioni ad alto contenuto tecnologico per andare incontro alle esigenze di sicurezza globale che via via diventano sempre più necessarie.

NEWS

New opportunities thanks to EUKLIS KLIS LPC

EUKLIS KLIS LPC is the new "License Plate Capture Camera" ideal for working with OCR software used for automatic plate r ...

Nuovi Corsi Genetec 2018

Iscriviti, non perdere l’occasione !La certificazione Genetec è fondamentale per gestire al meglio un sistema "Security ...

GEN ANALYTICS

GSG InternationAL is pleased to present EUKLIS KLIS GEN ANALYTICS Thanks to KLIS GEN ANALYTICS, all EUKLIS cameras equipped with v ...


EUKLIS S.r.l. Start Up Innovativa - P.IVA: 09967770968