0byt3m1n1
Path:
/
var
/
www
/
listcrawler.app
/
public_html
/
admin
/
[
Home
]
File: delete_contact.php
<?php session_start(); require_once 'includes/auth_validate.php'; require_once './config/config.php'; $del_id = filter_input(INPUT_POST, 'del_id'); if ($del_id && $_SERVER['REQUEST_METHOD'] == 'POST') { if($_SESSION['admin_type']!='super'){ $_SESSION['failure'] = "You don't have permission to perform this action"; header('location: contacts.php'); exit; } $contact_id = $del_id; $db = getDbInstance(); $db->where('id', $contact_id); $status = $db->delete('contacts'); if ($status) { $_SESSION['info'] = "Mobile number deleted successfully!"; header('location: contacts.php'); exit; } else { $_SESSION['failure'] = "Unable to delete mobile number"; header('location: contacts.php'); exit; } }