HEX
Server: Apache
System: Linux msm5694.mjhst.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: camjab_ssh (1000)
PHP: 5.3.29
Disabled: NONE
Upload Files
File: /home/httpd/html/baretube.com.new/admin/regenwebvtt.php
<?

include_once('db.php');
require_once('getid3/getid3.php');

$id = (int) $_GET['id'];

$imagick_command = "-modulate 110,102,100 -sharpen 1x1 -enhance";

if (is_odd($thumbwidth)) {
    $thumbwidth++;
}
if (is_odd($thumbheight)) {
    $thumbheight++;
}

$result = dbQuery("SELECT * FROM content WHERE approved = 2 AND photos = 0 AND hotlinked NOT LIKE '%adultcentro%'", false);
foreach ($result as $row) {
    $i = $row['filename'];
    $first = $row['filename'][0];
    $second = $row['filename'][1];
    $third = $row['filename'][2];
    $forth = $row['filename'][3];
    $fifth = $row['filename'][4];
    $subdir = $first . '/' . $second . '/' . $third . '/' . $forth . '/' . $fifth . '/';
    $target_movie = $video_path . "/" . $subdir . $i;
	$i = $row[filename]; 
	$first = $row[filename][0];
	$second = $row[filename][1]; 
	$third = $row[filename][2];
	$forth = $row[filename][3]; 
	$fifth = $row[filename][4]; 	
	$subdir = $first.'/'.$second.'/'.$third.'/'.$forth.'/'.$fifth.'/'; 
	$target_movie = $video_path."/".$subdir.$i;
	$rrow[id] = uniqid();
	$dirname = str_replace('.flv','',$row[orig_filename]); 
	$target_image = "$thumb_path/$subdir$dirname/";
	shell_exec("$ffmpeg_path -i \"$target_movie\" -vcodec mjpeg -vf fps=1/5 -s 200x150 \"$target_image/vtt_%03d.jpg\"");


    $counter++;
    
}


echo "\n----------------------\nComplete";
?>