Server IP : 103.6.199.200 / Your IP : 18.191.178.16 Web Server : Microsoft-IIS/10.0 System : Windows NT EMPUSA 10.0 build 20348 (Windows Server 2016) i586 User : EMPUSA$ ( 0) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Domains/feenixmy/kunci.feenix.my/wwwroot/ |
Upload File : |
<?php session_start();ob_start();include "conn.php"; if(isset($_POST['ButtonMasuk'])){ if(@$_POST['IDPengguna'] == NULL || @$_POST['KataLaluan'] == NULL){ echo "<br />ID Pengguna atau Kata Laluan anda <strong><font color='RED'>SALAH</font></strong>. Sila cuba lagi.<br />"; }else{ $a = mysqli_query($paut, "SELECT * FROM nms, inst WHERE nms.kodinst=inst.kodinst AND nms.un='".@$_POST['IDPengguna']."' AND nms.nopin='".@$_POST['KataLaluan']."'"); while($a1=mysqli_fetch_array($a)){ if($a1['un']!=$_POST['IDPengguna'] && $a1['nopin']!=$_POST['KataLaluan']){ echo "<br />ID Pengguna atau Kata Laluan anda <strong><font color='RED'>SALAH</font></strong>. Sila cuba lagi.<br />";} elseif($a1['un']!=$_POST['IDPengguna'] || $a1['nopin']!=$_POST['KataLaluan']){ echo "<br />ID Pengguna atau Kata Laluan anda <strong><font color='RED'>SALAH</font></strong>. Sila cuba lagi.<br />";} //admin_KKS2 elseif($a1['un']==$_POST['IDPengguna'] && $a1['nopin']==$_POST['KataLaluan'] && $a1['ad']==1 && $a1['kodinst']==0){ $_SESSION['admin']=$a1['Nms'];$_SESSION['UserID']=$a1['ids']; $_SESSION['kodinst']=$a1['kodinst'];$_SESSION['nminst']=$a1['nminst'];$_SESSION['singinst']=$a1['singinst']; $_SESSION['A']="Pentadbir Sistem";header("Location:Rak.php?pg=1");ob_end_clean();} //admin_KKBESUT elseif($a1['un']==$_POST['IDPengguna'] && $a1['nopin']==$_POST['KataLaluan'] && $a1['ad']==1 && $a1['kodinst']==1){ $_SESSION['admin']=$a1['Nms'];$_SESSION['UserID']=$a1['ids']; $_SESSION['kodinst']=$a1['kodinst'];$_SESSION['nminst']=$a1['nminst'];$_SESSION['singinst']=$a1['singinst']; $_SESSION['A']="Pentadbir Sistem";header("Location:RakB.php?pg=1");ob_end_clean();} //staf_akademik_KKS2 elseif($a1['un']==$_POST['IDPengguna'] && $a1['nopin']==$_POST['KataLaluan'] && $a1['ad']==0 && $a1['kodinst']==0){ $_SESSION['staf']=$a1['Nms'];$_SESSION['UserID']=$a1['ids']; $_SESSION['kodinst']=$a1['kodinst'];$_SESSION['nminst']=$a1['nminst'];$_SESSION['singinst']=$a1['singinst']; header("Location:Rak.php?pg=1");ob_end_clean();} //staf_akademik_KKBESUT elseif($a1['un']==$_POST['IDPengguna'] && $a1['nopin']==$_POST['KataLaluan'] && $a1['ad']==0 && $a1['kodinst']==1){ $_SESSION['staf']=$a1['Nms'];$_SESSION['UserID']=$a1['ids']; $_SESSION['kodinst']=$a1['kodinst'];$_SESSION['nminst']=$a1['nminst'];$_SESSION['singinst']=$a1['singinst']; header("Location:RakB.php?pg=1");ob_end_clean();} //staf_sokongan_KKS2 elseif($a1['un']==$_POST['IDPengguna'] && $a1['nopin']==$_POST['KataLaluan'] && $a1['ad']==2 && $a1['kodinst']==0){ $_SESSION['staf']=$a1['Nms'];$_SESSION['UserID']=$a1['ids']; $_SESSION['kodinst']=$a1['kodinst'];$_SESSION['nminst']=$a1['nminst'];$_SESSION['singinst']=$a1['singinst']; header("Location:Rak.php?pg=1");ob_end_clean();} //staf_sokongan_KKBESUT elseif($a1['un']==$_POST['IDPengguna'] && $a1['nopin']==$_POST['KataLaluan'] && $a1['ad']==2 && $a1['kodinst']==1){ $_SESSION['staf']=$a1['Nms'];$_SESSION['UserID']=$a1['ids']; $_SESSION['kodinst']=$a1['kodinst'];$_SESSION['nminst']=$a1['nminst'];$_SESSION['singinst']=$a1['singinst']; header("Location:RakB.php?pg=1");ob_end_clean();} else{ echo"<br /><center>ID Pengguna atau Kata Laluan anda <strong><font color='RED'>SALAH</font></strong>. Sila cuba lagi.</center><br>"; } } } } ?>