!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:     course_add.php (10.98 KB)      -rw-rw-r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php session_start();
include(
'includes/header.php'); ?>    
<?php 
  
if(isset($_GET['ex'])){
    
$s=$_GET['ex'];
    
?>
    <script>
        
       // alert('Message sent Successfully!');
     // swal('Message sent Successfully!');
      setTimeout(function(){ 
        window.location.href = "course_add.php";
      }, 1000);
      </script>
    <?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>Add Package</h4>
                    <!--<img id="logo" src="" alt="Logo"/>--> 
                        </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:110px;margin-left:50px;">
                        <?php
                        
if($s==1){
                          echo 
'<div class="alert alert-danger" role="alert">
                        
              <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
 extension not allowed, please choose a JPEG or PNG file.
</div>'
;
}else if(
$s==2){
     echo 
'<div class="alert alert-danger" role="alert">
                        
              <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
 File size must be excately 2 MB
</div>'
;
}
else if(
$s==3){
     echo 
'<div class="alert alert-success" role="alert">
                        
              <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
 successfully inserted
</div>'
;
}
else if(
$s==4){
     echo 
'<div class="alert alert-danger" role="alert">
                        
              <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
 Something went wrong
</div>'
;
}
else if(
$s==5){
     echo 
'<div class="alert alert-danger" role="alert">
                        
              <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
 File Upload not successfull
</div>'
;
}
else if(
$s==6){
     echo 
'<div class="alert alert-danger" role="alert">
                        
              <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
 Something went wrong!
</div>'
;
}

                        
?>
                        <form method="post" action="add_course_action.php" enctype="multipart/form-data">
                        <div class="row">
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label class=" form-control-label">Name</label>
                                    <div class="input-group">
                                        
                                        <input class="form-control" name="name" id="name" required=""  >
                                    </div>
                                    
                                </div>
                            </div>
                            <!-- <div class="col-md-6">
                                <div class="form-group">
                                    <label class=" form-control-label">Name</label>
                                    <div class="input-group">
                                        
                                        <input class="form-control" name="name" id="name" required=""  >
                                    </div>
                                    
                                </div>
                            </div> -->
                        </div>
                            <div class="txt-field">
                                 <?php
                                    $query1 
"select * from technologies order by id desc";
                                    
$result1 $con->query($query1);
                                
?>
                                <label>Technology</label><br>
                                <select id="technology" name="technology" required style="width:25%;"> 
                                    <option value="">------------Select------------</option>
                                    <?php
                                        
while ($row1 $result1->fetch_assoc()) {
                                    
?>
                                    <option value="<?php echo $row1["id"]; ?>"><?php echo $row1["name"]; ?></option>
                                    <?php
                                        
}
                                    
?>
                                </select>
                            </div> <br>

                            <div class="txt-field">
                                 
                                <label>Show this package in website front end</label><br>
                                <select id="course_type" name="course_type" required style="width:25%;"> 
                                    <option value="">------------Select------------</option>
                                    
                                    <option value="0">Show</option>
                                    <option value="1">Hide</option>
                                </select>
                            </div> <br>

                            <div class="txt-field">
                                <label>Page Heading</label><br>
                                <input type="text" id="heading_prefix" name="heading_prefix" placeholder="Prefix" > <input type="text" id="heading" name="heading" placeholder="Heading" > 
                            </div> <br>


                            <div class="txt-field">
                                <input type="text" id="title" name="title" placeholder="Title" > 
                            </div> <br>
                            <div class="txt-field">
                                <input type="text" id="url_code" name="url_code" placeholder="Url Code" > 
                            </div> <br>
                            <div class="txt-field">
                                <input type="text" id="hour" name="hour" placeholder="Hour" > 
                            </div> <br>
                            <div class="txt-field">
                                <input type="number" id="placement" name="placement" placeholder="Placement" > 
                            </div> <br>
                            <div class="txt-field">
                                <input type="number" id="cost" name="cost" placeholder="Cost" > 
                            </div> <br>
                            <div class="txt-field">
                                <input type="file" id="image" name="image" placeholder="image" > 
                            </div> <br>
                            <div class="txt-field">
                                <textarea placeholder="Description" rows="2" id="description" name="description"></textarea>
                            </div> 
                            <br>
<label>Course Details</label>
                            <div class="txt-field">
                                <textarea name="course_details" id="editor1" rows="10" cols="80"></textarea>
                            </div> 

                            <br>
                            <label>Main Content</label>
                            <div class="txt-field">
                                <textarea name="main_content" id="editor2" rows="10" cols="60"></textarea>
                            </div> 
                            
                            <br>

                            <label>Resume Content</label>
                            <div class="txt-field">
                                <textarea name="resume_content" id="editor3" rows="10" cols="60"></textarea>
                            </div> 
                            
                            <br>


                            <input type="submit" class="logins" value="Submit">

                        </form>

                    </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> 
    <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>
    // Replace the <textarea id="editor1"> with a CKEditor 4
    // instance, using default configuration.
    CKEDITOR.replace('editor1');
    
</script>
<script>
    // Replace the <textarea id="editor1"> with a CKEditor 4
    // instance, using default configuration.
    CKEDITOR.replace('editor2');
    
</script>

<script>
    // Replace the <textarea id="editor1"> with a CKEditor 4
    // instance, using default configuration.
    CKEDITOR.replace('editor3');
    
</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.006 ]--