//----------------------------- 값 초기화 if (! isset($_POST['Utente'])) $Utente = ""; if (! isset($_POST['Password'])) $Password = ""; $Utente = trimStr($_POST['Utente']); $Password = trimStr($_POST['Password']); //----------------------------- 필수항목 검사 if ($Utente == "") { //showMsg("Please endter item of the Utente"); showMsg("Si prega di Inserire voce del Utente"); setFocus("Utente"); exit(); } if ($Password == "") { //showMsg("Please endter item of the Password"); //showMsg("Please endter item of the Password"); showMsg("Si prega di inserire voce della password"); setFocus("Password"); exit(); } //----------------------------- 로� 실행 $result = mysql_query("SELECT idUtente FROM utenti WHERE User='$Utente' AND Password='$Password' AND Eliminato='N' ", $g_objDBCon); $rowObj = mysql_fetch_object($result); if ($rowObj->idUtente > 0) { // 성공 // 쿠키를 설정한다. $_SESSION['Utente']=$Utente; $_SESSION['Utente_id']=$rowObj->idUtente; $bIsCookie = setcookie("g_UserCookie", $rowObj->idUtente, 0, "/"); if ($bIsCookie != 1) { //showMsg("Cookie setting is failure"); showMsg("impostazione di Cookie è un fallimento lol"); exit(); } } else { // 실패 showMsg("ATTENZIONE:Utente inserito non valido o disabilitato"); $objLayout = NULL; exit(); } //----------------------------- 오브�트 �성 $objHead = new HTML_Head("", ""); $objForm = new HTML_Form("ActionForm", "../../index.php", "target='_parent'"); //----------------------------- 화면출력 $objHead->open(); $objForm->open();