Sid Gifari File Manager
🏠Root
/
home
/
u527040259
/
domains
/
techamber.in
/
.trash
/
📝 Editing: checker.php
<?php include '../conn.php'; if(isset($_GET['theme'])) { $css= $dark_mode; $theme='?theme=dark'; $theme_del= '&theme=dark'; } else { $css= $light_mode; $theme=' '; $theme_del= ' '; } if(isset($_GET['id'])) { if(isset($_GET['type'])) { if($_GET['type']=='cat') { $sql = 'SELECT * FROM categories where id = '.$_GET['id']; $query = mysqli_query($con, $sql); $num_row = mysqli_num_rows($query); if($num_row == 1) { $row = mysqli_fetch_assoc($query); $sql = "SELECT * FROM subcategory where parent_cat = '".$row['cat_name']."'"; $query = mysqli_query($con, $sql); $num_row_sub = mysqli_num_rows($query); $row = mysqli_fetch_assoc($query); if($num_row_sub == 0) { header("location: https://techamber.in/admin/admin_panel/del-sub.php?parent=".$row['parent_cat']); } else { $sql = "SELECT * FROM themes where cat = '".$row['parent_cat']."' AND sub-cat = '".$row['cate_name']."'"; $query = mysqli_query($con, $sql); $num_row_th = mysqli_num_rows($query); } } else { header('location: https://techamber.in/admin/'); } } } else { header('location: https://techamber.in/admin/'); } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> </body> </html>
đź’ľ Save
❌ Cancel
Sid Gifari File Manager v1.0 | Terminal Auto-Sync Enabled | Current Path: /home/u527040259/domains/techamber.in/.trash