ProHawk Technology Group KirKut Media Download
Original
Your browser does not support the video tag.
Processed
Your browser does not support the video tag.
// https://tomelliott.com/html-5/changing-html5-video-javascript-jquery
// document.querySelector("#myVideoTag > source").src = "http://example.com/new_url.mp4"
/*
function changeVid(n){
var video = document.getElementById('video');
if(Modernizr.video && Modernizr.video.webm) {
video.setAttribute("src", v[n][0]);
} else if(Modernizr.video && Modernizr.video.ogg) {
video.setAttribute("src", v[n][1]);
} else if(Modernizr.video && Modernizr.video.h264) {
video.setAttribute("src", v[n][2]);
}
video.load();
}
$("#fileToUpload").change(function(e){
var source = $('#video_source');
source[0].src = URL.createObjectURL(this.files[0]);
source.parent()[0].load();
});
document.getElementById("video_res_1").src = "my video url.ogv";
document.getElementById("videoplayer1").load();
*/
function formatSizeUnits($bytes)
{
if ($bytes >= 1073741824)
{
$bytes = number_format($bytes / 1073741824, 2) . ' GB';
}
elseif ($bytes >= 1048576)
{
$bytes = number_format($bytes / 1048576, 2) . ' MB';
}
elseif ($bytes >= 1024)
{
$bytes = number_format($bytes / 1024, 2) . ' KB';
}
elseif ($bytes > 1)
{
$bytes = $bytes . ' bytes';
}
elseif ($bytes == 1)
{
$bytes = $bytes . ' byte';
}
else
{
$bytes = '0 bytes';
}
return $bytes;
}
session_start();
$_SESSION['start'] = 0;
$entry = 0;
//echo "
entry 0:
" . $entry;
$_GET['file'] = null;
$dir = 'uploads';
//$files1 = scandir($dir);
//$files2 = scandir($dir, 1);
$Rows = 4;
$Cols = 3;
echo '
';
echo '';
echo 'File Name ';
echo 'File Size ';
echo 'Modified Date ';
//echo " Session downstatus info: " . $_SESSION['down_status'] . " ";
echo "Here are the files you have uploaded. Click on the file name to download. ";
$path = ".";
///echo " dir: " . $dir . " ";
$dh = opendir($dir);
///echo " dh: " . $dh . " ";
$i=1;
while (($file = readdir($dh)) !== false) {
if($file != "." && $file != ".." && $file != "index.php" && $file != ".htaccess" && $file != "error_log" && $file != "cgi-bin" && $file != ".DS_Store") {
$fileString = $file;
///echo " fileString: " . $fileString . " ";
$fileSize = fileSize($dir. "/" . $file);
$fileSizeFormatted = formatSizeUnits($fileSize);
///echo " fileSize: " . $fileSize . " ";
$searchString = "javascript:showConfirmDialog($file, " . $fileSize .")";
$pos = strpos($searchString, "(");
$pos += 1;
$search2 = substr_replace($searchString, "'", $pos, 0);
$pos2 = strpos($searchString, "$fileSize");
$pos2 -= 1;
$search3 = substr_replace($search2, "'", $pos2, 0);
$search4 ="" . $file . " " ;
$search5 = $file;
//echo " search5: " . $search5 . " ";
$linkString = "'downloadFile(" . $file . ")';>";
// $search6 = "$file ";
$entry = 1;
// $search6 = "$file ";
$search6 = "$file ";
echo ' ';
echo '' . $search6 . ' ';
echo '' . $fileSizeFormatted .' ';
echo '' . date ("F d Y H:i:s", filemtime($dir. "/" . $file));
$i++;
}
}
closedir($dh);
echo '
';
// Downloaded files
$dir = 'downloads';
//$files1 = scandir($dir);
//$files2 = scandir($dir, 1);
$Rows = 4;
$Cols = 3;
echo '
';
echo '';
echo 'File Name ';
echo 'File Size ';
echo 'Modified Date ';
echo 'Play ';
echo 'MetaData ';
//echo " Session downstatus info: " . $_SESSION['down_status'] . " ";
echo " Here are the files in your download directory. Click on the file name to display and/or download to your computer. Click the Play button to show before and after processing. ";
$path = ".";
///echo " dir: " . $dir . " ";
$dh = opendir($dir);
///echo " dh: " . $dh . " ";
$i=1;
while (($file = readdir($dh)) !== false) {
if($file != "." && $file != ".." && $file != "index.php" && $file != ".htaccess" && $file != "error_log" && $file != "cgi-bin" && $file != ".DS_Store") {
$fileString = $file;
///echo " fileString: " . $fileString . " ";
$fileSize = fileSize($dir. "/" . $file);
$fileSizeFormatted = formatSizeUnits($fileSize);
///echo " fileSize: " . $fileSize . " ";
$searchString = "javascript:showConfirmDialog($file, " . $fileSize .")";
$pos = strpos($searchString, "(");
$pos += 1;
$search2 = substr_replace($searchString, "'", $pos, 0);
$pos2 = strpos($searchString, "$fileSize");
$pos2 -= 1;
$search3 = substr_replace($search2, "'", $pos2, 0);
$search4 ="" . $file . " " ;
$search5 = $file;
//echo " search5: " . $search5 . " ";
$linkString = "'downloadFile(" . $file . ")';>";
// $search6 = "$file ";
$entry = 1;
// $search6 = "$file ";
// $search6 = "$file ";
$search6 = "$file ";
$search7 = "Play ";
$search8 = "MetaData ";
echo ' ';
echo '' . $search6 . ' ';
echo '' . $fileSizeFormatted .' ';
echo '' . date ("F d Y H:i:s", filemtime($dir. "/" . $file));
echo ' ' . $search7;
echo ' ' . $search8;
$i++;
}
}
closedir($dh);
echo '
';
// End downloaded files
//$_SESSION['start'] = 1;
//
//
//
IMG_2364.JPG
?>
Download Status