░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
lon105.truehost.cloud
LOCATION:
/home/ilrtztmy/versatilesecuritylimited.com/api
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: careers.php
<?php require_once 'config.php'; header('Access-Control-Allow-Origin: *'); header('Access-Control-Allow-Methods: POST, OPTIONS'); header('Access-Control-Allow-Headers: Content-Type'); if ($_SERVER['REQUEST_METHOD'] === 'OPTIONS') { exit; } if ($_SERVER['REQUEST_METHOD'] !== 'POST') { sendJsonResponse(['success' => false, 'message' => 'Method not allowed'], 405); } $input = getJsonInput(); $name = trim($input['name'] ?? ''); $phone = trim($input['phone'] ?? ''); $email = trim($input['email'] ?? ''); $role = trim($input['role'] ?? ''); $background = trim($input['background'] ?? ''); // Validate required fields if (!$name || !$phone || !$email || !$role || !$background) { sendJsonResponse(['success' => false, 'message' => 'All required fields must be completed.'], 400); } if (!filter_var($email, FILTER_VALIDATE_EMAIL)) { sendJsonResponse(['success' => false, 'message' => 'Invalid email address.'], 400); } if (strlen($name) > 150 || strlen($email) > 150 || strlen($phone) > 50 || strlen($role) > 150 || strlen($background) > 1000) { sendJsonResponse(['success' => false, 'message' => 'One or more fields exceed the maximum allowed length.'], 400); } $db = getDbConnection(); $stmt = $db->prepare( "INSERT INTO applications (name, phone, email, role, background, status, created_at) VALUES (?, ?, ?, ?, ?, 'new', NOW())" ); if ($stmt->execute([$name, $phone, $email, $role, $background])) { sendJsonResponse(['success' => true, 'message' => 'Application received.']); } else { sendJsonResponse(['success' => false, 'message' => 'Failed to submit application. Please try again.'], 500); } ?>
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📁 admin/
DIR
—
2020-10-15 14:24
📄 careers.php
PHP
1.7 KB
2026-05-16 13:26
EDIT
📄 config.php
PHP
3.7 KB
2026-05-16 11:45
EDIT
📄 contact.php
PHP
1.7 KB
2026-05-16 13:27
EDIT
📄 packages-inquiry.php
PHP
1.8 KB
2026-05-16 13:26
EDIT