11,19d10
< if (isset($_GET['atype'])) {
< if (strpos($_GET['atype'], "image/") !== false) {
< header("Location: " . $_GET['afilename']);
< exit;
< }
< }
<
< $tword = "audio";
<
28d18
< $ivmt = "";
133d122
< "audio/ogg" => ".ogg",
143c132
< if ($earray[$sext] != ".ogg" && $earray[$sext] != ".ogv" && $earray[$sext] != ".wav" && $earray[$sext] != ".mp3") $extinfo = "";
---
> if ($earray[$sext] != ".ogg" && $earray[$sext] != ".wav" && $earray[$sext] != ".mp3") $extinfo = "";
153c142
< $ivn = str_replace(".ogv", "", str_replace(".ogv.ogv", ".ogv", str_replace($outext, "", $ivn)));
---
> $ivn = str_replace($outext, "", $ivn);
156c145
< if ($earray[$sext] != ".ogg" && $earray[$sext] != ".ogv" && $earray[$sext] != ".wav" && $earray[$sext] != ".mp3") $extinfo = "";
---
> if ($earray[$sext] != ".ogg" && $earray[$sext] != ".wav" && $earray[$sext] != ".mp3") $extinfo = "";
166c155
< $ivn = str_replace(".ogv", "", str_replace(".ogv.ogv", ".ogv", str_replace($outext, "", $ivn)));
---
> $ivn = str_replace($outext, "", $ivn);
246,270c235,236
<
< $pv = "";
< if (isset($_GET['afilename']) && !isset($_GET['type'])) {
< $pv = $_GET['afilename'];
< $ivfilene = $pv;
<
< $aloop = "";
< $bloop = "";
<
< if (strpos($pv, ".") !== false) {
<
< $pvs = explode(".", $pv);
< $audio_ogg = '.' . $pvs[sizeof($pvs) - 1] . '" type="' . $tword . '/' . str_replace("ogv", "ogg", $pvs[sizeof($pvs) - 1]) . '" /> ';
< $audio_mp3 = '.' . $pvs[sizeof($pvs) - 1] . '" type="' . $tword . '/' . str_replace("ogv", "ogg", $pvs[sizeof($pvs) - 1]) . '" /> ';
< $audiomp3 = '.' . $pvs[sizeof($pvs) - 1] . '" ';
<
< $audio_wav = '.' . $pvs[sizeof($pvs) - 1] . '" type="' . $tword . '/' . str_replace("ogv", "ogg", $pvs[sizeof($pvs) - 1]) . '" /> ';
< $audiowav = '.' . $pvs[sizeof($pvs) - 1] . '" ';
< }
< } else if (isset($_POST['afilename'])) {
< $pv = $_POST['afilename'];
< }
<
< if ($pv != "") {
< $ivn = urldecode($pv);
---
> if (isset($_POST['afilename'])) {
> $ivn = urldecode($_POST['afilename']);
276c242
< if (strpos(substr($pv,0,5),"data:") !== false || strpos(substr($pv,0,5),"data%") !== false) {
---
> if (strpos(substr($_POST['afilename'],0,5),"data:") !== false || strpos(substr($_POST['afilename'],0,5),"data%") !== false) {
280,282c246,248
< $pf = $pv;
< if (strpos($pv, "data%") !== false) {
< $pf = urldecode($pv);
---
> $pf = $_POST['afilename'];
> if (strpos($_POST['afilename'], "data%") !== false) {
> $pf = urldecode($_POST['afilename']);
313c279
< header('Content-Description: '.basename($_GET['filename']));
---
> //header('Content-Description: File Transfer');
331c297
< if (strpos(basename($_GET['filename']), "spareaudio") === false) unlink(dirname(__FILE__) . "/" . basename($_GET['filename']));
---
> unlink(dirname(__FILE__) . "/" . basename($_GET['filename']));
462d427
<
463a429
>
468d433
<
513,522d477
< function whatifimg() {
< var sis=document.getElementById('ext');
< if (sis != null) {
< if (sis.value.indexOf("image/") != -1) {
< var extis=sis.value.split(":");
< location.href=document.getElementById('domain').value + document.getElementById('path').value + document.getElementById('filename').value + extis[0];
< }
< }
< }
<
551,552c506
< "; ?>
<
---
>
556c510
< '; ?>
---
> '; ?>
576c530
< '; ?>
---
> '; ?>