0){ $currtime = date("Y-m-d H:i:s"); $_SESSION["UserName"] = mysql_result($RsCheckIP, 0, "UserName"); $_SESSION["DisplayName"] = mysql_result($RsCheckIP, 0, "DisplayName"); $_SESSION["PrivilegeId"] = mysql_result($RsCheckIP, 0, "PrivilegeId"); $_SESSION["LastLogin"] = $currtime; $_SESSION["LastIP"] = $currIP; $_SESSION["RememberIP"] = 1; $SqlUpdate = "UPDATE `User` SET LastLogin='$currtime', LastIP='$currIP', RememberIP='1' WHERE `UserName`='".mysql_result($RsCheckIP, 0, "UserName")."'"; mysql_query($SqlUpdate, $ObjDB) or die(mysql_error()); //refresh("Login success", "index.php"); switch ($_SESSION["PrivilegeId"]){ case "1": header("Location: master_main.php"); break; case "2": header("Location: frontoffice.php"); break; case "3": header("Location: dokter_rekammedik.php"); break; case "4": header("Location: apotek_main.php"); break; case "5": header("Location: kasir_invoice_list.php"); break; case "6": header("Location: laporan_main.php"); break; } }else{ $logout=1; } }else{ $logout=1; } if($logout==1){ ?> Sistem Informasi Klinik - Login

Logo 

You have to login first, call administrator to create new account.

User Name:
Password: