!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:     aj2.php (17.47 KB)      -rw-rw-r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
//index.php
//include autoloader
require_once 'dompdf/autoload.inc.php';
require 
"connection.php";
session_start();
if (isset(
$_SESSION['user_id']))
{
    
$u_id $_SESSION['user_id'];
    
$uname $_SESSION['user_name'];
} else {
    
$u_id '';
    
$uname '';
}

use 
Dompdf\Dompdf;
use 
Dompdf\Options;
$options = new Options();
//$options->set('defaultFont', 'roboto');
$options->set('isPhpEnabled''true');

$document = new Dompdf($options);

$output='';

$sql="select * from student_reg where user_id='$u_id'";
$result=$con->query($sql);
$row=$result->fetch_assoc();
$sql1="select * from user_details where user_id='$u_id'";
                                        
$result1 $con->query($sql1);
                                        
$row1 $result1->fetch_assoc();
                                        if(
$row['profileImage']=='')
                                        {
                                           
$img="profile_default.jpg";
                                            
                                        }
                                        else
                                        {
                                            
$img='profileImages/'.$row['profileImage'];
                                             
                                        }

  
$output .= ' <div class="wrapper" >
    <div class="sidebar-wrapper">
        <!--//profile-container-->

        <div class="contact-container container-block">

        <div class="profileImg">
            <img src="'
.$img.'">
        </div>

        <h2 class="container-block-title" style="font-size: 16px;font-weight: bold;">Basic Details</h2>
            <ul class="list-unstyled interests-list">
                <li class="email" style="margin-top: 2%;">
                    
                    <img src="images/env.png" style="width:15px;height:15px;margin-top: 4px;">
                    <label style="margin-left:1px;">Email</label><br>
                      <label style="margin-left:20px;">'
.$row1["email"].'</label> 
                     </li>
                <li class="phone">
                    <img src="images/ph1.png" style="width:15px;height:15px;margin-top: 3px;">
                        <label style="margin-left:1px;">Mobile</label><br>
                        <label style="margin-left:20px;">'
$row1["phone"].'</label><br> </li>
                <li class="phone">'
;
                    if (
$row["alternate_mobile"] == "") {
                        
$output .='';
                    } else {
                        
$output .='<img src="images/ph1.png" style="width:15px;height:15px;margin-top: 3px;">
                         '
;
                    }
        
$output .= $row["alternate_mobile"].'</li>';
            if (
$row["dob"] != "") {
                
$output .='<li class="linkedin"><img src="images/cale.png" style="width:15px;height:15px;margin-top: 1px;">
                <label style="margin-left:1px;">DOB</label><br>
                <label style="margin-left:20px;">'
.$row["dob"].'</label><br></li>';
            }
            
$output .='</ul>
        </div>


        <div class="interests-container container-block">
            <h2 class="container-block-title" style="font-size: 16px;font-weight: bold;">Permanent Address</h2>
            <ul class="list-unstyled interests-list">
                <li>'
$row["permanent_address1"] . '</li>
                <li> ' 
$row["permanent_address2"] . '</li>
                <li> ' 
$row["permanent_address3"] . '</li>
                <li> ' 
$row["permanent_pincode"] . '</li>
            </ul>
        </div>

        <div class="interests-container container-block">
            <h2 class="container-block-title">Present Address</h2>
            <ul class="list-unstyled interests-list">
               
                 <li>'
$row["present_address1"] . '</li>
                <li> ' 
$row["present_address2"] . '</li>
                <li> ' 
$row["present_address3"] . '</li>
                <li> ' 
$row["present_pincode"] . '</li>


            </ul>
        </div>'
