update
SSH Build / Deploy (push) Successful in 7s
Details
SSH Build / Deploy (push) Successful in 7s
Details
This commit is contained in:
parent
1d622bb304
commit
96ae867cfd
21
upload.php
21
upload.php
|
@ -29,12 +29,18 @@
|
||||||
|
|
||||||
echo $_POST["videoTitle"];
|
echo $_POST["videoTitle"];
|
||||||
$ext = ".mkv";
|
$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;
|
echo $target_file;
|
||||||
// return;
|
return;
|
||||||
|
|
||||||
// Check if file already exists
|
// Check if file already exists
|
||||||
if (file_exists($brute_file)) {
|
if (file_exists($brute_file)) {
|
||||||
|
@ -61,8 +67,9 @@
|
||||||
$OUTPUT = $target_file;
|
$OUTPUT = $target_file;
|
||||||
|
|
||||||
$cmd = sprintf('%s "%s" "%s" "%s" "%s" "%s"', $SCRIPT_PATH, $NAME, $AUTHOR, $INPUT, 'aulateste', $OUTPUT);
|
$cmd = sprintf('%s "%s" "%s" "%s" "%s" "%s"', $SCRIPT_PATH, $NAME, $AUTHOR, $INPUT, 'aulateste', $OUTPUT);
|
||||||
// echo $cmd;
|
|
||||||
// exit;
|
|
||||||
|
|
||||||
$output = shell_exec($cmd);
|
$output = shell_exec($cmd);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue