SkidSec WebShell

Server Address : 2a02:4780:a:760:0:37cc:13e2:3

Web Server : LiteSpeed

Uname : Linux uk-fast-web660.main-hosting.eu 5.14.0-570.55.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Oct 21 05:27:51 EDT 2025 x86_64

PHP Version : 7.4.33



Current Path : /home/u936121314/domains/acoverseas.com/public_html/admin/



Current File : /home/u936121314/domains/acoverseas.com/public_html/admin/get_sub_cat.php
<?php
require ('connection.inc.php');
require ('functions.inc.php');
if(isset($_SESSION['ADMIN_LOGIN']) && $_SESSION['ADMIN_LOGIN']!=''){

}
else{
   header('location:login.php');
   die();
}
$categories_id=get_safe_value($conn,$_POST['categories_id']);
$sub_categories_id=get_safe_value($conn,$_POST['sub_categories_id']);
$res=mysqli_query($conn,"select * from sub_categories where categories_id='$categories_id'");
if(mysqli_num_rows($res)>0){
    $html='';
    while($row=mysqli_fetch_assoc($res)){
        if($sub_categories_id==$row['id']){
            $html.="<option value='".$row['id']."' selected>".$row['sub_categories']."</option>";
        }
        else{
            $html.="<option value='".$row['id']."'>".$row['sub_categories']."</option>";
        }
    }
    echo $html;
}
else{
    echo "<option value=''>No Sub Categories found</option>";
}
?>