;
            if(
$row["core_skill"]!=''){
       
$output .=' <div class="interests-container container-block">
            <h2 class="container-block-title">CORE SKILLS</h2>
            <ul class="list-unstyled interests-list">
                <li>'
.$row["core_skill"].'</li>                                                    

            </ul>
        </div>'
;
            }
             if(
$row["strengths"]!=''){
        
$output .='<div class="interests-container container-block">
            <h2 class="container-block-title">STRENGTHS</h2>
            <ul class="list-unstyled interests-list">
                <li>'
$row["strengths"].'</li>                                                    

            </ul>
             </div>'
;
             }
             if(
$row["interest"]!=''){
        
$output .='<div class="interests-container container-block">
            <h2 class="container-block-title">Interests</h2>
            <ul class="list-unstyled interests-list">
                <li>'
$row["interest"].'</li>                                                    

            </ul>
        </div>'
;
             }
    
$output .='</div>

    <div class="main-wrapper">

        <section class="section summary-section">

        <div class="profile-container">

            <h1 class="name" style="text-transform: uppercase;font-size: 40px;font-weight: 500;">'
.$row1["name"].'</h1>

        </div>
            <h2 class="section-title" style="font-size: 15px;text-align: left;">Career Objective</h2>
            <div class="summary">
                <p>Work for an organization which provides me the opportunity to improve my skills and knowledge to grow.</p>
            </div><!--//summary-->
        </section><!--//section-->'
;

         
$id $row['stud_id'];
            
$sql2 "select * from education where stud_id=$id";
            
$result21 $con->query($sql2);
if(
$result21->num_rows 0){
         
$output .= '<section class="section experiences-section">
            <h2 class="section-title" style="font-size: 15px;">Education</h2>'
;

           
            while (
$row2 $result21->fetch_assoc()) {
                
$output .= 
                <h2 style="font-size: 20px;font-weight: 700;" class="job-title summary">' 
$row2["course"] . '</h2>
                    <div class="meta">


                        <div class="upper-row">
                            
                              <div class="time summary" style="font-size: 14px;font-weight: 400;">' 
$row2["year"] . '</div>
                        </div><div class="company summary" style="font-size: 14px;font-weight: 400;">' 
$row2["board"] . '</div>
                    </div> <div class="details summary" style="font-size: 14px;font-weight: 400;">
                        ' 
$row2["specification"] . '
                    </div>
                     <div class="details summary" style="margin-bottom: 15px;font-size: 14px;font-weight: 400;">
                       Percentage: ' 
$row2["mark"] . '
                    </div>
                '
;
            }
         

         
$output .='</section>';
}
$sql1 "select * from resume_projects where stud_id=$id";
            
$result11 $con->query($sql1);
            if(
$result11->num_rows 0){
        
$output .='<section class="section projects-section">
            <h2 class="section-title" style="font-size: 15px;">Projects</h2>'
;
           
            
            while (
$row1 $result11->fetch_assoc()) {
                
$acad='';
                if(
trim($row1["acadamic"])=="Academic"){
                    
$acad='[Academic Project]';
                }
                 
$output .= '<div class="item">
                   <div class="company summary">' 
$row1["pro_name"].' '.$acad '</div><span class="project-tagline summary">' $row1["description"] . ' </span>
                    <div class="summary">Technology:' 
$row1["technology"] . '</div>
                    
                </div>'
;
            }
         
$output .='</section><!--//section-->';
         
            }
          
$id $row['stud_id'];
                
$sql2 "select * from experience where stud_id=$id";
                
$result2 $con->query($sql2);
                if(
$result2->num_rows 0){
        
$output .='<section class="section experiences-section">
            <h2 class="section-title" style="font-size: 15px;">Experience</h2>

            <ul class="summary">'
;
               
               
                while (
$row2 $result2->fetch_assoc()) {
                     
$output .= '<li><img src="images/tick.png" style="width:14px;height:10px;margin-top:1px;">&nbsp;' $row2['duration'] . ' as ' $row2['position'] . ' at ' $row2['company_name'] . ' </li>';
                }
                
$output .='</ul>

        </section><!--//skills-section-->'
;
                } 
        if (!empty(
$row['achievements'])) {
            
             
$output .='<section class="section experiences-section">
                <h2 class="section-title" style="font-size: 15px;">Achievements</h2>

                <ul class="summary">'
;
                    
$array explode(','$row['achievements']);

                    foreach (
$array as $item) {
                        
$output .= '<li><img src="images/tick.png" style="width:14px;height:10px;margin-top:2px;">&nbsp;'.trim($item).'</li>';
                    }
                     
$output .='
                </ul>
            </section>'
;
        } 

     
