forked from Th3-822/rapidleech
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlist.php
More file actions
25 lines (21 loc) · 690 Bytes
/
Copy pathlist.php
File metadata and controls
25 lines (21 loc) · 690 Bytes
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
<?php
function rl_list() {
if (empty($GLOBALS['list'])) return;
if (empty($_GET['files']) || !($list = array_intersect_key($GLOBALS['list'], array_flip($_GET['files'])))) {
$list = &$GLOBALS['list'];
}
// List
echo "<table><tr><td>\n<table class='md5table'>";
foreach ($list as $file) {
if (file_exists($file['name'])) {
echo '<tr><td>' . htmlspecialchars(basename($file['name'])) . "</td></tr>\n";
}
}
echo "</table>\n</td><td>\n<table class='md5table'>\n";
foreach ($list as $file) {
if (file_exists($file['name'])) {
echo '<tr><td>' . link_for_file($file['name'], true) . "</td></tr>\n";
}
}
echo "</table>\n</td></tr></table>";
}