-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
95 lines (94 loc) · 2.79 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?php
$ROOT = __DIR__;
if(empty(session_id())) session_start();
function toimg($path) {
$img = file_get_contents($path);
$img = str_replace("\n", "", $img);
return addslashes($img);
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Upload / Download</title>
<?php
include_once("./system/CSS/css.php");
include_once("./system/JS/js.php");
?>
<script src="/main/JS/dark.js"></script>
<script>
let svg = {
download: "<?php echo toimg("./system/img/download.svg"); ?>",
rename: "<?php echo toimg("./system/img/edit.svg"); ?>",
remove: "<?php echo toimg("./system/img/trash-2.svg"); ?>"
}
</script>
</head>
<body>
<nav>
<ul id="explorer">
<li class="fixed menu">
<span id="path" class="path" onclick="Textcopy(this.innerText)">/</span>
<div class="btn" onclick="Explorer.to()">
<?php include "./system/img/refresh.svg"; ?>
</div>
<label class="btn">
<input type="checkbox" class="sort" onclick="Explorer.sorted = this.checked" hidden>
<?php include "./system/img/bar-graph.svg"; ?>
</label>
<label class="btn">
<input type="checkbox" class="ssh" onclick="document.getElementById('explorer').classList.toggle('ssh')" hidden>
<?php include "./system/img/terminal.svg"; ?>
</label>
</li>
<li class="fixed folder">
<span onclick="Explorer.to(-1)">..</span>
<div class="btn" onclick="Explorer.add('file')">
<?php include "./system/img/file-plus.svg" ?>
</div>
<div class="btn" onclick="Explorer.add('folder')">
<?php include "./system/img/folder-plus.svg" ?>
</div>
</li>
</ul>
</nav>
<main class="options">
<div class="title">
<label>
<span>Files</span>
<input type="file" class="ifiles" name="files[]" multiple onchange="UD.selected(this)" hidden>
</label>
</div>
<ul>
<!-- <li class="fixed menu">
<label>
<span>Files</span>
<input type="file" class="ifiles" name="files[]" multiple onchange="UD.selected(this)" hidden>
</label>
</li> -->
</ul>
<div class="title">
<label>
<span>Folders</span>
<input type="file" class="ifolder" name="folders[]" directory webkitdirectory moxdirectory mozdirectory msdirectory odirectory multiple onchange="UD.selected(this)" hidden>
</label>
</div>
<ul>
<!-- <li class="fixed menu">
<label>
<span>Folders</span>
<input type="file" class="ifolder" name="folders[]" directory webkitdirectory moxdirectory mozdirectory msdirectory odirectory multiple onchange="UD.selected(this)" hidden>
</label>
</li> -->
</ul>
<div class="title" onclick="UD.upload(this.parentNode.parentNode)">
<span>Upload</span>
<div class="btnimg">
<?php include "./system/img/upload.svg" ?>
</div>
</div>
</main>
</body>
</html>