".m4a", "audio/ogg" => ".ogg", "audio/basic" => ".au", "audio/basic" => ".snd", "audio/mid" => ".mid", "audio/mid" => ".rmi", "audio/mpeg" => ".mp3", "audio/x-aiff" => ".aif", "audio/x-aiff" => ".aifc", "audio/x-aiff" => ".aiff", "audio/x-mpegurl" => ".m3u", "audio/x-pn-realaudio" => ".ram", "audio/x-wav" => ".wav", "image/bmp" => ".bmp", "image/cis-cod" => ".cod", "image/gif" => ".gif", "image/ief" => ".ief", "image/jpeg" => ".jpe", "image/jpeg" => ".jpeg", "image/jpeg" => ".jpg", "image/pipeg" => ".jfif", "image/svg+xml" => ".svg", "image/tiff" => ".tif", "image/tiff" => ".tiff", "image/x-cmu-raster" => ".ras", "image/x-cmx" => ".cmx", "image/x-icon" => ".ico", "image/x-portable-anymap" => ".pnm", "image/x-portable-bitmap" => ".pbm", "image/x-portable-graymap" => ".pgm", "image/x-portable-pixmap" => ".ppm", "image/x-rgb" => ".rgb", "image/x-xbitmap" => ".xbm", "image/x-xpixmap" => ".xpm", "image/x-xwindowdump" => ".xwd", "video/mp4" => ".m4v", "video/mpeg" => ".mp2", "video/mpeg" => ".mpa", "video/mpeg" => ".mpe", "video/mpeg" => ".mpeg", "video/mpeg" => ".mpg", "video/mpeg" => ".mpv2", "video/quicktime" => ".mov", "video/quicktime" => ".qt", "video/x-la-asf" => ".lsf", "video/x-la-asf" => ".lsx", "video/x-ms-asf" => ".asf", "video/x-ms-asf" => ".asr", "video/x-ms-asf" => ".asx", "video/x-msvideo" => ".avi", "video/x-sgi-movie" => ".movie", "video/ogg" => ".ogv", "video/webm" => ".webm" ); foreach ($earray as $sext => $key) { if (url_exists(str_replace($outext, "", $ivfilene) . $earray[$sext])) { if (($earray[$sext] == $outext || $earray[$sext] == $inext) && (strpos($sext, "video/") !== false || strpos($sext, "image/") !== false)) { if ($earray[$sext] != ".ogg" && $earray[$sext] != ".wav" && $earray[$sext] != ".mp3") $extinfo = ""; if (strpos($sext, "video/") !== false) { $howmany = $howmany + 1; $outoptions .= "" . $earray[$sext] . ""; } else { $outoptions .= "" . $earray[$sext] . ""; } if ($earray[$sext] == $outext) { if ($premime == "") $premime = $sext; $ivfilene = str_replace($outext, "", $ivfilene); $ivn = str_replace($outext, "", $ivn); } } else if ((strpos($sext, "video/") !== false || strpos($sext, "image/") !== false)) { if ($earray[$sext] != ".ogg" && $earray[$sext] != ".wav" && $earray[$sext] != ".mp3") $extinfo = ""; if (strpos($sext, "video/") !== false) { $howmany = $howmany + 1; $outoptions .= "" . $earray[$sext] . ""; } else { $outoptions .= "" . $earray[$sext] . ""; } if ($earray[$sext] == $outext) { if ($premime == "") $premime = $sext; $ivfilene = str_replace($outext, "", $ivfilene); $ivn = str_replace($outext, "", $ivn); } } } } if ($howmany == 1 && strpos($outoptions, " selected>") === false && strpos($outext, ".") === false && strpos($outoptions, "video/") !== false) { $outoptions = str_replace(" 1) $premime = $pext[1]; } else if (isset($_POST['ext'])) { $pext = explode(":", urldecode($_POST['ext'])); $preext = $pext[0]; if (sizeof($pext) > 1) $premime = $pext[1]; } $midbit = uflist($preext); if ($midbit != "") { $selinfo = "" . $midbit . ""; } else { $selinfo = "" . $midbit . ""; } if (isset($_GET['ext'])) { if ($_GET['ext'] == "") { $ivfile = $ivfilene . '.mp3'; } else { $ivfilene .= $preext; $ivfile = $ivfilene; if ($isiPad) { $ipadplace = $ivfile; } else { header('Content-type: ' . $premime); echo file_get_contents($ivfile); exit; } } } else if (isset($_POST['ext'])) { if ($_POST['ext'] == "") { $ivfile = $ivfilene . '.mp4'; } else { $ivfilene .= $preext; $ivfile = $ivfilene; if ($isiPad) { $ipadplace = $ivfile; } else { header('Content-type: ' . $premime); echo file_get_contents($ivfile); exit; } } } else { $ivfile = $ivfilene . '.mp4'; } $ua = strtolower($_SERVER['HTTP_USER_AGENT']); if (strpos($ua, "msie 8") !== false || strpos($ua, "msie 7") !== false || strpos($ua, "msie 6") !== false) { $huh = file_get_contents($ivfile); header('Content-type: video/mp4'); echo $huh; exit; } ?> Play Video in Various Browsers'; ?> Video Play ' . "\n"; ?> Autoplay: \n"; ?> Controls: \n"; ?> Loop: \n"; ?> \n"; ?> \n"; ?> " . $selinfo . "\n"; ?> Autostart: \n"; ?> Loop: \n"; ?> Hidden: \n"; ?> > '; ?> '; ?> '."\n"; } else if (strpos($ua, "safari") !== false) { if ($iscalled != "") echo ''."\n"; if ($iscalled != "") echo ''."\n"; } else if (strpos($ua, "mozilla") !== false) { if ($iscalled != "") echo ''."\n"; if ($iscalled != "") echo str_replace(".webm\" ", ".webm\" type='video/webm; codecs=\"vp8, vorbis\"' ", '')."\n"; } else { if ($iscalled != "") echo ''."\n"; if ($iscalled != "") echo ''."\n"; } ?> ' . "\n"; ?> Toggle\n"; ?>