$output .='</div></div>';
 

$resulthtml'<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/resumestyle.css">
        <link rel="stylesheet" href="css/font.css">
       
        <!-- custom CSS -->
      
<style>
@font-face {
  font-family: "Roboto";
  font-style: sans-serif !important;
  font-weight: normal;
  src: url("https://www.srishticampus.com/dompdf/lib/fonts/RobotoSlab-Medium.ttf") format("truetype");
}

  body{
    font: roboto !important;
    
        }
    h1, h2, h3, h4, h5, h6 {
        font-weight: bold !important;
    }
    
    a {
        color: #2d7788;
    }

    p {
        line-height: 1.5;
    }
   
    .profileImg {
    width: 165px;
    height: 165px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 100%;
    border: 5px solid #FFF;
}
    .wrapper {
        background: #ffffff;
        max-width: 960px;
        margin: 0 auto;
        position: relative;
        height: 100%;
       
    }

    .sidebar-wrapper {
        background: #2f3031;
       
        right: 0;
        width: 250px;
       
        min-height: 100%;
        color: #fff;
        float: left;
    }

    .sidebar-wrapper a {
        color: #fff;
    }

    .sidebar-wrapper .profile-container {
        padding: 20px;
        background: rgba(0, 0, 0, 0.2);
        text-align: center;
        color: #fff;
    }
    .name {
        font-size: 32px !important;
        font-weight: bold !important;
        margin-top: 0 !important;
        margin-bottom: 10px !important;
    }
    .sidebar-wrapper .name {
        font-size: 32px !important;
        font-weight: bold !important;
        margin-top: 0 !important;
        margin-bottom: 10px !important;
    }

    .sidebar-wrapper .tagline {
        color: rgba(255, 255, 255, 0.6);
        font-size: 16px;
        font-weight: normal;
        margin-top: 0;
        margin-bottom: 0;
    }

    .sidebar-wrapper .profile {
        margin-bottom: 15px;
    }

    .sidebar-wrapper .contact-list .svg-inline--fa {
        margin-right: 5px;
        font-size: 18px;
        vertical-align: middle;
    }

    .sidebar-wrapper .contact-list li {
        margin-bottom: 15px;
    }

    .sidebar-wrapper .contact-list li:last-child {
        margin-bottom: 0;
    }

    .sidebar-wrapper .contact-list .email .svg-inline--fa {
        font-size: 14px;
    }

    .sidebar-wrapper .container-block {
        padding: 0% 2% 1%;
    }

    .sidebar-wrapper .container-block-title {
        text-transform: uppercase !important;
        font-size: 16px !important;
        font-weight: bold !important;
        margin-top: 0 !important;
        margin-bottom: 15px !important;
        background: #7a7b7d !important;
        /* color: #1e57ae; */
        padding: 10px 10px !important;
        border-left: 15px solid #ff9800;
    }

    .sidebar-wrapper .degree {
        font-size: 14px;
        margin-top: 0;
        margin-bottom: 5px;
    }

    .sidebar-wrapper .education-container .item {
        margin-bottom: 15px;
    }

    .sidebar-wrapper .education-container .item:last-child {
        margin-bottom: 0;
    }

    .sidebar-wrapper .education-container .meta {
        color: rgba(255, 255, 255, 0.6);
        font-weight: normal;
        margin-bottom: 0px;
        margin-top: 0;
        font-size: 12px;
    }

    .sidebar-wrapper .education-container .time {
        color: rgba(255, 255, 255, 0.6);
        font-weight: normal;
        margin-bottom: 0px;
    }

    .sidebar-wrapper .languages-container .lang-desc {
        color: rgba(255, 255, 255, 0.6);
    }

    .sidebar-wrapper .languages-list {
        margin-bottom: 0;
    }

    .sidebar-wrapper .languages-list li {
        margin-bottom: 10px;
    }

    .sidebar-wrapper .languages-list li:last-child {
        margin-bottom: 0;
    }

    .sidebar-wrapper .interests-list {
        margin-bottom: 0;
        font-size: 14px;
        padding-left: 10px;    
    }

    .sidebar-wrapper .interests-list li {
        margin-bottom: 10px;
        word-break: break-all;
    }

    .sidebar-wrapper .interests-list li:last-child {
        margin-bottom: 0;
    }

    .details a{
        color:#2059af;
    }

    .download-resume{
        font-size: 22px;
        margin-left: 73%; 
    }    

    .main-wrapper {
        background: #fff;
        padding: 60px;
        
        min-height: 100%;
        margin-left: 250px;
    }

    .main-wrapper .section-title {
        text-transform: uppercase;
        font-size: 20px;
        font-weight: normal;
        color:black;
        background: #cccccc78;
        height: 20px;
        padding: 5px;
        border-left: 16px solid #ff9800;
        
        margin-top: 0;
        margin-bottom: 10px;
    }

    .main-wrapper .section-title .icon-holder {
        width: 24px;
        height: 20px;
        margin-right: 8px;
        padding-top: 1px;
        display: block;
        color: #fff;
       float: left;
        border-radius: 68%;
        background-clip: padding-box;
        background: #2d64b7;
        text-align: center;
        font-size: 15px;
        position: relative;
        top: 0;
    }

    .main-wrapper .section-title .icon-holder .svg-inline--fa {
        font-size: 14px;
       
    }
    .section-title{
        font-size: 12px;
    }

    .main-wrapper .section {
        margin-bottom: 30px;
    }

    .main-wrapper .experiences-section .item {
        margin-bottom: 30px;
    }

    .main-wrapper .upper-row {
        position: relative;
        overflow: hidden;
        margin-bottom: 2px;
        font-size: 13px;
    }

    .main-wrapper .job-title {
        color: black;
        font-size: 20px;
        margin-top: 0;
        margin-bottom: 0;
        
        margin-bottom: 10px;
        font-weight: 700;
    }

    .main-wrapper .time {
        position: absolute;
        right: 0;
        top: 0;
        color: black;
    }

    .main-wrapper .company {
        
        color: black;
    }

    .main-wrapper .project-title {
        font-size: 16px;
        font-weight: normal;
        margin-top: 0;
        margin-bottom: 5px;
    }

    .main-wrapper .projects-section .intro {
        margin-bottom: 30px;
    }

    .main-wrapper .projects-section .item {
        margin-bottom: 15px;
    }

    .summary{
        font-size: 14px;
    }

    .app  {
        height: 18px;
        width: 240px;
        padding: 0;

        position: relative;
        margin: 0 5px 0 5px;


        text-overflow: ellipsis;
        white-space: nowrap;

    }     

</style>

'
.$output.'
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/fontawesome.js"></script>
'
;

//echo $document->getOptions()->getChroot(); 
//die();

$document->loadHtml($resulthtml);
$document->set_base_path("/home4/srishtis/public_html/srishticampus/");
$document->setPaper('A4''portrait');
$document->render();

$sqlcheck=$con->query("select * from enrolldetails where user_id='$u_id' and admin_status=1");
if(
$sqlcheck->num_rows == 0){
    
// Instantiate canvas instance 
    
$canvas $document->getCanvas(); 

    
// Get height and width of page 
    
$w $canvas->get_width(); 
    
$h $canvas->get_height(); 

    
// Specify watermark image 
    
$imageURL 'images/sicsfullogo.png'
    
$imgWidth 300
    
$imgHeight 30

    
// Set image opacity 
    
$canvas->set_opacity(.2); 

    
// Specify horizontal and vertical position 
    
$x = (($w-$imgWidth)/2); 
    
$y = (($h-$imgHeight)/2); 

    
// Add an image to the pdf 
    
$canvas->image($imageURL$x$y$imgWidth$imgHeight); 
}
$document->stream("Srishti Campus" ,array("Attachment"=>0));
//echo $document->output();
//echo $resulthtml;
?>
 

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