OXIESEC PANEL
- Current Dir:
/
/
home
/
cubot
/
docroot
/
assets
/
plugins
/
sky-forms-pro
/
skyforms
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/14/2022 11:10:44 AM
rwxr-xr-x
📁
captcha
-
08/14/2022 11:10:44 AM
rwxr-xr-x
📁
css
-
08/14/2022 11:10:44 AM
rwxr-xr-x
📁
custom
-
08/14/2022 11:10:44 AM
rwxr-xr-x
📄
demo-comment-process.php
65 bytes
08/14/2022 11:10:45 AM
rw-r--r--
📄
demo-comment.php
4.93 KB
08/14/2022 11:10:45 AM
rw-r--r--
📄
demo-contacts-process.php
655 bytes
08/14/2022 11:10:44 AM
rw-r--r--
📄
demo-contacts.php
4.73 KB
08/14/2022 11:10:44 AM
rw-r--r--
📄
demo-login-process.php
65 bytes
08/14/2022 11:10:44 AM
rw-r--r--
📄
demo-order-process.php
1.85 KB
08/14/2022 11:10:44 AM
rw-r--r--
📄
demo-review-process.php
638 bytes
08/14/2022 11:10:44 AM
rw-r--r--
📄
ext-captcha.php
2.61 KB
08/14/2022 11:10:44 AM
rw-r--r--
📁
icons
-
08/14/2022 11:10:44 AM
rwxr-xr-x
📁
js
-
08/14/2022 11:10:45 AM
rwxr-xr-x
Editing: demo-order-process.php
Close
<?php if( isset($_POST['name']) ) { $to = 'vokyvon@gmail.com'; // Replace with your email $subject = 'Order from website'; // Replace with your subject if you need $message = 'Name: ' . $_POST['name'] . "\n" . 'Company: ' . $_POST['company']. "\n" . 'E-mail: ' . $_POST['email']. "\n" . 'Phone: ' . $_POST['phone']. "\n\n" . 'Interested in: ' . $_POST['interested']. "\n" . 'Budget: ' . $_POST['budget']. "\n" . 'Expected start date: ' . $_POST['start']. "\n" . 'Expected finish date: ' . $_POST['finish']. "\n" . 'About project: ' . $_POST['comment']. "\n\n\n"; // Get a random 32 bit number. $num = md5(time()); // Define the main headers. $headers = 'From:' . $_POST['name'] . "\r\n"; $headers .= 'Reply-To:' . $_POST['email'] . "\r\n"; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: multipart/mixed; "; $headers .= "boundary=$num\r\n"; $headers .= "--$num\r\n"; // Define the message section $headers .= "Content-Type: text/plain\r\n"; $headers .= "Content-Transfer-Encoding:8bit\r\n\n"; $headers .= "$message\r\n"; $headers .= "--$num\r\n"; if( isset($_FILES['file']['tmp_name']) ) { // Read the file into a variable $file = fopen($_FILES['file']['tmp_name'], 'r'); $size = $_FILES['file']['size']; $content = fread($file, $size); $encoded_content = chunk_split(base64_encode($content)); // Define the attachment section $headers .= "Content-Type: ". $_FILES['file']['type'] ."; "; $headers .= 'name="' . $_FILES['file']['name'] . '"' . "\r\n"; $headers .= "Content-Transfer-Encoding: base64\r\n"; $headers .= "Content-Disposition: attachment; "; $headers .= 'filename="' . $_FILES['file']['name'] . '"' . "\r\n\n"; $headers .= "$encoded_content\r\n"; $headers .= "--$num--"; } // Send email mail ($to, $subject, '', $headers); } ?>