Browse Source

Add files via upload

yeungalan 6 năm trước cách đây
mục cha
commit
f3d66482f4

+ 46 - 12
7-Zip File Manager/CopyNMoveUI.php

@@ -32,7 +32,7 @@ include '../auth.php';
 
 					<div class="field">
 						<label>Extract to:</label>
-						<div class="ts labeled action input" style="width:100%">
+						<div class="ts labeled input" style="width:100%">
 							<div class="ts label">
 								/AOR/
 							</div>
@@ -43,6 +43,11 @@ include '../auth.php';
 						</div>
 					</div>
 				</div>
+				<br>
+				<div class="ts checkbox">
+					<input type="checkbox" id="ZipFolderDontCreate">
+					<label for="ZipFolderDontCreate">Don't create new folder</label>
+				</div>
 				<p id="filesshow">Target: </p>
 			</div>
 			
@@ -63,7 +68,11 @@ var f_dir = "<?php echo $_GET["dir"] ?>";
 var f_extractTo = "";
 
 ao_module_setFixedWindowSize();
-ao_module_setWindowSize(650,200);
+ao_module_setWindowSize(650,240);
+
+$( "#ZipFolderDontCreate" ).change(function() {
+	updatePath();
+}).change();
 
 function f_close(){
 	if(ao_module_virtualDesktop){
@@ -74,7 +83,7 @@ function f_close(){
 }
 
 function f_ok(){
-	var href = "ProgressUI.php?method=" + f_method + "&rand=" + f_rand + "&file=" + f_file + "&dir=" + f_dir + "&destdir=" + f_extractTo;
+	var href = "ProgressUI.php?method=" + f_method + "&rand=" + f_rand + "&file=" + f_file + "&dir=" + f_dir + "&destdir=" + f_extractTo + "&DontCreateNewFolder=" + $("#ZipFolderDontCreate").is( ":checked" );
 
 	if(ao_module_virtualDesktop){
 		ao_module_newfw('7-Zip File Manager/' + href,'7-Zip','file outline','7-ZipProgressUI' + Math.floor(Math.random()*100),720,250);
@@ -92,22 +101,38 @@ $( "#path" ).keyup(function() {
 });
 
 function updatePath(){
-	var path = $("#path").val();
-	var displayPath = "";
+	var SelectedPath = $("#path").val();
+	var ZipPath = "";
+	console.log(f_file);
+	var ZipNameAsPath = ao_module_codec.decodeUmFilename(f_file.replace(/^.*[\\\/]/, '')).split(".")[0] + "/";
+	var RootDir = "/AOR/";
+	
 	if(f_dir == ""){
-		displayPath = "...";
+		ZipPath = "...";
 	}else{
 	    if(f_method == "e"){
-		    displayPath = f_dir.replace(/^.*[\\\/]/, '');
+		    ZipPath = f_dir.replace(/^.*[\\\/]/, '');
 	    }else{
-	        displayPath = f_dir;
+	        ZipPath = f_dir;
 	    }
 	}
-	if(path.slice(-1) !== "/"){
-		path = path + "/";
+	if(SelectedPath.slice(-1) !== "/"){
+		SelectedPath = SelectedPath + "/";
+	}
+	
+	if(SelectedPath.includes("/media/") || (!SelectedPath.includes("C:\\") && SelectedPath.includes("/media/"))){
+		RootDir = "";
 	}
-	$("#filesshow").text("Target: /AOR/" + path + ao_module_codec.decodeUmFilename(f_file.replace(/^.*[\\\/]/, '')).replace(/\.[^.]*$/,'') + "/" + displayPath);
-	f_extractTo = "../" + path;
+	
+	if($("#ZipFolderDontCreate").is( ":checked" )){
+		ZipNameAsPath = "";
+	}
+	
+	console.log(SelectedPath);
+	console.log(ZipNameAsPath);
+	console.log(ZipPath);
+	$("#filesshow").text("Target: " + RootDir + SelectedPath + ZipNameAsPath + ZipPath);
+	f_extractTo = "../" + SelectedPath;
 }
 
 function selectFolder(){
@@ -129,6 +154,15 @@ function getUUID(){
 	return new Date().getTime();
 }
 
+/* depreacted
+$( "#path" ).keypress(function() {
+	$.get( "opr.php?method=ListAORDir&dir=" + $( "#path" ).val(), function( data ) {
+	   $( "#path" ).autocomplete({
+		source: JSON.parse(data)
+		});
+	});
+});
+*/
 
 </script>
 </html>

+ 27 - 19
7-Zip File Manager/MainUI.php

@@ -38,20 +38,11 @@ include '../auth.php';
 </head>
 <body>
 <div class="ts labeled icon menu" style="box-shadow: 0px 0px 0px 0 #000000 !important;">
-    <a class="item disabled" onclick="msgbox('Error: Operation is not supported','red','white')">
-        <i class="plus icon"></i> Add
-    </a>
     <a class="item" onclick="functionbar_extract();">
         <i class="minus icon"></i> Extract
     </a>
-    <a class="item" onclick="msgbox('Warning: Not implemented','yellow','Black')">
-        <i class="chevron down icon"></i> Test
-    </a>
     <a class="item disabled" onclick="functionbar_extract();">
         <i class="copy icon"></i> Copy
-    </a>
-	<a class="item disabled" onclick="functionbar_extract();">
-        <i class="move icon"></i> Move
     </a>
 	<a class="item"  onclick="msgbox('Error: Operation is not supported','red','white')">
         <i class="remove icon"></i> Clear Cache
@@ -101,6 +92,10 @@ include '../auth.php';
 
 </body>
 <script>
+/*
+Reminder: the x and y for new windows no longer has any function;
+please change it on another page directly.
+*/
 //Global variable
 var random = Math.floor((Math.random() * 10000) + 1000);
 var file = "<?php echo $_GET["file"] ?>";
@@ -109,6 +104,11 @@ var file = "<?php echo $_GET["file"] ?>";
 ao_module_setWindowIcon("file archive outline");
 ao_module_setGlassEffectMode();
 ao_module_setWindowTitle(ao_module_codec.decodeUmFilename(basename(file)) + " 7-Zip File Manager");
+
+if(!["7Z","LZMA","CAB","ZIP","GZIP","BZIP2","Z","TAR"].includes(basename(file).split(".")[1].toUpperCase())){
+	msgbox('Warning: Unsupport file type','yellow','black');
+}
+
 if (ao_module_virtualDesktop){
     //Push up the body section a bit to compensate for the floatWindow offsets
     $("body").css("padding-bottom","20px");
@@ -176,7 +176,7 @@ document.onkeydown = function(e) {
 
 
 //for load data into table
-load($(returnBtn));
+//load($(returnBtn));
 
 function onsingleclick(htmlelement){
 	$("tr").removeAttr("style");
@@ -233,12 +233,7 @@ function load(htmlelement){
 							if(tdpath.includes("?")){
 					            var tdicon = '<i class="exclamation triangle icon"></i>';
 					        }
-							if(tdpath.includes(".")){
-								tmp = tmp + "<td>" + tdicon + ao_module_codec.decodeUmFilename(tdpath) + "</td>";							
-							}else{
-								tmp = tmp + "<td>" + tdicon + ao_module_codec.decodeHexFoldername(tdpath) + "</td>";
-							}
-											        
+							tmp = tmp + "<td>" + tdicon + ao_module_codec.decodeUmFilename(tdpath) + "</td>";					        
 					    }else{
 					        tmp = tmp + "<td>" + value[key] + "</td>";
 					    }
@@ -249,6 +244,19 @@ function load(htmlelement){
 				$("#tbody").append(tmp + "</tr>");
 			});
 			
+			/*
+			//Little patch for HEX file name (PATCH)
+			$( "tr td:first-child" ).each( function( index, element ){
+				var tpath = $(this);
+				if(/^inith[0-9a-fA-F]*\..*$|^[0-9a-fA-F]*$/.test($(tpath).text())){
+					
+					$.get( '../SystemAOB/functions/file_system/um_filename_decoder.php?filename=' + $(tpath).text(), function( decodedfilename ) {
+						$(tpath).text(decodedfilename);
+					});
+					
+				}
+			});
+			*/
 			
 			//process for Prev button 
 			var path = $(htmlelement).attr("path").split("/");
@@ -257,7 +265,7 @@ function load(htmlelement){
 				previousPath = "";
 			}
 			//console.log(previousPath);
-			$("#breadcrumb").html('<button class="ts icon mini basic button" currPath="' + $(htmlelement).attr("path") + '" path="' + previousPath + '" attr="Dir" id="returnBtn" onclick="load(this)"><i class="level up icon"></i></button> <p href="#!" class="section">' + file.replace(/^.*[\\\/]/, '') +'</p><div class="divider">/</div>');
+			$("#breadcrumb").html('<button class="ts icon mini basic button" currPath="' + $(htmlelement).attr("path") + '" path="' + previousPath + '" attr="Dir" id="returnBtn" onclick="load(this)"><i class="level up icon"></i></button> <p href="#!" class="section">' + ao_module_codec.decodeUmFilename(file.replace(/^.*[\\\/]/, '')) +'</p><div class="divider">/</div>');
 			if($(htmlelement).attr("path").length > 1){
 				$.each(path, function( a, key ) {
 					$("#breadcrumb").append('<p href="#!" class="section"><i class="folder icon"></i>' + key + '</p><div class="divider">/</div>');
@@ -279,9 +287,9 @@ function contextmenu_extract(){
 function functionbar_extract(){
 	//extract files or dir , if file then pass method=e , if dir then pass method=x
 	if($("[style='background-color: #e9e9e9;']").attr("attr") == "Dir"){
-		showDialog("CopyNMoveUI.php?method=x&rand=" + random + "&file=" + file + "&dir=" + $($("[style='background-color: #e9e9e9;']")).attr("path"),720,250);
+		showDialog("CopyNMoveUI.php?method=x&rand=" + random + "&file=" + file + "&dir=" + $($("[style='background-color: #e9e9e9;']")).attr("path"),720,280);
 	}else if($("[style='background-color: #e9e9e9;']").attr("attr") == "File"){
-		showDialog("CopyNMoveUI.php?method=e&rand=" + random + "&file=" + file + "&dir=" + $("[style='background-color: #e9e9e9;']").attr("path"),720,250);
+		showDialog("CopyNMoveUI.php?method=e&rand=" + random + "&file=" + file + "&dir=" + $("[style='background-color: #e9e9e9;']").attr("path"),720,280);
 	}else{
 		showDialog("CopyNMoveUI.php?method=x&rand=" + random + "&file=" + file + "&dir=" + $("#returnBtn").attr("currPath"),720,250);
 	}

+ 1 - 0
7-Zip File Manager/ProgressUI.php

@@ -68,6 +68,7 @@ var f_rand = "<?php echo $_GET["rand"] ?>";
 var f_file = "<?php echo $_GET["file"] ?>";
 var f_dir = "<?php echo $_GET["dir"] ?>";
 var f_size = "<?php echo filesize($_GET["file"]); ?>";
+var f_DontCreateNewFolder = <?php echo $_GET["DontCreateNewFolder"] ?>;
 var f_destdir = "<?php echo isset($_GET["destdir"]) ? $_GET["destdir"] : ""; ?>";
 var f_time = 1;
 var f_totaltime = 1;

+ 294 - 0
7-Zip File Manager/ProgressUI_mod.php

@@ -0,0 +1,294 @@
+<?php
+include '../auth.php';
+?>
+<!DOCTYPE html>
+<html>
+<head>
+    <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/tocas/tocas.js"></script>
+	<script type='text/javascript' src="../script/ao_module.js"></script>
+	<title>7z File Manager</title>
+	<style>
+	body{
+		background-color:white
+	}
+	.ts.form .inline.field label {
+		min-width: 50%;
+	}
+	.ts.basic.dropdown, .ts.form select {
+		max-width: 50%;
+	}
+	</style>
+</head>
+<body>
+<br>
+	<div class="ts container">
+		<div class="ts grid">
+			
+			<div class="eight wide column">
+				<span style="text-align:left">Elasped time:</span>
+				<span style="text-align:right" id="time">00:00:00</span>
+			</div>
+			<div class="eight wide column">
+				<span style="text-align:left">Total size:</span>
+				<span style="text-align:right" id="totalsize">0 b</span>
+			</div>
+			
+			<div class="eight wide column">
+				<span style="text-align:left">Remaining time:</span>
+				<span style="text-align:right" id="remaining">00:00:00</span>
+			</div>
+			<div class="eight wide column">
+				<span style="text-align:left">Speed:</span>
+				<span style="text-align:right" id="speed">0 b/s</span>
+			</div>
+			
+			<div class="sixteen wide column">
+				<span style="text-align:left">Loading...</span>
+				<div class="ts progress">
+					<div class="bar" id="bar" style="width: 0%"></div>
+				</div>
+			</div>	
+			
+			<div class="eight wide column"></div>
+			<div class="eight wide column">
+				<button class="ts basic button" style="width:100%" onclick="f_close();f_cancel = true;">Cancel</button>
+			</div>
+		</div>
+	</div>
+	<div class="ts bottom right snackbar">
+		<div class="content"></div>
+	</div>
+</body>
+<script>
+var f_method = "<?php echo $_GET["method"] ?>";
+var f_rand = "<?php echo $_GET["rand"] ?>";
+var f_file = "<?php echo $_GET["file"] ?>";
+var f_dir = "<?php echo $_GET["dir"] ?>";
+var f_DontCreateNewFoler = "<?php echo $_GET["DontCreateNewFolder"] ?>";
+var f_size = "<?php echo filesize($_GET["file"]); ?>";
+var f_destdir = "<?php echo isset($_GET["destdir"]) ? $_GET["destdir"] : ""; ?>";
+var f_time = 1;
+var f_totaltime = 1;
+var f_cancel = false;
+
+//Initiate floatWindow events
+ao_module_setWindowTitle("Inflating from compressed file...");
+ao_module_setWindowIcon("loading spinner");
+
+var f_load = setInterval(function(){ 
+
+	$.ajax({
+		url: "./tmp/" + f_rand + "messages",
+		contentType: "text/plain"
+	}).done(function(data) { 
+		var progress = data.match(/ ([0-9]{0,2}%)/gim);
+		console.log(progress[progress.length - 1]);
+		f_totaltime = Math.floor(f_time / (parseInt(progress[progress.length - 1])/100));
+		$("#bar").attr("style","width: " + progress[progress.length - 1]);
+		$("#time").text(f_convert(f_time));
+		$("#remaining").text(f_convert(f_totaltime - f_time));
+		$("#speed").text(f_filesize(Math.floor(f_size / f_totaltime)) + "/s");
+		$("#totalsize").text(f_filesize(f_size));
+		f_time += 1;
+	});
+	
+	/*
+	$.get("./tmp/" + f_rand + "messages", function( data ) {
+		var progress = data.match(/ ([0-9]{0,2}%)/gim);
+		console.log(progress[progress.length - 1]);
+		f_totaltime = Math.floor(f_time / (parseInt(progress[progress.length - 1])/100));
+		$("#bar").attr("style","width: " + progress[progress.length - 1]);
+		$("#time").text(f_convert(f_time));
+		$("#remaining").text(f_convert(f_totaltime - f_time));
+		$("#speed").text(f_filesize(Math.floor(f_size / f_totaltime)) + "/s");
+		$("#totalsize").text(f_filesize(f_size));
+		f_time += 1;
+	});
+	*/
+}, 1000);
+
+f_load;
+
+$.get("opr.php?method=" + f_method + "&rand=" + f_rand + "&file=" + f_file + "&dir=" + f_dir , function( raw ) {
+		clearInterval(f_load);
+		if(!f_cancel){
+			if(f_destdir.length >0){
+				//console.log('../SystemAOB/functions/file_system/move.php?from=../../../7-Zip%20File%20Manager/tmp/' + f_rand +'&to=../../' + f_destdir + f_filenameToFoldername(f_file));
+				console.log(f_destdir);
+				console.log(f_filenameToFoldername(f_file));
+				$.get( '../SystemAOB/functions/file_system/move.php?from=../../../7-Zip%20File%20Manager/tmp/' + f_rand +'&to=../../' + f_destdir + f_filenameToFoldername(f_file), function(data) {
+					console.log('DST' + f_destdir);
+					console.log('Move to:../../' + f_destdir + f_filenameToFoldername(f_file));
+					if(data !== "DONE"){
+						if(ao_module_virtualDesktop){
+							parent.msgbox(data,'<i class="caution sign icon"></i> 7-Zip File Manager',"");
+							ao_module_close();
+						}else{
+							msgbox(data,"","");
+							setTimeout(function(){ts('#modal').modal('hide')},1500);
+						}
+					}else{
+						f_openFile(true);
+					}
+				});
+				/*
+				console.log('../SystemAOB/functions/file_system/copy_folder.php?from=../../../7-Zip%20File%20Manager/tmp/' + f_rand +'/&target=../../' + f_destdir + f_rand + "/");
+				
+				console.log('../SystemAOB/functions/file_system/rename.php?file=../../' + f_destdir + f_rand + '&newFileName=../../' + f_destdir + f_file.replace(/^.*[\\\/]/, '').replace(/\./,"") + '/&hex=false');
+				
+				$.get( '../SystemAOB/functions/file_system/copy_folder.php?from=../../../7-Zip%20File%20Manager/tmp/' + f_rand +'/&target=../../' + f_destdir + f_rand + "/", function(data) {
+					if(data !== "DONE"){
+						msgbox(data,"","");
+						if(ao_module_virtualDesktop){
+							parent.msgbox(data,"","");
+							ao_module_close();
+						}else{
+							msgbox(data,"","");
+							setTimeout(function(){ts('#modal').modal('hide')},1500);
+						}
+					}
+					
+					$.get( '../SystemAOB/functions/file_system/rename.php?file=../../' + f_destdir + f_rand + '&newFileName=../../' + f_destdir + f_file.replace(/^.*[\\\/]/, '').replace(/\./,"") + '/&hex=false', function(data) {
+						if(data !== "DONE"){
+							$.get( '../SystemAOB/functions/file_system/delete.php?filename=../../' + f_destdir + f_rand, function(data) {
+							});
+							if(ao_module_virtualDesktop){
+								parent.msgbox(data,"","");
+								ao_module_close();
+							}else{
+								msgbox(data,"","");
+								setTimeout(function(){ts('#modal').modal('hide')},1500);
+							}
+						}else{
+							f_openFile(true);
+						}
+					});
+				});
+				*/
+			}else{
+				f_openFile(false);
+			}
+		}
+});
+
+function f_filenameToFoldername(path){
+		if(!f_DontCreateNewFoler){
+			var filename = path.split("\\").join("/").split("/").pop();
+			var filename = filename.split(".");
+			if (filename.length > 1){
+				filename.pop();
+			}
+			filename = filename.join(".");
+			if (filename.substring(0,5) == "inith"){
+				filename = filename.replace("inith","");
+			}
+			return filename;
+		}else{
+			return "";
+		}
+}
+
+function f_openFile(bool){
+	var Folder = "";
+	// bool = true then it have destdir
+	// bool = false then it dont have destdir
+	if(bool == true){
+		//f_method = e then it is only single file
+		//f_method = x then it is a folder
+		if(f_method == "e"){
+			Folder = f_destdir.replace("../","") + f_filenameToFoldername(f_file) + "/" + f_dir.replace(/^.*[\\\/]/, '');
+		}else if(f_method == "x"){
+			Folder = f_destdir.replace("../","") + f_filenameToFoldername(f_file);
+		}
+	}else{
+		//f_method = e then it is only single file
+		//f_method = x then it is a folder
+		if(f_method == "e"){
+			Folder = "7-Zip File Manager/tmp/" + f_rand + "/" + f_dir.replace(/^.*[\\\/]/, '');
+		}else if(f_method == "x"){
+			Folder = "7-Zip File Manager/tmp/" + f_rand + "/";
+		}
+	}
+	//console.log(f_rand + Folder);
+	if(ao_module_virtualDesktop){
+		if(f_method == "e"){
+			ao_module_openFile(Folder,"7-Zip Preview");
+		}else if(f_method == "x"){
+			ao_module_openPath(Folder);
+		}
+		ao_module_close();
+	}else{
+		if(f_method == "e"){
+			window.open("../" + Folder);
+		}else if(f_method == "x"){
+			window.open("../SystemAOB/functions/file_system/index.php?controlLv=2#../../../" + Folder);
+		}
+		setTimeout(function(){ts('#modal').modal('hide')},1500);
+	}
+}
+
+function f_convert(time){
+	var hours   = Math.floor(time / 3600);
+	var minutes = Math.floor((time - (hours * 3600)) / 60);
+	var seconds = time - (hours * 3600) - (minutes * 60);
+	
+	if(hours < 10){
+		var dhour  = "0" + hours;
+	}else{
+		var dhour  = hours;
+	}
+	
+	if(minutes < 10){
+		var dminutes  = "0" + minutes;
+	}else{
+		var dminutes  = minutes;
+	}
+
+	if(seconds < 10){
+		var dseconds  = "0" + seconds;
+	}else{
+		var dseconds  = seconds;
+	}
+	
+	if(!isNaN(hours) && !isNaN(minutes) && !isNaN(seconds)){
+		var formatted = dhour + ":" + dminutes + ":" + dseconds;
+	}else{
+		var formatted = "00:00:00";
+	}
+	return formatted;
+}
+
+function f_filesize(size){
+	if(size >= 1073741824){
+		return Math.floor(size/1073741824*100)/100 + "GB";
+	}else if(size >= 1048576){
+		return Math.floor(size/1048576*100)/100 + "MB";
+	}else if(size >= 1024){
+		return Math.floor(size/1024*100)/100 + "KB";
+	}else if(size > 0){
+		return size + "Bytes";
+	}
+}
+
+function msgbox(content,bgcolor,fontcolor){
+	$(".snackbar").attr("style",'background-color: ' + bgcolor + ';color:' + fontcolor);
+	ts('.snackbar').snackbar({
+		content: content,
+		onAction: () => {
+			$(".snackbar").removeAttr("style");
+		}
+	});
+}
+
+function f_close(){
+	if(ao_module_virtualDesktop){
+		ao_module_close();
+	}else{
+		setTimeout(function(){ts('#modal').modal('hide')},1500);
+	}
+}
+</script>
+</html>

+ 10 - 10
7-Zip File Manager/getMessage.php

@@ -1,11 +1,11 @@
-<?php
-include_once("../auth.php");
-if (isset($_GET['id'])){
-	if (file_exists("tmp/" . $_GET['id'])){
-		echo file_get_contents("tmp/" . $_GET['id']);
-		exit(0);
-	}
-}else{
-	die("ERROR. unset id value for lookup.");
-}
+<?php
+include_once("../auth.php");
+if (isset($_GET['id'])){
+	if (file_exists("tmp/" . $_GET['id'])){
+		echo file_get_contents("tmp/" . $_GET['id']);
+		exit(0);
+	}
+}else{
+	die("ERROR. unset id value for lookup.");
+}
 ?>

BIN
7-Zip File Manager/install/template/background.png


+ 63 - 0
7-Zip File Manager/install/template/template.php

@@ -0,0 +1,63 @@
+<html>
+<head>
+	<link rel="stylesheet" href="../../../script/tocas/tocas.css">
+	<script src="../../../script/tocas/tocas.js"></script>
+	<script src="../../../script/jquery.min.js"></script>
+	<script src="../../../script/ao_module.js"></script>
+	<style>
+	body {
+		overflow-y:hidden;
+	}
+	.header{
+		position: absolute;
+		font-size: 20px;
+		top: 30%;
+		left: 5%;
+	}
+	.subheader{
+		position: absolute;
+		top: 50%;
+		left: 5%;
+	}
+	</style>
+</head>
+<body>
+	<div class="ts grid">
+		<div class="sixteen wide column" style="height:16%;overflow:hidden">
+			<img src="background.png" style="height:auto;width:100%">
+			<div class="header">7-Zip File Manager</div>
+			<div class="subheader">Powered by ArOZ</div>
+		</div>
+		<div class="sixteen wide column" style="height:60%;overflow:hidden">
+			<div style="width:90%;left:5%">
+				<table class="ts sortable large table">
+					<thead>
+						<tr>
+							<th>Item</th>
+							<th>Value</th>
+						</tr>
+					</thead>
+					<tbody>
+						<tr>
+							<td>Package name</td>
+							<td>7-Zip File Manager</td>
+						</tr>
+					</tbody>
+				</table>
+			</div>
+		</div>
+		</div>
+		<div id="menubar" style="overflow:hidden;position: absolute;bottom: 3%;width:100%">
+			<div class="ts section divider"></div>
+			<div class="ts separated buttons" style="float: right;right:5%">
+				<button class="ts positive basic button">Next</button>
+				<button class="ts negative basic button">Cancel</button>
+			</div>
+		</div>
+</body>
+<script>
+if(ao_module_virtualDesktop){
+	$("#menubar").css("bottom","8%");
+}
+</script>
+</html>

+ 2 - 3
7-Zip File Manager/opr.php

@@ -12,7 +12,6 @@ include '../auth.php';
 |-----------------------------|
 Yes ! This is an 7Zip logo
 */
-
 $rand = $_GET["rand"];
 
 if(!isset($_GET["method"])){
@@ -33,9 +32,9 @@ if(strcasecmp(substr(PHP_OS, 0, 3), 'WIN') == 0){
 	}
 }else{
 	if(strpos(exec('uname -m'), 'arm') !== false){
-		$executions = "./7za";
+		$executions = "LANG=\"en_HK.UTF-8\" && "."./7za";
 	}else{
-		$executions = "./7za_x86";
+		$executions = "LANG=\"en_HK.UTF-8\" && "."./7za_x86";
 	}
 }