Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php include("test.php"); $sql=mysqli_query($conn,"SELECT * FROM api_detail ORDER BY id..

Decoded Output download

<?php 
include("test.php"); 
$sql=mysqli_query($conn,"SELECT * FROM api_detail ORDER BY id DESC"); 
 
?> 
<!DOCTYPE html> 
<html lang="en"> 
 
<head> 
  <title>Show Api - @radiumsahil</title> 
<?php include("include/head.php"); ?>   
  <link href="vendor/datatables/dataTables.bootstrap4.min.css" rel="stylesheet"> 
   
</head> 
<script> 
        $(document).ready(function() { 
            // Remove "active" class from all <a> elements 
            $('#dashboard').removeClass("active"); 
             
            // Add "active" class to the specific element with ID "faq" 
            $("#show_api").addClass("active"); 
        }); 
    </script> 
<body id="page-top"> 
  <div id="wrapper"> 
    <!-- Sidebar --> 
<?php include ("include/slidebar.php"); ?> 
    <!-- Sidebar --> 
    <div id="content-wrapper" class="d-flex flex-column"> 
      <div id="content"> 
        <!-- TopBar --> 
<?php include ("include/topbar.php"); ?>               
        <!-- Topbar --> 
 
        <!-- Container Fluid--> 
        <div class="container-fluid" id="container-wrapper"> 
          <div class="d-sm-flex align-items-center justify-content-between mb-4"> 
           <ol class="breadcrumb"> 
              <li class="breadcrumb-item"><a href="#">Home</a></li> 
              <li class="breadcrumb-item active" aria-current="page">Show Api</li> 
            </ol> 
          </div> 
 
        <!---Container Fluid--> 
                  <!-- Row --> 
          <div class="row"> 
            <!-- Datatables --> 
            <div class="col-lg-12"> 
              <div class="card mb-4"> 
                <div class="card-header py-3 d-flex flex-row align-items-center justify-content-between"> 
                  <h6 class="m-0 font-weight-bold text-primary">Show Api </h6> 
                </div> 
                <div class="table-responsive p-3"> 
<?php 
 
 
if (isset($_POST['delete'])) { 
    $unban = $_POST['id']; 
$sql2=mysqli_query($conn,"DELETE FROM `api_detail` WHERE `id` ='".$unban."'"); 
echo'<div class="alert alert-success" role="alert"> 
       Delete success 
    </div>'; 
echo"<meta http-equiv='refresh' content='0'>"; 
     
} 
?>                       
                  <table class="table align-items-center table-flush" id="dataTable"> 
                    <thead class="thead-light"> 
                      <tr> 
                         <th>Api Name</th> 
                          <th>Api Url</th> 
                          <th>Api Key</th> 
                           <th>Edit</th> 
                          <th>Actions</th> 
                                        
                      </tr> 
                    </thead> 
                     <tbody> 
                                                                   <?php 
        $i=1; 
        while($data=mysqli_fetch_array($sql)){ 
     
        ?> 
          <tr> 
           <td><?php echo $data['api_name'];?></td> 
           <td><?php echo $data['api_url'];?></td> 
           <td><?php echo $data['api_key'];?></td> 
          <td><a href="edit_api?id=<?php echo $data['id']; ?>" class="btn btn-sm btn-primary">Edit</a></td>                                                                                     
        <td><form method="post"><input type="hidden" name="id" value="<?php echo $data['id'];?>"><button class="btn btn-sm btn-danger" type="submit" name="delete" >Delete</button></form></td>                                                                 
         </tr>                                        
         <?php 
          $i++; 
          } 
          ?> 
                    </tbody> 
                  </table> 
                </div> 
              </div> 
            </div> 
             
      </div> 
      <!-- Footer --> 
<?php //include("include/copyright.php"); 
 ?> 
      <!-- Footer --> 
    </div> 
  </div> 
 
  <!-- Scroll to top --> 
  <a class="scroll-to-top rounded" href="#page-top"> 
    <i class="fas fa-angle-up"></i> 
  </a> 
<?php include("include/script.php"); ?> 
  <!-- Page level plugins --> 
  <script src="vendor/datatables/jquery.dataTables.min.js"></script> 
  <script src="vendor/datatables/dataTables.bootstrap4.min.js"></script> 
  <script> 
    $(document).ready(function () { 
      $('#dataTable').DataTable(); // ID From dataTable  
      $('#dataTableHover').DataTable(); // ID From dataTable with Hover 
    }); 
  </script>   
</body> 
 
</html>

Did this file decode correctly?

Original Code

<?php
include("test.php");
$sql=mysqli_query($conn,"SELECT * FROM api_detail ORDER BY id DESC");

?>
<!DOCTYPE html>
<html lang="en">

<head>
  <title>Show Api - @radiumsahil</title>
<?php include("include/head.php"); ?>  
  <link href="vendor/datatables/dataTables.bootstrap4.min.css" rel="stylesheet">
  
</head>
<script>
        $(document).ready(function() {
            // Remove "active" class from all <a> elements
            $('#dashboard').removeClass("active");
            
            // Add "active" class to the specific element with ID "faq"
            $("#show_api").addClass("active");
        });
    </script>
<body id="page-top">
  <div id="wrapper">
    <!-- Sidebar -->
<?php include ("include/slidebar.php"); ?>
    <!-- Sidebar -->
    <div id="content-wrapper" class="d-flex flex-column">
      <div id="content">
        <!-- TopBar -->
<?php include ("include/topbar.php"); ?>              
        <!-- Topbar -->

        <!-- Container Fluid-->
        <div class="container-fluid" id="container-wrapper">
          <div class="d-sm-flex align-items-center justify-content-between mb-4">
           <ol class="breadcrumb">
              <li class="breadcrumb-item"><a href="#">Home</a></li>
              <li class="breadcrumb-item active" aria-current="page">Show Api</li>
            </ol>
          </div>

        <!---Container Fluid-->
                  <!-- Row -->
          <div class="row">
            <!-- Datatables -->
            <div class="col-lg-12">
              <div class="card mb-4">
                <div class="card-header py-3 d-flex flex-row align-items-center justify-content-between">
                  <h6 class="m-0 font-weight-bold text-primary">Show Api </h6>
                </div>
                <div class="table-responsive p-3">
<?php


if (isset($_POST['delete'])) {
    $unban = $_POST['id'];
$sql2=mysqli_query($conn,"DELETE FROM `api_detail` WHERE `id` ='".$unban."'");
echo'<div class="alert alert-success" role="alert">
       Delete success
    </div>';
echo"<meta http-equiv='refresh' content='0'>";
    
}
?>                      
                  <table class="table align-items-center table-flush" id="dataTable">
                    <thead class="thead-light">
                      <tr>
                         <th>Api Name</th>
                          <th>Api Url</th>
                          <th>Api Key</th>
                           <th>Edit</th>
                          <th>Actions</th>
                                       
                      </tr>
                    </thead>
                     <tbody>
                                                                   <?php
        $i=1;
        while($data=mysqli_fetch_array($sql)){
    
        ?>
          <tr>
           <td><?php echo $data['api_name'];?></td>
           <td><?php echo $data['api_url'];?></td>
           <td><?php echo $data['api_key'];?></td>
          <td><a href="edit_api?id=<?php echo $data['id']; ?>" class="btn btn-sm btn-primary">Edit</a></td>                                                                                    
        <td><form method="post"><input type="hidden" name="id" value="<?php echo $data['id'];?>"><button class="btn btn-sm btn-danger" type="submit" name="delete" >Delete</button></form></td>                                                                
         </tr>                                       
         <?php
          $i++;
          }
          ?>
                    </tbody>
                  </table>
                </div>
              </div>
            </div>
            
      </div>
      <!-- Footer -->
<?php //include("include/copyright.php");
 ?>
      <!-- Footer -->
    </div>
  </div>

  <!-- Scroll to top -->
  <a class="scroll-to-top rounded" href="#page-top">
    <i class="fas fa-angle-up"></i>
  </a>
<?php include("include/script.php"); ?>
  <!-- Page level plugins -->
  <script src="vendor/datatables/jquery.dataTables.min.js"></script>
  <script src="vendor/datatables/dataTables.bootstrap4.min.js"></script>
  <script>
    $(document).ready(function () {
      $('#dataTable').DataTable(); // ID From dataTable 
      $('#dataTableHover').DataTable(); // ID From dataTable with Hover
    });
  </script>  
</body>

</html>

Function Calls

None

Variables

None

Stats

MD5 2e75a0e652b271050602bca4cdb636e4
Eval Count 0
Decode Time 41 ms