UnknownSec Bypass
403
:
/
home
/
growthpharma
/
public_html
/
Master@Growth
/ [
drwxr-xr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
categorystatus.php
<?php include_once("config.php"); //include_once("session_check.php"); if(isset($_GET['id']) and ($_GET['id']!='')) { $id=$_GET['id']; $status=$_GET['status']; $check = mysql_num_rows(mysql_query("select * from product where catid='$id' and status='Active'")); if($check >'0') { echo "<script>window.location='managecategory.php'</script>"; $_SESSION['mode1']="There is dependency you can not change status!"; exit(); } $menustatuschange=mysql_query("update prodcat set status='$status' where catid='$id'"); if($menustatuschange) { echo "<script>window.location='managecategory.php'</script>"; $_SESSION['mode']="Record Status Updated"; exit(); } else { echo "<script>window.location='managecategory.php'</script>"; $_SESSION['mode1']="Unable To Update Record Status"; exit(); } } ?>
Copyright © 2024 - UnknownSec