"; } else if (isset($_POST['diframes'])) { $htmlis.="
"; } else if (isset($_POST['ddownloads'])) { $htmlis.="
"; } else { $htmlis.="
"; } $body=@file_get_contents($dir . $new_name); $filename=basename($dir . $new_name); if (isset($_POST['emailsubmit'])) { if (isset($_POST['mode']) && strpos($_SERVER['SERVER_NAME'], "rjmprogramming.com.au") !== false) { if ($_POST['mode'] != '') { // && isset($_POST['mydurl'])) { if (isset($_POST['mymobile'])) { if ($_POST['mymobile'] != "") { $mtm = urldecode($_POST['mymobile']); $tos = explode("?", $mtm); $to = str_replace("mailto:", "", $tos[0]); $subjects = explode("&", $tos[1]); $subject = str_replace("subject=", "", $subjects[0]); //$body = ($_POST['mydurl']); $eol = PHP_EOL; $headers = 'From: ' . 'rmetcalfe@rjmprogramming.com.au' . $eol; $headers .= 'Reply-To: ' . 'rmetcalfe@rjmprogramming.com.au' . $eol; //$fname = explode(";", $body); //$filename=str_replace("quicktime", "mp4", str_replace("/", ".", str_replace("data:", "", $fname[0]))); //$filename="media.html"; $content = chunk_split(base64_encode($body)); //$uid = md5(uniqid(time())); // a random hash will be necessary to send mixed content $separator = md5(time()); $headers .= "MIME-Version: 1.0" . $eol; $headers .= "Content-Type: multipart/mixed; boundary=\"" . $separator . "\"" . $eol . $eol; $headers .= "Content-Transfer-Encoding: 7bit" . $eol; $headers .= "This is a MIME encoded message." . $eol . $eol; // message $headers .= "--" . $separator . $eol; $headers .= "Content-Type: text/plain; charset=\"iso-8859-1\"" . $eol; $headers .= "Content-Transfer-Encoding: 8bit" . $eol . $eol; $headers .= "Please see attachment below:" . $eol . $eol; //ourpremail($tem, $mysubject, "", $headers . "--" . $separator . "--"); // attachment $headers .= "--" . $separator . $eol; $headers .= "Content-Type: " . $mimetype . "; name=\"" . $filename . "\"" . $eol; $headers .= "Content-Transfer-Encoding: base64" . $eol; $headers .= "Content-Disposition: attachment;filename=\"" . $filename . "\"" . $eol; $headers .= $content . $eol . $eol; $headers .= "--" . $separator . "--"; mail($to, $subject, "", $headers); } } } } } if (strpos($htmlis,"") === false) $htmlis.="
"; echo $htmlis . ""; $toaddr = "rmetcalfe@rjmprogramming.com.au"; $subj = "Ephemeral audio upload via ".$sra." called "."http://www.rjmprogramming.com.au/ephemeral/uploads/".$iprealbit; $cont = "http://www.rjmprogramming.com.au/ephemeral/uploads/".$realbit; $hdrs = "From: rmetcalfe@rjmprogramming.com.au"."\r\n"; //unlink($dir . $iprealbit); mail($toaddr, $subj, $cont, $hdrs); } else { if (strpos($htmlis,"") === false) $htmlis.="
" . $_FILES['upload']['name'] . "" . " was uploaded successfully!

<" . $whichmedia . " style='display:" . $dvideoaudiosdisplay . ";' controls>
"; //Print Error Message echo $htmlis . ""; //Debug $name = $_FILES['upload']['name']; $type = $_FILES['upload']['type']; $size = $_FILES['upload']['size']; $tmp = $_FILES['upload']['name']; echo ""; } } else { if (strpos($htmlis,"") === false) $htmlis.="
" . sizeof($_FILES) . " File {$_FILES['upload']['name']} Was Not Uploaded!
Name: $name
Type: $type
Size: $size
Tmp: $tmp" . "
"; echo $htmlis . ''; } } ?>
Could Not Upload Files

Upload Audio/Video "RJM Programming" file(s) (<= 3,000,000 bytes) - Everybody Welcome ... but keep it fairly short!

Fill out all fields below to email your content, before clicking above to create Audio/Video:

To:
Subject: