403Webshell
Server IP : 37.9.174.138  /  Your IP : 216.73.216.117
Web Server : Apache
System : Linux vps6.backend.sk 6.12.100+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.100-1 (2026-07-30) x86_64
User : ftpuser ( 1001)
PHP Version : 8.4.24
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/ttjs.cz/muj/threads/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/ttjs.cz/muj/threads/send-email.php
<?php

/*
 * ************************************************************
 * PATH CONFIG
 * ************************************************************
 */
$ROOT_FOLDER = "threads";
$_SERVER["DOCUMENT_ROOT"] = substr(__DIR__, 0, strpos(__DIR__, $ROOT_FOLDER));
$FILE = substr(__FILE__, strpos(__FILE__, $ROOT_FOLDER) + strlen($ROOT_FOLDER));

/*
 * ************************************************************
 * APP INIT
 * ************************************************************
 */
require $_SERVER["DOCUMENT_ROOT"] . 'config.php';
require $_SERVER["DOCUMENT_ROOT"] . 'app/classes/App.php';
require $_SERVER["DOCUMENT_ROOT"] . 'vendor/autoload.php';
require $_SERVER["DOCUMENT_ROOT"] . 'vendor/google/recaptcha/src/autoload.php';
$app = App::run();

/*
 * ************************************************************
 * CODE
 * ************************************************************
 */

if ($argc < 4) {
    \app\classes\Logger::log(\app\classes\Logger::ERROR, "threads/send-email.php", "Missing arguments.");
}

$emails = explode(",", $argv[1]);
$subject = $argv[2];
$message = $argv[3];

\app\classes\Logger::log(\app\classes\Logger::INFO, "threads/send-email.php", "E-mail sending started. Subject: " . $subject);

foreach ($emails as $email) {
    $originalEmail = $email;
    $email = filter_var(trim($email), FILTER_VALIDATE_EMAIL);
    if ($email !== false) {
        $app->sendEmailNative($email, $subject, $message);
    } else {
        \app\classes\Logger::log(\app\classes\Logger::ERROR, "threads/send-email.php", "Invalid email: " . $originalEmail);
    }
    usleep(rand(20000, 30000) * 100);
}

\app\classes\Logger::log(\app\classes\Logger::INFO, "threads/send-email.php", "E-mail sending finished.");

Youez - 2016 - github.com/yon3zu
LinuXploit