!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.76 GB of 48.28 GB (82.36%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     view_courses.php (6.83 KB)      -rw-rw-r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
session_start
();
include(
'includes/header.php');
if (isset(
$_REQUEST['f'])) {
    
$sql "UPDATE course_details SET popular='" $_REQUEST['f'] . "' WHERE id='" $_REQUEST['id'] . "'";
    
$Result $con->query($sql);
}
if (isset(
$_REQUEST['d'])) {
    
$sql "DELETE FROM course_details WHERE id='" $_REQUEST['id'] . "'";
    
$Result $con->query($sql);
}
?>
<?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>
                            <h4>View Packages</h4>
                        </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 class="span5">
                    <div class="row" style="margin-top:150px;margin-left:5px;">
                        <table id="example" class="display" style="width:100%">
                            <thead>
                                <tr>
                                    <th>Name</th>
                                    <th>Technology</th>
                                    <th>Image</th>
                                    <th>Hour</th>
                                    <th>Placement</th>
                                    <th>Cost</th>
                                    <th>Description</th>
                                    <th>Make Popular</th>
                                    <th>Priority</th>
                                    <th>Actions</th>
                                </tr>
                            </thead>
                            <tbody>
                            <?php
                            $packages 
"SELECT * FROM course_details";
                            
$packagesResult $con->query($packages);
                            while (
$packages mysqli_fetch_assoc($packagesResult)) {
                                
$result1 $con->query("SELECT name FROM technologies WHERE id=".$packages['technology']." ");
                                
$row mysqli_fetch_assoc($result1);
                                
?>
                                    <tr>
                                        <td><?php echo $packages['name']; ?></td>
                                        <td><?php echo $row['name']; ?></td>
                                        <td><?php if ($packages['image']) {
                                    echo 
'<img src="../packageImages/' $packages['image'] . '" style="width:100px;" />';
                                } 
?></td>
                                        <td><?php echo $packages['hour']; ?></td>
                                        <td><?php echo $packages['placement']; ?></td>
                                        <td><?php echo $packages['cost']; ?></td>
                                        <td><?php echo substr($packages['description'], 0100); ?></td>
                                        <td><?php
                                
if ($packages['popular'] == 1) {
        
?>
                                                <a href="view_courses.php?f=0&id=<?php echo $packages['id']; ?>"><img src="images/star2.png" width="25"  /></a>
                                                <?php
                                            
} else {
                                                
?>
                                                <a href="view_courses.php?f=1&id=<?php echo $packages['id']; ?>"><img src="images/star1.png" width="25"   /></a>
                                                <?php
                                            
}
                                            
?></td>
                                            <td><?php echo $packages['priority']; ?></td>
                                        <td><a href="edit_course.php?id=<?php echo $packages['id']; ?>">Edit</a>&nbsp;| &nbsp;<a href="view_courses.php?d=1&id=<?php echo $packages['id']; ?>" onclick="return confirm('Are you sure?')">Delete</a></td>
                                    </tr>
                                            <?php
                                            
}
                                            
?>
                                </tfoot>

                        </table>
                    </div>
                </div>
                <div class="clearfix"> </div>
            </div>
            <div class="clearfix"> </div>
        </div>

        <!--heder end here--> 
        <!-- script-for sticky-nav --> 

        <!-- /script-for sticky-nav --> 
        <!--inner block start here-->
        <div class="inner-block"> </div>
    </div>
    <div class="clearfix"> </div>

    <!--slider menu-->
<?php include('includes/sidebar.php'); ?>
    <div class="clearfix"> </div>
</div>
<!--slide bar menu end here-->

<?php include('includes/footer.php'); ?>
<script>
    $(document).ready(function () {
        $('#example').DataTable();
    });
</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.0089 ]--