diff --git a/uploadpage/favicon.png b/uploadpage/favicon.png index 578884a..47a93e6 100644 Binary files a/uploadpage/favicon.png and b/uploadpage/favicon.png differ diff --git a/uploadpage/index.php b/uploadpage/index.php index 6a61f04..1a81f69 100644 --- a/uploadpage/index.php +++ b/uploadpage/index.php @@ -2,17 +2,19 @@ Stream Upload + -
+
+
- - + + - - - - - - - - + + + + + - + - +

Video Upload Page

Stream Upload

Target:
Streamkey:
Date:
Time:
Streamkey:
Date and Time:
Video File:


+
diff --git a/uploadpage/style.css b/uploadpage/style.css new file mode 100644 index 0000000..50335e6 --- /dev/null +++ b/uploadpage/style.css @@ -0,0 +1,47 @@ +input[type=text],[type=file], select, [type=time], [type=date], [type=datetime-local] { + width:100%; + padding:12px 20px; + margin:0; + display:inline-block; + border:1px solid #ccc; + border-radius:4px; + box-sizing:border-box; + font-size:16px; +} + +input[type=submit] { + width:100%; + background-color:#4CAF50; + color:white; + padding:14px 20px; + margin:8px 0; + border:none; + border-radius:4px; + cursor:pointer; + font-size:16px +} +body { + margin:0; + font-family:sans-serif; + font-size:16px; +} +.container { + display:flex; + flex-direction:column; + justify-content:center; + align-items:center; + height:100vh; +} +.incontainer { + width:450px; + max-width:450px; +} +table { + width:100%; +} +.left { + width:125px; +} +.right { + width:325px; +} \ No newline at end of file diff --git a/uploadpage/upload.php b/uploadpage/upload.php index ce4ab93..fd3b340 100644 --- a/uploadpage/upload.php +++ b/uploadpage/upload.php @@ -16,9 +16,9 @@ function Back($msg){ header('Content-type: text/html; charset=utf-8'); $upload=htmlspecialchars(basename($_FILES['fileToUpload']['name'])); $key=$_POST['streamkey']; -$date=$_POST['date']; -$hour=substr($_POST['time'], 0, 2); -$min=substr($_POST['time'], 3, 2); +$date=substr($_POST['datetime'], 0, 10); +$hour=substr($_POST['datetime'], 11, 2); +$min=substr($_POST['datetime'], 14, 2); $time=$hour.$min; $target=$_POST['target']; $dir='streams/'; @@ -28,8 +28,9 @@ print(' Encoding -
-

Encoding

+ +
+

Encoding

File: '.$upload); $now=date('Y-m-dHi'); if(strcmp($now, $date.$time)>0){