yeungalan 5 سال پیش
والد
کامیت
bded2ed096

+ 2 - 2
Audio/ffmpeg_handler.php

@@ -33,7 +33,7 @@ $( document ).ready(function() {
 		echo shell_exec('ffmpeg -i "'.$mp4filename.'" -b:a 320K "'.$mp3filename.'" 2>&1');
 		//Replace the above line with the line below for Raspberry pi with libav-tools 
 		//echo shell_exec("avconv -i ".$mp4filename." -b:a 320K ".$mp3filename." 2>&1");
-		//unlink($mp4filename);
+		unlink($mp4filename);
 	}
 	
 	/*
@@ -47,7 +47,7 @@ $( document ).ready(function() {
 		unlink($aacfilename);
 	}
 	*/
-	//header('Location: index.php');
+	header('Location: index.php');
 	
 
 ?>

+ 1 - 1
Audio/index.php

@@ -205,7 +205,7 @@ body {
 					$box = str_replace("%AUDIO_FILE_NAME%",str_replace("'","",$filename),$template);
 					$box = str_replace("%FILE_SIZE%",formatSizeUnits(filesize($file)),$box);
 					$box = str_replace("%RAW_FILENAME%",$file,$box);
-					$box = str_replace("%ID%","AudioID" + (string)$count,$box);
+					$box = str_replace("%ID%","AudioID".$count,$box);
 					$box = str_replace("%FILE_FORMAT%",$ext,$box);
 					echo $box;
 					$count += 1;

BIN
Photo/cache/364e73822df05e7583c110483828a760.img.txt


BIN
Photo/cache/4f493576051eaa14780a4a8baf4af7df.img.txt


BIN
Photo/cache/6ecc559403eecc933bbb116ce518f555.img.txt


BIN
Photo/cache/cd168e72ac82d8e2733942db7162c4a4.img.txt


BIN
Photo/cache/d00a6877d168c655665b9e240e6ec1ec.img.txt


BIN
Photo/cache/d244d998e97250d5c7af4c50bb59b9d8.img.txt


BIN
Photo/cache/ef1a02d87e95f537ba980dc6354366f1.img.txt


+ 4 - 9
Upload Manager/upload_interface.php

@@ -194,17 +194,12 @@ include '../auth.php';
 					$files = scandir($path);
 					$files = array_diff(scandir($path), array('.', '..','Thumbs.db'));//If you are on windows,then ignore the Thumbs.db 
 					foreach ($files as $file){
-						//Decode File Name
-						if (!defined('PHP_VERSION_ID')) {
-							$version = explode('.', PHP_VERSION);
-							define('PHP_VERSION_ID', ($version[0] * 10000 + $version[1] * 100 + $version[2]));
-						}
-						
+				
 						//check if PHP was higher than 7.4, if true then not using inith filename
-						if(PHP_VERSION_ID >= 70404){
-							$filename = $file;
-						}else{
+						if(substr(basename($file),0,5) === "inith"){
 							$filename = hex2bin(str_replace("." . pathinfo($file, PATHINFO_EXTENSION),"",str_replace("inith","",$file))) . "." . pathinfo($file, PATHINFO_EXTENSION);
+						}else{
+							$filename = $file;
 						}