403Webshell
Server IP : 3.138.164.131  /  Your IP : 216.73.216.136
Web Server : Apache
System : Linux ns1.techtime.me 4.18.0-147.8.1.el8.lve.1.x86_64 #1 SMP Mon Jun 29 09:55:57 EDT 2020 x86_64
User : injazaat ( 1471)
PHP Version : 8.1.20
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/injazaat/public_html/assets/php/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/injazaat/public_html/assets/php/form-process.php
<?php

$errorMSG = "";

// NAME
if (empty($_GET["name"])) {
    $errorMSG = "Name is required ";
} else {
    $name = $_GET["name"];
}

// EMAIL
if (empty($_GET["email"])) {
    $errorMSG .= "Email is required ";
} else {
    $email = $_GET["email"];
}

// MSG SUBJECT
if (empty($_GET["msg_subject"])) {
    $errorMSG .= "Subject is required ";
} else {
    $msg_subject = $_GET["msg_subject"];
}

// Phone Number
if (empty($_GET["phone_number"])) {
    $errorMSG .= "Number is required ";
} else {
    $phone_number = $_GET["phone_number"];
}

// MESSAGE
if (empty($_GET["message"])) {
    $errorMSG .= "Message is required";
} else {
    $message = $_GET["message"];
}


// Update here your email address
$EmailTo = "info@injazaat.net";

$Subject = "Injazaat Website - Message Received";

// prepare email body text
$Body = "";
$Body .= "Name: ";
$Body .= $name;
$Body .= "\n";
$Body .= "Email: ";
$Body .= $email;
$Body .= "\n";
$Body .= "Subject: ";
$Body .= $msg_subject;
$Body .= "\n";
$Body .= "Phone Number: ";
$Body .= $phone_number;
$Body .= "\n";
$Body .= "Message: ";
$Body .= $message;
$Body .= "\n";

// send email
$success = mail($EmailTo, $Subject, $Body);

// redirect to success page
if ($success && $errorMSG == ""){
   header('location: /contact');
}else{
    if($errorMSG == ""){
        echo "Something went wrong :(";
    } else {
      header('location: /contact');

    }
}




?>

Youez - 2016 - github.com/yon3zu
LinuXploit