From 9e8d193e47f446e2e22f94b87f2b7d191ebf8781 Mon Sep 17 00:00:00 2001 From: Gabriel Carneiro Date: Mon, 5 Aug 2024 17:37:08 -0300 Subject: [PATCH] update --- upload.php | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/upload.php b/upload.php index 53317ec..72ae367 100755 --- a/upload.php +++ b/upload.php @@ -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); + + + + ?>