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 /
libs /
Delete
Unzip
Name
Size
Permission
Date
Action
.htaccess
197
B
-r--r--r--
2026-04-01 03:43
email.php
15.43
KB
-rw-r--r--
2025-11-13 20:40
functions.php
4.2
KB
-rw-r--r--
2025-11-13 21:38
qrcode.php
5.18
KB
-rw-r--r--
2025-11-13 19:57
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 // Email notification system using PHPMailer // For production, install PHPMailer via Composer: composer require phpmailer/phpmailer class EmailNotification { public static function sendApplicationSubmitted($userEmail, $userName, $applicationId) { $subject = 'Application Submitted Successfully'; $body = self::getEmailTemplate('application_submitted', [ 'user_name' => $userName, 'application_id' => str_pad($applicationId, 6, '0', STR_PAD_LEFT), 'site_name' => SITE_NAME, 'site_url' => SITE_URL ]); return self::sendEmail($userEmail, $subject, $body); } public static function sendApplicationApproved($userEmail, $userName, $applicationId, $vehicleType) { $subject = 'Application Approved - Payment Required'; $body = self::getEmailTemplate('application_approved', [ 'user_name' => $userName, 'application_id' => str_pad($applicationId, 6, '0', STR_PAD_LEFT), 'vehicle_type' => $vehicleType, 'site_name' => SITE_NAME, 'site_url' => SITE_URL, 'payment_url' => SITE_URL . '/user/payment.php' ]); return self::sendEmail($userEmail, $subject, $body); } public static function sendApplicationRejected($userEmail, $userName, $applicationId, $reason) { $subject = 'Application Rejected'; $body = self::getEmailTemplate('application_rejected', [ 'user_name' => $userName, 'application_id' => str_pad($applicationId, 6, '0', STR_PAD_LEFT), 'reason' => $reason, 'site_name' => SITE_NAME, 'site_url' => SITE_URL ]); return self::sendEmail($userEmail, $subject, $body); } public static function sendPaymentConfirmed($userEmail, $userName, $transactionId) { $subject = 'Payment Confirmed - QR Code Activated'; $body = self::getEmailTemplate('payment_confirmed', [ 'user_name' => $userName, 'transaction_id' => str_pad($transactionId, 6, '0', STR_PAD_LEFT), 'site_name' => SITE_NAME, 'site_url' => SITE_URL, 'dashboard_url' => SITE_URL . '/user/dashboard.php' ]); return self::sendEmail($userEmail, $subject, $body); } public static function sendPaymentRejected($userEmail, $userName, $transactionId, $reason) { $subject = 'Payment Rejected'; $body = self::getEmailTemplate('payment_rejected', [ 'user_name' => $userName, 'transaction_id' => str_pad($transactionId, 6, '0', STR_PAD_LEFT), 'reason' => $reason, 'site_name' => SITE_NAME, 'site_url' => SITE_URL, 'payment_url' => SITE_URL . '/user/payment.php' ]); return self::sendEmail($userEmail, $subject, $body); } private static function sendEmail($to, $subject, $body) { // For production, use PHPMailer // This is a placeholder implementation $headers = [ 'From: ' . FROM_NAME . ' <' . FROM_EMAIL . '>', 'Reply-To: ' . FROM_EMAIL, 'Content-Type: text/html; charset=UTF-8', 'MIME-Version: 1.0' ]; // Use PHP's mail() function (basic implementation) // For production, replace with PHPMailer SMTP // Check if mail function is available and configured if (!function_exists('mail')) { error_log("Email Error: mail() function not available"); return false; } // Try to send email, handle errors gracefully $result = @mail($to, $subject, $body, implode("\r\n", $headers)); if (!$result) { // Log the email attempt for debugging error_log("Email failed to send to: $to, Subject: $subject"); // For development/local environment, just return true to avoid breaking the flow if (strpos($_SERVER['HTTP_HOST'], 'localhost') !== false || strpos($_SERVER['HTTP_HOST'], '127.0.0.1') !== false) { error_log("Development mode: Email sending skipped for localhost"); return true; // Return true to not break the application flow } } return $result; /* PHPMailer implementation (uncomment for production): require_once 'vendor/autoload.php'; $mail = new PHPMailer\PHPMailer\PHPMailer(true); try { $mail->isSMTP(); $mail->Host = SMTP_HOST; $mail->SMTPAuth = true; $mail->Username = SMTP_USERNAME; $mail->Password = SMTP_PASSWORD; $mail->SMTPSecure = PHPMailer\PHPMailer\PHPMailer::ENCRYPTION_STARTTLS; $mail->Port = SMTP_PORT; $mail->setFrom(FROM_EMAIL, FROM_NAME); $mail->addAddress($to); $mail->isHTML(true); $mail->Subject = $subject; $mail->Body = $body; $mail->send(); return true; } catch (Exception $e) { error_log("Email sending failed: " . $mail->ErrorInfo); return false; } */ } private static function getEmailTemplate($template, $variables) { $templates = [ 'application_submitted' => ' <html> <body style="font-family: Arial, sans-serif; line-height: 1.6; color: #333;"> <div style="max-width: 600px; margin: 0 auto; padding: 20px;"> <div style="background: #28a745; color: white; padding: 20px; text-align: center;"> <h1>{site_name}</h1> </div> <div style="padding: 20px; background: #f8f9fa;"> <h2>Application Submitted Successfully</h2> <p>Dear {user_name},</p> <p>Your vehicle registration application has been submitted successfully.</p> <div style="background: white; padding: 15px; border-left: 4px solid #28a745; margin: 20px 0;"> <strong>Application ID:</strong> #{application_id} </div> <p>Your application is now under review. You will receive another email once the admin has reviewed your application.</p> <p>You can check your application status anytime by logging into your dashboard.</p> <div style="text-align: center; margin: 30px 0;"> <a href="{site_url}/user/dashboard.php" style="background: #28a745; color: white; padding: 12px 30px; text-decoration: none; border-radius: 5px;">View Dashboard</a> </div> <p>Thank you for using {site_name}!</p> </div> <div style="background: #6c757d; color: white; padding: 10px; text-align: center; font-size: 12px;"> <p>© ' . date('Y') . ' {site_name}. All rights reserved.</p> </div> </div> </body> </html> ', 'application_approved' => ' <html> <body style="font-family: Arial, sans-serif; line-height: 1.6; color: #333;"> <div style="max-width: 600px; margin: 0 auto; padding: 20px;"> <div style="background: #28a745; color: white; padding: 20px; text-align: center;"> <h1>{site_name}</h1> </div> <div style="padding: 20px; background: #f8f9fa;"> <h2>🎉 Application Approved!</h2> <p>Dear {user_name},</p> <p>Great news! Your vehicle registration application has been approved.</p> <div style="background: white; padding: 15px; border-left: 4px solid #28a745; margin: 20px 0;"> <strong>Application ID:</strong> #{application_id}<br> <strong>Vehicle Type:</strong> {vehicle_type} </div> <p><strong>Next Step:</strong> Please make the payment to activate your QR code.</p> <div style="text-align: center; margin: 30px 0;"> <a href="{payment_url}" style="background: #28a745; color: white; padding: 12px 30px; text-decoration: none; border-radius: 5px;">Make Payment</a> </div> <p>Once payment is confirmed, your QR code will be activated and you can download it from your dashboard.</p> <p>Thank you for using {site_name}!</p> </div> <div style="background: #6c757d; color: white; padding: 10px; text-align: center; font-size: 12px;"> <p>© ' . date('Y') . ' {site_name}. All rights reserved.</p> </div> </div> </body> </html> ', 'application_rejected' => ' <html> <body style="font-family: Arial, sans-serif; line-height: 1.6; color: #333;"> <div style="max-width: 600px; margin: 0 auto; padding: 20px;"> <div style="background: #dc3545; color: white; padding: 20px; text-align: center;"> <h1>{site_name}</h1> </div> <div style="padding: 20px; background: #f8f9fa;"> <h2>Application Rejected</h2> <p>Dear {user_name},</p> <p>We regret to inform you that your vehicle registration application has been rejected.</p> <div style="background: white; padding: 15px; border-left: 4px solid #dc3545; margin: 20px 0;"> <strong>Application ID:</strong> #{application_id}<br> <strong>Reason:</strong> {reason} </div> <p>You can submit a new application after addressing the issues mentioned above.</p> <div style="text-align: center; margin: 30px 0;"> <a href="{site_url}/user/new-application.php" style="background: #28a745; color: white; padding: 12px 30px; text-decoration: none; border-radius: 5px;">Submit New Application</a> </div> <p>If you have any questions, please contact our support team.</p> </div> <div style="background: #6c757d; color: white; padding: 10px; text-align: center; font-size: 12px;"> <p>© ' . date('Y') . ' {site_name}. All rights reserved.</p> </div> </div> </body> </html> ', 'payment_confirmed' => ' <html> <body style="font-family: Arial, sans-serif; line-height: 1.6; color: #333;"> <div style="max-width: 600px; margin: 0 auto; padding: 20px;"> <div style="background: #28a745; color: white; padding: 20px; text-align: center;"> <h1>{site_name}</h1> </div> <div style="padding: 20px; background: #f8f9fa;"> <h2>🎉 Payment Confirmed - QR Code Activated!</h2> <p>Dear {user_name},</p> <p>Your payment has been confirmed and your QR code is now active!</p> <div style="background: white; padding: 15px; border-left: 4px solid #28a745; margin: 20px 0;"> <strong>Transaction ID:</strong> #{transaction_id}<br> <strong>Status:</strong> QR Code Activated </div> <p>You can now:</p> <ul> <li>Download your QR code from the dashboard</li> <li>Share your public profile via QR code</li> <li>Use your verified vehicle registration</li> </ul> <div style="text-align: center; margin: 30px 0;"> <a href="{dashboard_url}" style="background: #28a745; color: white; padding: 12px 30px; text-decoration: none; border-radius: 5px;">View Dashboard</a> </div> <p>Thank you for using {site_name}!</p> </div> <div style="background: #6c757d; color: white; padding: 10px; text-align: center; font-size: 12px;"> <p>© ' . date('Y') . ' {site_name}. All rights reserved.</p> </div> </div> </body> </html> ', 'payment_rejected' => ' <html> <body style="font-family: Arial, sans-serif; line-height: 1.6; color: #333;"> <div style="max-width: 600px; margin: 0 auto; padding: 20px;"> <div style="background: #dc3545; color: white; padding: 20px; text-align: center;"> <h1>{site_name}</h1> </div> <div style="padding: 20px; background: #f8f9fa;"> <h2>Payment Rejected</h2> <p>Dear {user_name},</p> <p>We regret to inform you that your payment has been rejected.</p> <div style="background: white; padding: 15px; border-left: 4px solid #dc3545; margin: 20px 0;"> <strong>Transaction ID:</strong> #{transaction_id}<br> <strong>Reason:</strong> {reason} </div> <p>Please make a new payment with the correct details.</p> <div style="text-align: center; margin: 30px 0;"> <a href="{payment_url}" style="background: #28a745; color: white; padding: 12px 30px; text-decoration: none; border-radius: 5px;">Make New Payment</a> </div> <p>If you have any questions, please contact our support team.</p> </div> <div style="background: #6c757d; color: white; padding: 10px; text-align: center; font-size: 12px;"> <p>© ' . date('Y') . ' {site_name}. All rights reserved.</p> </div> </div> </body> </html> ' ]; $template = $templates[$template] ?? ''; // Replace variables foreach ($variables as $key => $value) { $template = str_replace('{' . $key . '}', $value, $template); } return $template; } } ?>