Yeung Alan 6 лет назад
Родитель
Сommit
af000796f7
3 измененных файлов с 6 добавлено и 3 удалено
  1. 3 0
      Video/mover.php
  2. 2 2
      Video/new_folder.php
  3. 1 1
      Video/vidPlay.php

+ 3 - 0
Video/mover.php

@@ -9,6 +9,9 @@ keeping opr == 2 only for unexpected
 3 = delete
 */
 //Video Processing System
+if(!isset($_POST["dir"]) || !isset($_POST["files"])){
+	die('FAILED');
+}
 $files = explode(",",$_POST['files']);
 $target = $_POST['dir'];
 $opr = $_POST['opr'];

+ 2 - 2
Video/new_folder.php

@@ -4,10 +4,10 @@ include '../auth.php';
 <?php
 //New Folder Creation PHP
 $foldername = $_POST['name'];
-$storage = "storage/";
+$storage = $_POST['storage'];
 
 if (file_exists($storage . $foldername . "/") == false){
-	mkdir($storage . bin2hex($foldername) . "/");
+	mkdir($storage . bin2hex($foldername) . "/", 0777);
 	echo 'DONE';
 }
 ?>

+ 1 - 1
Video/vidPlay.php

@@ -15,8 +15,8 @@ include_once '../auth.php';
     <meta charset="UTF-8">
 	<script src="../script/jquery.min.js"></script>
     <link rel="stylesheet" href="../script/tocas/tocas.css">
+    <script type='text/javascript' src="../script/ao_module.js"></script>
 	<script type='text/javascript' src="../script/tocas/tocas.js"></script>
-	<script type='text/javascript' src="../script/ao_module.js"></script>
 	<title>ArOZ Onlineβ</title>
 	<style>
 	    body{