This commit is contained in:
Carneiro 2024-08-05 17:37:08 -03:00
parent 7ceddb3842
commit 9e8d193e47
1 changed files with 14 additions and 7 deletions

View File

@ -29,12 +29,18 @@
echo $_POST["videoTitle"];
$ext = ".mkv";
$brute_file = $target_dir . "/src/" . $_POST["videoTitle"] . $ext;
$target_file = $target_dir . "/dest/" . $_POST["videoTitle"] . '.mp4';
echo $brute_file;
$video_title = $_POST["videoTitle"];
$video_desc = $_POST["videoDescription"];
$video_date = date('d/m/Y');
$video_level = $_POST["level"];
$brute_file = $target_dir . "/src/" . $video_title . $ext;
$target_file = $target_dir . "/dest/" . $video_title . '.mp4';
echo $video_title $video_desc $video_date $video_level;
echo $target_file;
// return;
return;
// Check if file already exists
if (file_exists($brute_file)) {
@ -61,8 +67,9 @@
$OUTPUT = $target_file;
$cmd = sprintf('%s "%s" "%s" "%s" "%s" "%s"', $SCRIPT_PATH, $NAME, $AUTHOR, $INPUT, 'aulateste', $OUTPUT);
// echo $cmd;
// exit;
$output = shell_exec($cmd);
?>